-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
411 additions
and
472 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
|
@@ -29,9 +29,35 @@ RUN cd ./cmd/operator && CGO_ENABLED=1 GOFLAGS="" GO111MODULE=on go build -o /bu | |
RUN cd ./cmd/webadmission && CGO_ENABLED=1 GOFLAGS="" GO111MODULE=on go build -o /build/assisted-service-admission | ||
RUN cd ./cmd/agentbasedinstaller/client && CGO_ENABLED=1 GOFLAGS="" GO111MODULE=on go build -o /build/agent-installer-client | ||
|
||
# Licenses | ||
FROM registry.access.redhat.com/ubi9/go-toolset:1.18 AS licenses | ||
|
||
ADD . /app | ||
WORKDIR /app | ||
|
||
RUN go install github.com/google/[email protected] | ||
RUN ${HOME}/go/bin/go-licenses save --save_path /tmp/licenses ./... | ||
|
||
# Create final image | ||
FROM quay.io/centos/centos:$BASE_TAG | ||
|
||
ARG release=main | ||
ARG version=latest | ||
|
||
LABEL com.redhat.component assisted-service | ||
LABEL description "Service that installs Openshift" | ||
LABEL summary "Service that installs Openshift" | ||
LABEL io.k8s.description "Service that installs Openshift" | ||
LABEL distribution-scope public | ||
LABEL name assisted-service | ||
LABEL release ${release} | ||
LABEL version ${version} | ||
LABEL url https://github.com/openshift/assisted-service | ||
LABEL vendor "Red Hat, Inc." | ||
LABEL maintainer "Red Hat" | ||
|
||
COPY --from=licenses /tmp/licenses /licenses | ||
|
||
COPY hack/container_build_scripts/replace_dnf_repositories_ref_if_needed.sh . | ||
COPY hack/container_build_scripts/utils.sh . | ||
ARG BASE_TAG | ||
|
@@ -59,4 +85,7 @@ COPY --from=builder /build/agent-installer-client /usr/local/bin/agent-installer | |
RUN ln -s /usr/local/bin/agent-installer-client /agent-based-installer-register-cluster-and-infraenv | ||
ENV GODEBUG=madvdontneed=1 | ||
ENV GOGC=50 | ||
|
||
USER 1001:1001 | ||
|
||
CMD ["/assisted-service"] |
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
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.