Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions Dockerfile.aro-e2e
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,19 @@ 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 /
ENTRYPOINT ["aro"]
EXPOSE 2222/tcp 8080/tcp 8443/tcp 8444/tcp 8445/tcp

USER 1000
ENV HOME=/tmp
Loading