From 7a29341447d9872b21d198664387f7222ece3b2f Mon Sep 17 00:00:00 2001 From: Benjamin Dematteo Date: Thu, 11 Sep 2025 13:54:47 +0200 Subject: [PATCH] Adding README.md for local dev + small fixing for MacOS build --- Dockerfile.aro | 4 ++-- README.md | 29 +++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 README.md diff --git a/Dockerfile.aro b/Dockerfile.aro index 9c3aee777..19c4a3142 100644 --- a/Dockerfile.aro +++ b/Dockerfile.aro @@ -2,7 +2,7 @@ # ARG REGISTRY=registry.access.redhat.com ARG BUILDER_REGISTRY=registry.ci.openshift.org/ocp/builder -FROM ${BUILDER_REGISTRY}:rhel-9-golang-1.24-openshift-4.20 AS builder +FROM --platform=linux/amd64 ${BUILDER_REGISTRY}:rhel-9-golang-1.24-openshift-4.20 AS builder ENV GO_COMPLIANCE_INFO=0 USER root @@ -16,7 +16,7 @@ COPY . /app RUN git config --system --add safe.directory '*' RUN make aro RELEASE=${IS_OFFICIAL_RELEASE} -o generate && make validate-fips -FROM ${REGISTRY}/ubi9/ubi-minimal +FROM --platform=linux/amd64 ${REGISTRY}/ubi9/ubi-minimal RUN microdnf update -y && microdnf clean all -y COPY --from=builder /app/aro /bin/openshift-install ENTRYPOINT ["/bin/openshift-install"] diff --git a/README.md b/README.md new file mode 100644 index 000000000..42e512ed9 --- /dev/null +++ b/README.md @@ -0,0 +1,29 @@ +# Test paragraph + +You can build and publish to your personal Quay account installer-aro-wrapper image with as follow: +``` +export ARO_IMAGE=quay.io//aroinstaller: +make publish-image-aro +``` + +For the build step to succeed, we are now pulling images from quay.io/openshift-release-dev and they aren't publicly available. So we need to have extra auth for docker/pod +man. Needed information can be found in `secrets/env` in ARO-RP. +Note `secrets` repository isn't commited and is retrieved with `make secrets` command (details in ARO-RP documentation). +The needed token is the one used for 'quay.io' in the `PULL_SECRET` environment variable. + +To be able to pull images for build and push your image afterward to your own account, `auth.json` should be something like +``` +{ + "auths": { + "arointsvc.azurecr.io": { + "auth": "" + }, + "quay.io/": { + "auth": "" + }, + "quay.io/openshift-release-dev": { + "auth": "" + } + } +} +```