-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplify and optimize release process
This commit simplifies and optimizes the release process: - No longer build binaries for: - linux/s390x (not used) - linux/ppc64le (not used) - darwin/amd64 (apple has moved to arm64) - No longer build containers for: - linux/s390x (not used) - linux/ppc64le (not used) - Upgrade release container image to ubi-9 - Simplify dev container build If users really want linux/s390x or linux/ppc64le we can add these targets again. However, orgs running such infra most probably run their own registry and the users can still build images for these os/arch from the docker file using `docker build -f Dockerfile .` Signed-off-by: Andreas Auernhammer <[email protected]>
- Loading branch information
Showing
7 changed files
with
127 additions
and
186 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,26 @@ | ||
FROM golang:1.21-alpine as build | ||
FROM --platform=linux/amd64 registry.access.redhat.com/ubi8/ubi-minimal:9.2 as build | ||
|
||
LABEL maintainer="MinIO Inc <[email protected]>" | ||
RUN microdnf update --nodocs && microdnf install ca-certificates --nodocs | ||
|
||
ENV GOPATH /go | ||
ENV CGO_ENABLED 0 | ||
ENV GO111MODULE on | ||
FROM registry.access.redhat.com/ubi8/ubi-micro:9.2 | ||
|
||
RUN \ | ||
apk add --no-cache git && \ | ||
git clone https://github.com/minio/kes && cd kes && \ | ||
GOPROXY=$(go env GOPROXY) go install -v -ldflags "-s -w" ./cmd/kes | ||
ARG TAG | ||
|
||
FROM alpine:latest as alpine | ||
RUN apk add -U --no-cache ca-certificates | ||
LABEL name="MinIO" \ | ||
vendor="MinIO Inc <[email protected]>" \ | ||
maintainer="MinIO Inc <[email protected]>" \ | ||
version="${TAG}" \ | ||
release="${TAG}" \ | ||
summary="KES is a cloud-native distributed key management and encryption server designed to build zero-trust infrastructures at scale." | ||
|
||
FROM scratch | ||
# On RHEL the certificate bundle is located at: | ||
# - /etc/pki/tls/certs/ca-bundle.crt (RHEL 6) | ||
# - /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem (RHEL 7) | ||
COPY --from=build /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem /etc/pki/ca-trust/extracted/pem/ | ||
|
||
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
COPY --from=build /go/bin/kes /kes | ||
COPY LICENSE /LICENSE | ||
COPY CREDITS /CREDITS | ||
COPY kes /kes | ||
|
||
EXPOSE 7373 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM golang:1.21-alpine as build | ||
|
||
LABEL maintainer="MinIO Inc <[email protected]>" | ||
|
||
ENV GOPATH /go | ||
ENV CGO_ENABLED 0 | ||
|
||
RUN \ | ||
apk add -U --no-cache ca-certificates && \ | ||
apk add --no-cache git && \ | ||
git clone https://github.com/minio/kes && cd kes && \ | ||
go install -v -trimpath -buildvcs=true -ldflags "-s -w" ./cmd/kes | ||
|
||
FROM scratch | ||
|
||
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
COPY --from=build /go/bin/kes /kes | ||
|
||
EXPOSE 7373 | ||
|
||
ENTRYPOINT ["/kes"] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.