-
Notifications
You must be signed in to change notification settings - Fork 122
Expand file tree
/
Copy pathDockerfile.assisted-installer-downstream
More file actions
47 lines (39 loc) · 1.74 KB
/
Dockerfile.assisted-installer-downstream
File metadata and controls
47 lines (39 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
FROM --platform=$BUILDPLATFORM registry.access.redhat.com/ubi9/go-toolset:1.25 AS builder
ARG TARGETOS
ARG TARGETARCH
ENV COMPONENT_NAME=installer
ENV COMPONENT_VERSION=1.0.0
ENV COMPONENT_TAG_EXTENSION=" "
ENV GOFLAGS="-p=4"
ENV USER_UID=1001 \
USER_NAME=assisted-installer
COPY --chown=${USER_UID} . /app
WORKDIR /app
RUN CGO_ENABLED=1 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o installer src/main/main.go
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest@sha256:6fc28bcb6776e387d7a35a2056d9d2b985dc4e26031e98a2bd35a7137cd6fd71
ARG release=main
ARG version=latest
RUN microdnf install -y util-linux-core && microdnf clean all
COPY LICENSE /licenses/
COPY --from=builder /app/installer /installer
COPY --from=builder /app/deploy/assisted-installer-controller /assisted-installer-controller/deploy
ENTRYPOINT ["/installer"]
LABEL com.redhat.component="assisted-installer-container" \
name="rhai/assisted-installer-rhel9" \
cpe="cpe:/a:redhat:assisted_installer:2.38::el9" \
version="${version}" \
upstream-ref="${version}" \
upstream-url="https://github.com/openshift/assisted-installer" \
url="https://github.com/openshift/assisted-installer" \
summary="OpenShift Assisted Installer" \
io.k8s.display-name="OpenShift Assisted Installer" \
maintainer="Liat Gamliel <lgamliel@redhat.com>" \
description="OpenShift Assisted Installer" \
io.k8s.description="OpenShift Assisted Installer" \
distribution-scope="public" \
release="${release}" \
vendor="Red Hat, Inc." \
io.openshift.tags="OpenShift 4" \
upstream_commit="${version}" \
org.label-schema.vcs-ref="${version}" \
org.label-schema.vcs-url="https://github.com/openshift/assisted-installer"