lab5: очереди и асинхронная обработка изображений
Durable staging handoff, transactional outbox, at-least-once worker with lease fencing, idempotent versioned pipeline, three variants, operator tooling, contract tests and evidence. Includes the review fixes: reprocess source selection and failure settlement, replay guards, stale-job retirement, PNG structural/raster validation, migration rollback safety and audit events.
This commit is contained in:
+19
-4
@@ -31,17 +31,29 @@ ENV GOMEMLIMIT=1GiB
|
||||
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} \
|
||||
go build -trimpath -buildvcs=false -tags timetzdata \
|
||||
go build -trimpath -buildvcs=false -tags timetzdata,nodynamic \
|
||||
-ldflags="-s -w -X main.version=${VERSION}" \
|
||||
-o /out/messenger ./cmd/messenger \
|
||||
&& CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} \
|
||||
go build -trimpath -buildvcs=false -tags timetzdata \
|
||||
go build -trimpath -buildvcs=false -tags timetzdata,nodynamic \
|
||||
-ldflags="-s -w -X main.version=${VERSION}" \
|
||||
-o /out/migrate ./cmd/migrate \
|
||||
&& CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} \
|
||||
go build -trimpath -buildvcs=false -tags timetzdata \
|
||||
go build -trimpath -buildvcs=false -tags timetzdata,nodynamic \
|
||||
-ldflags="-s -w -X main.version=${VERSION}" \
|
||||
-o /out/s3init ./cmd/s3init
|
||||
-o /out/s3init ./cmd/s3init \
|
||||
&& CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} \
|
||||
go build -trimpath -buildvcs=false -tags timetzdata,nodynamic \
|
||||
-ldflags="-s -w -X main.version=${VERSION}" \
|
||||
-o /out/worker ./cmd/worker \
|
||||
&& CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} \
|
||||
go build -trimpath -buildvcs=false -tags timetzdata,nodynamic \
|
||||
-ldflags="-s -w -X main.version=${VERSION}" \
|
||||
-o /out/relay ./cmd/relay \
|
||||
&& CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} \
|
||||
go build -trimpath -buildvcs=false -tags timetzdata,nodynamic \
|
||||
-ldflags="-s -w -X main.version=${VERSION}" \
|
||||
-o /out/jobctl ./cmd/jobctl
|
||||
|
||||
FROM alpine:${ALPINE_VERSION} AS runtime
|
||||
RUN apk add --no-cache ca-certificates wget \
|
||||
@@ -51,6 +63,9 @@ RUN apk add --no-cache ca-certificates wget \
|
||||
COPY --from=build --chown=10001:10001 /out/messenger /usr/local/bin/messenger
|
||||
COPY --from=build --chown=10001:10001 /out/migrate /usr/local/bin/migrate
|
||||
COPY --from=build --chown=10001:10001 /out/s3init /usr/local/bin/s3init
|
||||
COPY --from=build --chown=10001:10001 /out/worker /usr/local/bin/worker
|
||||
COPY --from=build --chown=10001:10001 /out/relay /usr/local/bin/relay
|
||||
COPY --from=build --chown=10001:10001 /out/jobctl /usr/local/bin/jobctl
|
||||
COPY --chown=10001:10001 config/dev/config.yaml /etc/messenger/dev/config.yaml
|
||||
|
||||
USER 10001:10001
|
||||
|
||||
Reference in New Issue
Block a user