.venv/bin/python scripts/swarm.py up
vphhh79vd5ti8501q6m9lzulj
Local secrets are ready.
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
            Install the buildx component to build images with BuildKit:
            https://docs.docker.com/go/buildx/

Sending build context to Docker daemon  461.3kB

Step 1/39 : FROM golang:1.26.4-alpine3.23@sha256:18b460dd17542c2ba43299a633cf6ebfc1115101509531471d7cfce1019af083 AS goose-builder
 ---> 18b460dd1754
Step 2/39 : RUN GOMAXPROCS=2 GOFLAGS=-p=1 GOBIN=/out CGO_ENABLED=0 go install     -tags='no_clickhouse no_libsql no_mssql no_mysql no_sqlite3 no_vertica no_ydb no_spanner'     github.com/pressly/goose/v3/cmd/goose@v3.27.1
 ---> Using cache
 ---> 15f4b2e3468a
Step 3/39 : FROM alpine:3.23@sha256:075c2c1a4068c1e251228ca2b0ea8b163f835ca5d66e758b93c7fc89b1995616 AS migrations
 ---> 075c2c1a4068
Step 4/39 : COPY --from=goose-builder /out/goose /usr/local/bin/goose
 ---> Using cache
 ---> 6a0ad52336c1
Step 5/39 : COPY migrations /migrations
 ---> Using cache
 ---> 01a2e64cbb7d
Step 6/39 : COPY infra/migrate.sh /usr/local/bin/migrate
 ---> Using cache
 ---> 7382e24476ff
Step 7/39 : USER 10001:10001
 ---> Using cache
 ---> 6c54ddff6a36
Step 8/39 : ENTRYPOINT ["/usr/local/bin/migrate"]
 ---> Using cache
 ---> 7e8134892cf2
Step 9/39 : CMD ["up"]
 ---> Using cache
 ---> adb6e8d9b58a
Step 10/39 : FROM golang:1.26.4-alpine3.23@sha256:18b460dd17542c2ba43299a633cf6ebfc1115101509531471d7cfce1019af083 AS builder
 ---> 18b460dd1754
Step 11/39 : WORKDIR /src
 ---> Using cache
 ---> 1ba013278a4a
Step 12/39 : RUN apk add --no-cache gcc musl-dev
 ---> Using cache
 ---> a0ea65f0bded
Step 13/39 : COPY go.mod go.sum ./
 ---> Using cache
 ---> e98ccecfb093
Step 14/39 : RUN go mod download
 ---> Using cache
 ---> 91d546c71507
Step 15/39 : COPY cmd ./cmd
 ---> Using cache
 ---> 7d74a0366782
Step 16/39 : COPY contracts ./contracts
 ---> Using cache
 ---> 89e9eb49cf2e
Step 17/39 : COPY dto ./dto
 ---> Using cache
 ---> b3608ba9d910
Step 18/39 : COPY internal ./internal
 ---> Using cache
 ---> 420381f245d1
Step 19/39 : COPY migrations ./migrations
 ---> Using cache
 ---> 244708889b45
Step 20/39 : ENV GOFLAGS=-p=1 GOMAXPROCS=2
 ---> Using cache
 ---> a86cf22e4c7d
Step 21/39 : RUN CGO_ENABLED=0 GOOS=linux go build     -trimpath     -ldflags="-s -w"     -o /out/messenger ./cmd
 ---> Using cache
 ---> e1ea9cbf840a
Step 22/39 : RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/reconcile ./cmd/reconcile
 ---> Using cache
 ---> 4669d728553f
Step 23/39 : RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/worker ./cmd/worker
 ---> Using cache
 ---> fe51ba375215
Step 24/39 : FROM builder AS tests
 ---> fe51ba375215
Step 25/39 : COPY --from=goose-builder /out/goose /usr/local/bin/goose
 ---> Using cache
 ---> 3ef73620b0a6
Step 26/39 : ENV GOOSE_MIGRATION_DIR=/src/migrations
 ---> Using cache
 ---> 43905e46829a
Step 27/39 : CMD ["go", "test", "-p=1", "-race", "-count=1", "-v", "./..."]
 ---> Using cache
 ---> 037b4f43fd3c
Step 28/39 : FROM alpine:3.23@sha256:075c2c1a4068c1e251228ca2b0ea8b163f835ca5d66e758b93c7fc89b1995616
 ---> 075c2c1a4068
Step 29/39 : RUN apk add --no-cache libwebp-tools=1.6.0-r0
 ---> Using cache
 ---> 3a741cc26d52
Step 30/39 : RUN addgroup -S messenger     && adduser -S -D -H -u 10001 -G messenger messenger
 ---> Using cache
 ---> 444b794708dc
Step 31/39 : COPY --from=builder --chown=messenger:messenger /out/messenger /usr/local/bin/messenger
 ---> 32fc6da7172f
Step 32/39 : COPY --from=builder --chown=messenger:messenger /out/reconcile /usr/local/bin/reconcile
 ---> 49b1f874a5e0
Step 33/39 : COPY --from=builder --chown=messenger:messenger /out/worker /usr/local/bin/worker
 ---> f7ab6619c5c8
Step 34/39 : ENV PORT=8080
 ---> Running in 0f8f2d74139c
 ---> Removed intermediate container 0f8f2d74139c
 ---> ab0764165606
Step 35/39 : EXPOSE 8080
 ---> Running in 082ca714270a
 ---> Removed intermediate container 082ca714270a
 ---> 9a16ff1522d8
Step 36/39 : USER messenger:messenger
 ---> Running in 2fa42c5d86db
 ---> Removed intermediate container 2fa42c5d86db
 ---> 50c7d9a72042
Step 37/39 : HEALTHCHECK --interval=10s --timeout=3s --start-period=3s --retries=3     CMD wget -q -O /dev/null "http://127.0.0.1:${PORT}/health/ready" || exit 1
 ---> Running in 8b938c89cf6d
 ---> Removed intermediate container 8b938c89cf6d
 ---> 74607fcd70f9
Step 38/39 : STOPSIGNAL SIGTERM
 ---> Running in e747d914802f
 ---> Removed intermediate container e747d914802f
 ---> 95748bec26d8
Step 39/39 : ENTRYPOINT ["/usr/local/bin/messenger"]
 ---> Running in b502e1c9cff0
 ---> Removed intermediate container b502e1c9cff0
 ---> 66e3c9bc004e
Successfully built 66e3c9bc004e
Successfully tagged mtusi-messenger:lab5
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
            Install the buildx component to build images with BuildKit:
            https://docs.docker.com/go/buildx/

Sending build context to Docker daemon  461.3kB

Step 1/9 : FROM golang:1.26.4-alpine3.23@sha256:18b460dd17542c2ba43299a633cf6ebfc1115101509531471d7cfce1019af083 AS goose-builder
 ---> 18b460dd1754
Step 2/9 : RUN GOMAXPROCS=2 GOFLAGS=-p=1 GOBIN=/out CGO_ENABLED=0 go install     -tags='no_clickhouse no_libsql no_mssql no_mysql no_sqlite3 no_vertica no_ydb no_spanner'     github.com/pressly/goose/v3/cmd/goose@v3.27.1
 ---> Using cache
 ---> 15f4b2e3468a
Step 3/9 : FROM alpine:3.23@sha256:075c2c1a4068c1e251228ca2b0ea8b163f835ca5d66e758b93c7fc89b1995616 AS migrations
 ---> 075c2c1a4068
Step 4/9 : COPY --from=goose-builder /out/goose /usr/local/bin/goose
 ---> Using cache
 ---> 6a0ad52336c1
Step 5/9 : COPY migrations /migrations
 ---> Using cache
 ---> 01a2e64cbb7d
Step 6/9 : COPY infra/migrate.sh /usr/local/bin/migrate
 ---> Using cache
 ---> 7382e24476ff
Step 7/9 : USER 10001:10001
 ---> Using cache
 ---> 6c54ddff6a36
Step 8/9 : ENTRYPOINT ["/usr/local/bin/migrate"]
 ---> Using cache
 ---> 7e8134892cf2
Step 9/9 : CMD ["up"]
 ---> Using cache
 ---> adb6e8d9b58a
Successfully built adb6e8d9b58a
Successfully tagged mtusi-migrations:lab5
mtusi-lab5_api scaled to 0
9mm30n5f5blu6kdfvhvartwr0
mtusi-lab5_migrations.0.1hb6hxpeyw5j@colima    | 2026/11/10 18:25:49 goose: no migrations to run. current version: 10
mtusi-lab5_migrations
Since --detach=false was not specified, tasks will be created in the background.
In a future release, --detach=false will become the default.
Updating service mtusi-lab5_lb (id: tnlj2tzpx91wj066wqi3y5k44)
Updating service mtusi-lab5_postgres (id: f4xn3ammg3isejqsm9cqng6yo)
Updating service mtusi-lab5_redis (id: kz94wxnzhqwettqixbya643dl)
Updating service mtusi-lab5_minio (id: oaf1v50i58o60qnbk5flk0k59)
Updating service mtusi-lab5_api (id: oey97yu6vv15p4dn10pptf3b8)
Updating service mtusi-lab5_worker (id: lctq7ul45bu47a6vjbvt6xgeo)
hs7eigkxh4jah526bbx4nlt0t
mtusi-lab5_s3-bootstrap.0.veoz00w0hdfq@colima    | PASS: private bucket and restricted API account configured.
mtusi-lab5_s3-bootstrap
mtusi-lab5_api scaled to 2
mtusi-lab5_api
PASS: rolling update completed
PASS: Swarm stack ready at http://localhost:18085
