159 lines
4.8 KiB
Plaintext
159 lines
4.8 KiB
Plaintext
./scripts/rolling-update.sh
|
|
Rolling update: app1
|
|
Container mtusi2026lab3-app1-1 Stopping
|
|
Container mtusi2026lab3-app1-1 Stopped
|
|
#0 building with "desktop-linux" instance using docker driver
|
|
|
|
#1 [app1 internal] load build definition from Dockerfile
|
|
#1 transferring dockerfile: 685B done
|
|
#1 DONE 0.0s
|
|
|
|
#2 [app1 internal] load metadata for docker.io/library/python:3.13-slim
|
|
#2 DONE 1.8s
|
|
|
|
#3 [app1 internal] load .dockerignore
|
|
#3 transferring context: 279B done
|
|
#3 DONE 0.0s
|
|
|
|
#4 [app1 1/9] FROM docker.io/library/python:3.13-slim@sha256:09a17cad02668ae61ece136b4fd36ac3849e14f670ebedb637ea3e15580525bc
|
|
#4 DONE 0.0s
|
|
|
|
#5 [app1 internal] load build context
|
|
#5 transferring context: 4.73kB done
|
|
#5 DONE 0.0s
|
|
|
|
#6 [app1 4/9] RUN pip install --no-cache-dir -r requirements-dev.txt
|
|
#6 CACHED
|
|
|
|
#7 [app1 3/9] COPY requirements-dev.txt .
|
|
#7 CACHED
|
|
|
|
#8 [app1 2/9] WORKDIR /app
|
|
#8 CACHED
|
|
|
|
#9 [app1 8/9] COPY alembic/ alembic/
|
|
#9 CACHED
|
|
|
|
#10 [app1 6/9] COPY app/ app/
|
|
#10 CACHED
|
|
|
|
#11 [app1 7/9] COPY alembic.ini .
|
|
#11 CACHED
|
|
|
|
#12 [app1 5/9] RUN useradd --create-home --shell /bin/bash appuser
|
|
#12 CACHED
|
|
|
|
#13 [app1 9/9] RUN chown -R appuser:appuser /app/alembic
|
|
#13 CACHED
|
|
|
|
#14 [app1] exporting to image
|
|
#14 exporting layers done
|
|
#14 writing image sha256:af1621af7e8af7324cc026feef618c950fa872eeb17c4333dade10b720a57503 done
|
|
#14 naming to docker.io/library/mtusi2026lab3-app1 done
|
|
#14 DONE 0.0s
|
|
|
|
#15 [app1] resolving provenance for metadata file
|
|
#15 DONE 0.0s
|
|
Container mtusi_messenger_redis Running
|
|
Container mtusi_messenger_db Running
|
|
Container mtusi2026lab3-app1-1 Created
|
|
Container mtusi_messenger_redis Waiting
|
|
Container mtusi_messenger_db Waiting
|
|
Container mtusi_messenger_redis Healthy
|
|
Container mtusi_messenger_db Healthy
|
|
Container mtusi2026lab3-app1-1 Starting
|
|
Container mtusi2026lab3-app1-1 Started
|
|
Жду, пока app1 станет healthy...
|
|
|
|
Rolling update: app2
|
|
Container mtusi2026lab3-app2-1 Stopping
|
|
Container mtusi2026lab3-app2-1 Stopped
|
|
#0 building with "desktop-linux" instance using docker driver
|
|
|
|
#1 [app2 internal] load build definition from Dockerfile
|
|
#1 transferring dockerfile: 685B done
|
|
#1 DONE 0.0s
|
|
|
|
#2 [app2 internal] load metadata for docker.io/library/python:3.13-slim
|
|
#2 DONE 0.3s
|
|
|
|
#3 [app2 internal] load .dockerignore
|
|
#3 transferring context: 279B done
|
|
#3 DONE 0.0s
|
|
|
|
#4 [app2 1/9] FROM docker.io/library/python:3.13-slim@sha256:09a17cad02668ae61ece136b4fd36ac3849e14f670ebedb637ea3e15580525bc
|
|
#4 DONE 0.0s
|
|
|
|
#5 [app2 internal] load build context
|
|
#5 transferring context: 4.73kB done
|
|
#5 DONE 0.0s
|
|
|
|
#6 [app2 3/9] COPY requirements-dev.txt .
|
|
#6 CACHED
|
|
|
|
#7 [app2 7/9] COPY alembic.ini .
|
|
#7 CACHED
|
|
|
|
#8 [app2 8/9] COPY alembic/ alembic/
|
|
#8 CACHED
|
|
|
|
#9 [app2 5/9] RUN useradd --create-home --shell /bin/bash appuser
|
|
#9 CACHED
|
|
|
|
#10 [app2 2/9] WORKDIR /app
|
|
#10 CACHED
|
|
|
|
#11 [app2 4/9] RUN pip install --no-cache-dir -r requirements-dev.txt
|
|
#11 CACHED
|
|
|
|
#12 [app2 6/9] COPY app/ app/
|
|
#12 CACHED
|
|
|
|
#13 [app2 9/9] RUN chown -R appuser:appuser /app/alembic
|
|
#13 CACHED
|
|
|
|
#14 [app2] exporting to image
|
|
#14 exporting layers done
|
|
#14 writing image sha256:9c5ffbef790bf603d2cd9d54e18df8b05aa9541f5201974646cfd5fb1d46720b done
|
|
#14 naming to docker.io/library/mtusi2026lab3-app2 done
|
|
#14 DONE 0.0s
|
|
|
|
#15 [app2] resolving provenance for metadata file
|
|
#15 DONE 0.0s
|
|
Container mtusi_messenger_redis Running
|
|
Container mtusi_messenger_db Running
|
|
Container mtusi2026lab3-app2-1 Created
|
|
Container mtusi_messenger_redis Waiting
|
|
Container mtusi_messenger_db Waiting
|
|
Container mtusi_messenger_db Healthy
|
|
Container mtusi_messenger_redis Healthy
|
|
Container mtusi2026lab3-app2-1 Starting
|
|
Container mtusi2026lab3-app2-1 Started
|
|
Жду, пока app2 станет healthy...
|
|
|
|
Проверка: обе реплики живы
|
|
% Total % Received % Xferd Average Speed Time Time Time Current
|
|
Dload Upload Total Spent Left Speed
|
|
|
|
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
|
|
100 15 100 15 0 0 2824 0 --:--:-- --:--:-- --:--:-- 3000
|
|
HTTP/1.1 200 OK
|
|
Server: nginx/1.29.4
|
|
Date: Fri, 06 Nov 2026 13:51:44 GMT
|
|
Content-Type: application/json
|
|
Content-Length: 15
|
|
Connection: keep-alive
|
|
x-instance-id: 06026485-762d-4e6a-a368-e1bac311a756
|
|
x-request-id: 9fd1f3e6-0c5a-4cce-a727-35467ef553b8
|
|
|
|
{"status":"ok"} % Total % Received % Xferd Average Speed Time Time Time Current
|
|
Dload Upload Total Spent Left Speed
|
|
|
|
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
|
|
100 15 100 15 0 0 3764 0 --:--:-- --:--:-- --:--:-- 5000
|
|
HTTP/1.1 200 OK
|
|
Server: nginx/1.29.4
|
|
Date: Fri, 06 Nov 2026 13:51:44 GMT
|
|
Content-Type: application/json
|
|
Content-Length: 15
|
|
Connection: keep-alive
|
|
x-instance-id: 86e75a44-8448-4aec-99c1-a2d9378f0dc2
|
|
x-request-id: 23fcdcf5-8f9c-48f3-8973-4c5a49186e23
|
|
|
|
{"status":"ok"} |