Files
mtusi2026lab5/evidence/lab4-build.txt
T
2026-11-10 20:42:03 +03:00

113 lines
4.3 KiB
Plaintext

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 401.9kB
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
---> 2f61826e3774
Step 19/35 : COPY migrations ./migrations
---> d96dd811bc83
Step 20/35 : RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/messenger ./cmd
---> Running in 3d7cd429d659
---> Removed intermediate container 3d7cd429d659
---> 2ad69db4c288
Step 21/35 : RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/reconcile ./cmd/reconcile
---> Running in 7b9a510ed472
---> Removed intermediate container 7b9a510ed472
---> 4a49dc2719a3
Step 22/35 : FROM builder AS tests
---> 4a49dc2719a3
Step 23/35 : COPY --from=goose-builder /out/goose /usr/local/bin/goose
---> 5df1413dfc44
Step 24/35 : ENV GOOSE_MIGRATION_DIR=/src/migrations
---> Running in c30eee45a5e7
---> Removed intermediate container c30eee45a5e7
---> 173325b59e7d
Step 25/35 : CMD ["go", "test", "-p=1", "-race", "-count=1", "-v", "./..."]
---> Running in 384e08125582
---> Removed intermediate container 384e08125582
---> 187ea6b3bcac
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
---> 37a18e0c6edf
Step 29/35 : COPY --from=builder --chown=messenger:messenger /out/reconcile /usr/local/bin/reconcile
---> b0e79d0416ba
Step 30/35 : ENV PORT=8080
---> Running in 48da45f81d52
---> Removed intermediate container 48da45f81d52
---> a7c04e9ff97b
Step 31/35 : EXPOSE 8080
---> Running in 671ff92f3fad
---> Removed intermediate container 671ff92f3fad
---> e56b07b42f04
Step 32/35 : USER messenger:messenger
---> Running in 8003e4ea3b5d
---> Removed intermediate container 8003e4ea3b5d
---> 48b4424b156b
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
---> Running in c05d11001e2b
---> Removed intermediate container c05d11001e2b
---> 563fbe4dcd7d
Step 34/35 : STOPSIGNAL SIGTERM
---> Running in 8fb80a0e0f6c
---> Removed intermediate container 8fb80a0e0f6c
---> c5a0a88ba147
Step 35/35 : ENTRYPOINT ["/usr/local/bin/messenger"]
---> Running in 9e51b29d5939
---> Removed intermediate container 9e51b29d5939
---> c28dcd6e4410
Successfully built c28dcd6e4410
Successfully tagged mtusi-messenger:lab4