Skip to content

Commit 1b0721e

Browse files
authored
Merge pull request #4752 from Azure/rachelvweber/ARO-23873
Adding Az cli into e2e dockerfile
2 parents 40ac70e + f8129a2 commit 1b0721e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Dockerfile.aro-e2e

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,19 @@ COPY . /app
1616
RUN make aro RELEASE=${IS_OFFICIAL_RELEASE} -o generate && make validate-fips && make e2e.test e2etools
1717

1818
FROM ${REGISTRY}/ubi9/ubi-minimal
19+
USER root
20+
RUN rpm --import https://packages.microsoft.com/keys/microsoft.asc && \
21+
curl -fsSLo /tmp/packages-microsoft-prod.rpm https://packages.microsoft.com/config/rhel/9.0/packages-microsoft-prod.rpm && \
22+
rpm -Uvh /tmp/packages-microsoft-prod.rpm && \
23+
microdnf install -y azure-cli && \
24+
rm -f /tmp/packages-microsoft-prod.rpm && \
25+
microdnf clean all
26+
1927
COPY --from=builder /root/go/bin/gojq /usr/local/bin/jq
2028
COPY --from=builder /app/aro /app/e2e.test /app/db /app/cluster /app/portalauth /usr/local/bin/
2129
# Setting ENV HOME=/tmp does not change the user’s default home directory of /
2230
# This setting is required to keep the existing e2e pipeline working without any code changes
2331
COPY --from=builder /app/portalauth /
24-
ENTRYPOINT ["aro"]
25-
EXPOSE 2222/tcp 8080/tcp 8443/tcp 8444/tcp 8445/tcp
32+
2633
USER 1000
2734
ENV HOME=/tmp

0 commit comments

Comments
 (0)