.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 398.8kB Step 1/20 : FROM golang:1.26.4-alpine3.23@sha256:18b460dd17542c2ba43299a633cf6ebfc1115101509531471d7cfce1019af083 AS minio-builder ---> 18b460dd1754 Step 2/20 : ADD --checksum=sha256:8b11129f6a6830768bcdebab569290ad956618f5ff6ef4857b633acb64f95126 https://codeload.github.com/minio/minio/tar.gz/01ce918d8279a20e4706b96a64396146894adee4 /tmp/source.tar.gz ---> Using cache ---> 4a2b9310629e Step 3/20 : RUN mkdir /src && tar -xzf /tmp/source.tar.gz -C /src --strip-components=1 ---> Using cache ---> 5166de215d05 Step 4/20 : WORKDIR /src ---> Using cache ---> 1f12c7444ff0 Step 5/20 : RUN CGO_ENABLED=0 go build -trimpath -ldflags='-s -w' -o /out/minio . ---> Using cache ---> 8477e9d7324c Step 6/20 : RUN echo '8b11129f6a6830768bcdebab569290ad956618f5ff6ef4857b633acb64f95126 /tmp/source.tar.gz' | sha256sum -c - ---> Using cache ---> 94162de69c8c Step 7/20 : FROM golang:1.26.4-alpine3.23@sha256:18b460dd17542c2ba43299a633cf6ebfc1115101509531471d7cfce1019af083 AS mc-builder ---> 18b460dd1754 Step 8/20 : ADD --checksum=sha256:4cea8ed209c8f96e59ea1a5cc4901019b54c2be6d6f5f16c6749ea8bdcf4172e https://codeload.github.com/minio/mc/tar.gz/d6541ea280b73a834b64d4097e21f2be77676104 /tmp/source.tar.gz ---> Using cache ---> 5e135fc72a2c Step 9/20 : RUN mkdir /src && tar -xzf /tmp/source.tar.gz -C /src --strip-components=1 ---> Using cache ---> cbffdcf35dd5 Step 10/20 : WORKDIR /src ---> Using cache ---> 3322378e2ebd Step 11/20 : RUN CGO_ENABLED=0 go build -trimpath -ldflags='-s -w' -o /out/mc . ---> Using cache ---> 0aba858f1d48 Step 12/20 : RUN echo '4cea8ed209c8f96e59ea1a5cc4901019b54c2be6d6f5f16c6749ea8bdcf4172e /tmp/source.tar.gz' | sha256sum -c - ---> Using cache ---> af0a57fdfed1 Step 13/20 : FROM alpine:3.23@sha256:075c2c1a4068c1e251228ca2b0ea8b163f835ca5d66e758b93c7fc89b1995616 AS minio ---> 075c2c1a4068 Step 14/20 : LABEL org.opencontainers.image.source="https://github.com/minio/minio" org.opencontainers.image.revision="01ce918d8279a20e4706b96a64396146894adee4" org.opencontainers.image.version="RELEASE.2025-09-07T16-13-09Z" org.opencontainers.image.licenses="AGPL-3.0" ---> Using cache ---> 57200264604d Step 15/20 : RUN mkdir /data && chown 10001:10001 /data ---> Using cache ---> c7024406f9a9 Step 16/20 : COPY --from=minio-builder /out/minio /usr/local/bin/minio ---> Using cache ---> 0d1965ab7125 Step 17/20 : COPY infra/minio-entrypoint.sh /usr/local/bin/start-minio ---> Using cache ---> e5c21da70a4f Step 18/20 : USER 10001:10001 ---> Using cache ---> 9bc52122d9f2 Step 19/20 : EXPOSE 9000 ---> Using cache ---> 2ca448e77273 Step 20/20 : ENTRYPOINT ["/usr/local/bin/start-minio"] ---> Using cache ---> 3a0797aa5ead Successfully built 3a0797aa5ead Successfully tagged mtusi-minio:RELEASE.2025-09-07T16-13-09Z 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 398.8kB Step 1/25 : FROM golang:1.26.4-alpine3.23@sha256:18b460dd17542c2ba43299a633cf6ebfc1115101509531471d7cfce1019af083 AS minio-builder ---> 18b460dd1754 Step 2/25 : ADD --checksum=sha256:8b11129f6a6830768bcdebab569290ad956618f5ff6ef4857b633acb64f95126 https://codeload.github.com/minio/minio/tar.gz/01ce918d8279a20e4706b96a64396146894adee4 /tmp/source.tar.gz ---> Using cache ---> 4a2b9310629e Step 3/25 : RUN mkdir /src && tar -xzf /tmp/source.tar.gz -C /src --strip-components=1 ---> Using cache ---> 5166de215d05 Step 4/25 : WORKDIR /src ---> Using cache ---> 1f12c7444ff0 Step 5/25 : RUN CGO_ENABLED=0 go build -trimpath -ldflags='-s -w' -o /out/minio . ---> Using cache ---> 8477e9d7324c Step 6/25 : RUN echo '8b11129f6a6830768bcdebab569290ad956618f5ff6ef4857b633acb64f95126 /tmp/source.tar.gz' | sha256sum -c - ---> Using cache ---> 94162de69c8c Step 7/25 : FROM golang:1.26.4-alpine3.23@sha256:18b460dd17542c2ba43299a633cf6ebfc1115101509531471d7cfce1019af083 AS mc-builder ---> 18b460dd1754 Step 8/25 : ADD --checksum=sha256:4cea8ed209c8f96e59ea1a5cc4901019b54c2be6d6f5f16c6749ea8bdcf4172e https://codeload.github.com/minio/mc/tar.gz/d6541ea280b73a834b64d4097e21f2be77676104 /tmp/source.tar.gz ---> Using cache ---> 5e135fc72a2c Step 9/25 : RUN mkdir /src && tar -xzf /tmp/source.tar.gz -C /src --strip-components=1 ---> Using cache ---> cbffdcf35dd5 Step 10/25 : WORKDIR /src ---> Using cache ---> 3322378e2ebd Step 11/25 : RUN CGO_ENABLED=0 go build -trimpath -ldflags='-s -w' -o /out/mc . ---> Using cache ---> 0aba858f1d48 Step 12/25 : RUN echo '4cea8ed209c8f96e59ea1a5cc4901019b54c2be6d6f5f16c6749ea8bdcf4172e /tmp/source.tar.gz' | sha256sum -c - ---> Using cache ---> af0a57fdfed1 Step 13/25 : FROM alpine:3.23@sha256:075c2c1a4068c1e251228ca2b0ea8b163f835ca5d66e758b93c7fc89b1995616 AS minio ---> 075c2c1a4068 Step 14/25 : LABEL org.opencontainers.image.source="https://github.com/minio/minio" org.opencontainers.image.revision="01ce918d8279a20e4706b96a64396146894adee4" org.opencontainers.image.version="RELEASE.2025-09-07T16-13-09Z" org.opencontainers.image.licenses="AGPL-3.0" ---> Using cache ---> 57200264604d Step 15/25 : RUN mkdir /data && chown 10001:10001 /data ---> Using cache ---> c7024406f9a9 Step 16/25 : COPY --from=minio-builder /out/minio /usr/local/bin/minio ---> Using cache ---> 0d1965ab7125 Step 17/25 : COPY infra/minio-entrypoint.sh /usr/local/bin/start-minio ---> Using cache ---> e5c21da70a4f Step 18/25 : USER 10001:10001 ---> Using cache ---> 9bc52122d9f2 Step 19/25 : EXPOSE 9000 ---> Using cache ---> 2ca448e77273 Step 20/25 : ENTRYPOINT ["/usr/local/bin/start-minio"] ---> Using cache ---> 3a0797aa5ead Step 21/25 : FROM alpine:3.23@sha256:075c2c1a4068c1e251228ca2b0ea8b163f835ca5d66e758b93c7fc89b1995616 AS mc ---> 075c2c1a4068 Step 22/25 : LABEL org.opencontainers.image.source="https://github.com/minio/mc" org.opencontainers.image.revision="d6541ea280b73a834b64d4097e21f2be77676104" org.opencontainers.image.version="RELEASE.2025-08-13T08-35-41Z" org.opencontainers.image.licenses="AGPL-3.0" ---> Using cache ---> 9257dca2de26 Step 23/25 : COPY --from=mc-builder /out/mc /usr/local/bin/mc ---> Using cache ---> 4bea21e69e8d Step 24/25 : USER 10001:10001 ---> Using cache ---> 45d00b9fce3e Step 25/25 : ENTRYPOINT ["mc"] ---> Using cache ---> 0713832dbf4a Successfully built 0713832dbf4a Successfully tagged mtusi-mc:RELEASE.2025-08-13T08-35-41Z 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 398.3kB Step 1/35 : FROM golang:1.26.4-alpine3.23@sha256:18b460dd17542c2ba43299a633cf6ebfc1115101509531471d7cfce1019af083 AS goose-builder ---> 18b460dd1754 Step 2/35 : RUN 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 ---> 7012ef857c0c Step 3/35 : FROM alpine:3.23@sha256:075c2c1a4068c1e251228ca2b0ea8b163f835ca5d66e758b93c7fc89b1995616 AS migrations ---> 075c2c1a4068 Step 4/35 : COPY --from=goose-builder /out/goose /usr/local/bin/goose ---> Using cache ---> 6a0ad52336c1 Step 5/35 : COPY migrations /migrations ---> Using cache ---> 19018c7bfac9 Step 6/35 : COPY infra/migrate.sh /usr/local/bin/migrate ---> Using cache ---> 0cc075ba3459 Step 7/35 : USER 10001:10001 ---> Using cache ---> 37de51af32cd Step 8/35 : ENTRYPOINT ["/usr/local/bin/migrate"] ---> Using cache ---> e7539a967679 Step 9/35 : CMD ["up"] ---> Using cache ---> 841d9bb239cd Step 10/35 : FROM golang:1.26.4-alpine3.23@sha256:18b460dd17542c2ba43299a633cf6ebfc1115101509531471d7cfce1019af083 AS builder ---> 18b460dd1754 Step 11/35 : WORKDIR /src ---> Using cache ---> 1ba013278a4a Step 12/35 : RUN apk add --no-cache gcc musl-dev ---> Using cache ---> a0ea65f0bded Step 13/35 : COPY go.mod go.sum ./ ---> Using cache ---> e98ccecfb093 Step 14/35 : RUN go mod download ---> Using cache ---> 91d546c71507 Step 15/35 : COPY cmd ./cmd ---> Using cache ---> b4e431a9d5f2 Step 16/35 : COPY contracts ./contracts ---> Using cache ---> 958477d6c98e Step 17/35 : COPY dto ./dto ---> Using cache ---> d115fe2e1af4 Step 18/35 : COPY internal ./internal ---> Using cache ---> 72552b328db4 Step 19/35 : COPY migrations ./migrations ---> Using cache ---> a68ac4a31860 Step 20/35 : RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/messenger ./cmd ---> Using cache ---> 7303ceff230d Step 21/35 : RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/reconcile ./cmd/reconcile ---> Using cache ---> e6cc7991dac9 Step 22/35 : FROM builder AS tests ---> e6cc7991dac9 Step 23/35 : COPY --from=goose-builder /out/goose /usr/local/bin/goose ---> Using cache ---> 5749aa2abe35 Step 24/35 : ENV GOOSE_MIGRATION_DIR=/src/migrations ---> Using cache ---> ca0a6f733ba8 Step 25/35 : CMD ["go", "test", "-p=1", "-race", "-count=1", "-v", "./..."] ---> Using cache ---> c643755b8aac Step 26/35 : FROM alpine:3.23@sha256:075c2c1a4068c1e251228ca2b0ea8b163f835ca5d66e758b93c7fc89b1995616 ---> 075c2c1a4068 Step 27/35 : RUN addgroup -S messenger && adduser -S -D -H -u 10001 -G messenger messenger ---> Using cache ---> 33192b561bfc Step 28/35 : COPY --from=builder --chown=messenger:messenger /out/messenger /usr/local/bin/messenger ---> Using cache ---> 136320eda1d3 Step 29/35 : COPY --from=builder --chown=messenger:messenger /out/reconcile /usr/local/bin/reconcile ---> Using cache ---> 4acf2a8fc638 Step 30/35 : ENV PORT=8080 ---> Using cache ---> 6fbea06a8135 Step 31/35 : EXPOSE 8080 ---> Using cache ---> 333a62acf202 Step 32/35 : USER messenger:messenger ---> Using cache ---> 60a29210a7f2 Step 33/35 : 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 ---> Using cache ---> 803ac1f944e5 Step 34/35 : STOPSIGNAL SIGTERM ---> Using cache ---> 40299d0a0f9f Step 35/35 : ENTRYPOINT ["/usr/local/bin/messenger"] ---> Using cache ---> c81ae0702578 Successfully built c81ae0702578 Successfully tagged mtusi-messenger:lab4 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 398.3kB Step 1/9 : FROM golang:1.26.4-alpine3.23@sha256:18b460dd17542c2ba43299a633cf6ebfc1115101509531471d7cfce1019af083 AS goose-builder ---> 18b460dd1754 Step 2/9 : RUN 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 ---> 7012ef857c0c 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 ---> 19018c7bfac9 Step 6/9 : COPY infra/migrate.sh /usr/local/bin/migrate ---> Using cache ---> 0cc075ba3459 Step 7/9 : USER 10001:10001 ---> Using cache ---> 37de51af32cd Step 8/9 : ENTRYPOINT ["/usr/local/bin/migrate"] ---> Using cache ---> e7539a967679 Step 9/9 : CMD ["up"] ---> Using cache ---> 841d9bb239cd Successfully built 841d9bb239cd Successfully tagged mtusi-migrations:lab4 kkk3r78zn9bb09xudyehchs4p mtusi-lab4_migrations.0.mzx2ds4dsbyh@colima | 2026/10/28 19:14:47 OK 001_initial.sql (17.71ms) mtusi-lab4_migrations.0.mzx2ds4dsbyh@colima | 2026/10/28 19:14:47 OK 002_idempotency.sql (2.54ms) mtusi-lab4_migrations.0.mzx2ds4dsbyh@colima | 2026/10/28 19:14:47 OK 003_attachments.sql (5.13ms) mtusi-lab4_migrations.0.mzx2ds4dsbyh@colima | 2026/10/28 19:14:47 OK 004_message_attachments.sql (2.34ms) mtusi-lab4_migrations.0.mzx2ds4dsbyh@colima | 2026/10/28 19:14:47 goose: successfully migrated database to version: 4 mtusi-lab4_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-lab4_redis (id: zlhenabo1vgqarsazgqa6d897) Updating service mtusi-lab4_minio (id: ygvoo1fje6vqlxw02ugw7awa8) Updating service mtusi-lab4_api (id: xiueb8lcewfukmzn8wocqcmjh) Updating service mtusi-lab4_lb (id: uo65o8allz5azrqbx4zchi811) Updating service mtusi-lab4_postgres (id: vxi6yu73ah85o0xog5w8r1t5k) f6qbximmjnxx8ezv05jxgsngz mtusi-lab4_s3-bootstrap.0.p9vksdlsfz2l@colima | PASS: private bucket and restricted API account configured. mtusi-lab4_s3-bootstrap mtusi-lab4_api scaled to 2 mtusi-lab4_api PASS: rolling update completed PASS: Swarm stack ready at http://localhost:8080