mirror of
https://github.com/quay/quay.git
synced 2026-10-23 09:49:06 +03:00
OMR 2.0.x users run `mirror-registry install|upgrade|uninstall`; OMR 3.0 shipped the same CLI as `quay`, which also collides with the Quay product name. Rename the binary and its entrypoint so the command name is consistent across versions. - Makefile: GO_BINARY_NAME and GO_CMD_DIR; cmd/quay moves to cmd/mirror-registry. - Dockerfile.mirror: build output and ENTRYPOINT. - cmd package: BinaryName constant used for the root command and the version output; user-facing error hints that named `quay init` / `quay install` / `quay db upgrade` (now `mirror-registry install`, the command that upgrades an existing schema). - ci-go.yaml: artifact name and every bin/quay invocation. Unchanged: systemd unit quay.service, Quadlet quay.container, default data directory /var/lib/quay, image quay.io/quay/quay-mirror, and the Go module path.
14 lines
387 B
Docker
14 lines
387 B
Docker
FROM registry.access.redhat.com/ubi9/go-toolset:9.8 AS builder
|
|
WORKDIR /src
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
COPY cmd/ cmd/
|
|
COPY internal/ internal/
|
|
USER 0
|
|
RUN CGO_ENABLED=0 go build -o /mirror-registry ./cmd/mirror-registry
|
|
|
|
FROM registry.access.redhat.com/ubi9/ubi-micro:latest
|
|
COPY --from=builder /mirror-registry /mirror-registry
|
|
EXPOSE 8443
|
|
ENTRYPOINT ["/mirror-registry"]
|