forked from mtusi2026/mtusi2026lab2
78 lines
2.8 KiB
Plaintext
78 lines
2.8 KiB
Plaintext
bash scripts/backup_restore.sh
|
|
Network lab2-restore-1790966246-29166_default Creating
|
|
Network lab2-restore-1790966246-29166_default Created
|
|
Volume "lab2-restore-1790966246-29166_redis_data" Creating
|
|
Volume "lab2-restore-1790966246-29166_redis_data" Created
|
|
Volume "lab2-restore-1790966246-29166_restored_data" Creating
|
|
Volume "lab2-restore-1790966246-29166_restored_data" Created
|
|
Volume "lab2-restore-1790966246-29166_postgres_data" Creating
|
|
Volume "lab2-restore-1790966246-29166_postgres_data" Created
|
|
Container lab2-restore-1790966246-29166-restored-1 Creating
|
|
Container lab2-restore-1790966246-29166-restored-1 Created
|
|
Container lab2-restore-1790966246-29166-restored-1 Starting
|
|
Container lab2-restore-1790966246-29166-restored-1 Started
|
|
Container lab2-restore-1790966246-29166-restored-1 Waiting
|
|
Container lab2-restore-1790966246-29166-restored-1 Healthy
|
|
#0 building with "default" instance using docker driver
|
|
|
|
#1 [api internal] load build definition from Dockerfile
|
|
#1 transferring dockerfile: 1.04kB done
|
|
#1 DONE 0.0s
|
|
|
|
#2 [api internal] load metadata for docker.io/library/python:3.12.10-slim-bookworm
|
|
#2 DONE 0.7s
|
|
|
|
#3 [api internal] load .dockerignore
|
|
#3 transferring context: 212B done
|
|
#3 DONE 0.0s
|
|
|
|
#4 [api 1/12] FROM docker.io/library/python:3.12.10-slim-bookworm@sha256:fd95fa221297a88e1cf49c55ec1828edd7c5a428187e67b5d1805692d11588db
|
|
#4 DONE 0.0s
|
|
|
|
#5 [api internal] load build context
|
|
#5 transferring context: 1.72kB done
|
|
#5 DONE 0.0s
|
|
|
|
#6 [api 8/12] COPY --chown=app:app student-tests ./student-tests
|
|
#6 CACHED
|
|
|
|
#7 [api 11/12] COPY --chown=app:app lab.json ./lab.json
|
|
#7 CACHED
|
|
|
|
#8 [api 6/12] COPY --chown=app:app migrations ./migrations
|
|
#8 CACHED
|
|
|
|
#9 [api 9/12] COPY --chown=app:app tests ./tests
|
|
#9 CACHED
|
|
|
|
#10 [api 3/12] COPY requirements.txt .
|
|
#10 CACHED
|
|
|
|
#11 [api 2/12] WORKDIR /app
|
|
#11 CACHED
|
|
|
|
#12 [api 7/12] COPY --chown=app:app scripts ./scripts
|
|
#12 CACHED
|
|
|
|
#13 [api 10/12] COPY --chown=app:app contracts ./contracts
|
|
#13 CACHED
|
|
|
|
#14 [api 4/12] RUN pip install --no-cache-dir --requirement requirements.txt && groupadd --system --gid 10001 app && useradd --system --uid 10001 --gid app --home-dir /nonexistent --shell /usr/sbin/nologin app
|
|
#14 CACHED
|
|
|
|
#15 [api 5/12] COPY --chown=app:app src ./src
|
|
#15 CACHED
|
|
|
|
#16 [api 12/12] RUN mkdir -p evidence && chown app:app evidence
|
|
#16 CACHED
|
|
|
|
#17 [api] exporting to image
|
|
#17 exporting layers done
|
|
#17 writing image sha256:f76f54e85211d83d610b5efc29d630111b5c3ad92f5d76edbce24a7b39d9ba94 done
|
|
#17 naming to docker.io/library/lab2-restore-1790966246-29166-api done
|
|
#17 DONE 0.0s
|
|
PASS: restored row counts and selected full messages match backup dataset
|
|
Container lab2-restore-1790966246-29166-restored-1 Stopping
|
|
Container lab2-restore-1790966246-29166-restored-1 Stopped
|
|
PASS: restored into separate PostgreSQL and volume; project=lab2-restore-1790966246-29166
|