mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 19:35:49 +00:00
update prepare script
This commit is contained in:
parent
5ed1a0c413
commit
a5c2af4742
1 changed files with 21 additions and 5 deletions
|
|
@ -1,10 +1,18 @@
|
|||
#!/usr/bin/env bash
|
||||
set -Eeuox pipefail
|
||||
set -Eeuo pipefail
|
||||
|
||||
source env.sh
|
||||
|
||||
echo "start to build and install windows"
|
||||
docker compose up windows-build -d --wait --build
|
||||
docker compose up windows-build -d --build
|
||||
|
||||
echo "streaming logs..."
|
||||
docker logs -f windows-build | tee windows-build.log &
|
||||
|
||||
echo "waiting for windows-build container to be healthy..."
|
||||
while [[ "$(docker inspect --format='{{.State.Health.Status}}' windows-build 2>/dev/null)" != "healthy" ]]; do
|
||||
sleep 2
|
||||
done
|
||||
|
||||
echo "windows installed, now stop container"
|
||||
docker stop windows-build
|
||||
|
|
@ -13,7 +21,15 @@ echo "commit all the changes"
|
|||
docker commit windows-build "$IMAGE_NAME:$IMAGE_VERSION"
|
||||
docker images
|
||||
|
||||
docker push "$IMAGE_NAME:$IMAGE_VERSION"
|
||||
|
||||
echo "start container with windows installed"
|
||||
docker compose up windows-installed -d --wait
|
||||
docker compose up windows-installed -d
|
||||
|
||||
echo "streaming logs..."
|
||||
docker logs -f windows-installed | tee windows-installed.log &
|
||||
|
||||
echo "waiting for windows-installed container to be healthy..."
|
||||
while [[ "$(docker inspect --format='{{.State.Health.Status}}' windows-installed 2>/dev/null)" != "healthy" ]]; do
|
||||
sleep 2
|
||||
done
|
||||
|
||||
docker push "$IMAGE_NAME:$IMAGE_VERSION"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue