-
Notifications
You must be signed in to change notification settings - Fork 194
Expand file tree
/
Copy pathDockerfile.aro-e2e
More file actions
34 lines (28 loc) · 1.22 KB
/
Dockerfile.aro-e2e
File metadata and controls
34 lines (28 loc) · 1.22 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
# Uses a multi-stage container build to build the RP & E2E components.
#
ARG REGISTRY
ARG BUILDER_REGISTRY
FROM ${BUILDER_REGISTRY}/openshift-release-dev/golang-builder--partner-share:rhel-9-golang-1.25-openshift-4.21 AS builder
ENV GO_COMPLIANCE_INFO=0
USER root
ENV GOPATH=/root/go
ENV PATH=$PATH:${GOPATH}/bin/
RUN mkdir -p /app
WORKDIR /app
COPY . /app
RUN make aro RELEASE=${IS_OFFICIAL_RELEASE} -o generate && make validate-fips && make e2e.test e2etools
FROM ${REGISTRY}/ubi9/ubi-minimal
USER root
RUN rpm --import https://packages.microsoft.com/keys/microsoft.asc && \
curl -fsSLo /tmp/packages-microsoft-prod.rpm https://packages.microsoft.com/config/rhel/9.0/packages-microsoft-prod.rpm && \
rpm -Uvh /tmp/packages-microsoft-prod.rpm && \
microdnf install -y azure-cli && \
rm -f /tmp/packages-microsoft-prod.rpm && \
microdnf clean all
COPY --from=builder /root/go/bin/gojq /usr/local/bin/jq
COPY --from=builder /app/aro /app/e2e.test /app/db /app/cluster /app/portalauth /usr/local/bin/
# Setting ENV HOME=/tmp does not change the user’s default home directory of /
# This setting is required to keep the existing e2e pipeline working without any code changes
COPY --from=builder /app/portalauth /
USER 1000
ENV HOME=/tmp