Skip to content

Commit

Permalink
Dockerfile: move creation of /go dir lower
Browse files Browse the repository at this point in the history
That way it's more obvious that it's empty and it's purely for OpenShift
CI compatibility.
  • Loading branch information
jlebon authored and dustymabe committed Nov 21, 2024
1 parent dcd60cf commit 7ef008c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ RUN ./build.sh install_rpms
RUN ./build.sh install_ocp_tools
RUN ./build.sh trust_redhat_gpg_keys

# This allows Prow jobs for other projects to use our cosa image as their
# buildroot image (so clonerefs can copy the repo into `/go`). For cosa itself,
# this same hack is inlined in the YAML (see openshift/release link above).
RUN mkdir -p /go && chmod 777 /go

COPY ./ /root/containerbuild/
RUN ./build.sh write_archive_info
RUN ./build.sh make_and_makeinstall
Expand All @@ -37,6 +32,11 @@ RUN chmod g=u /etc/passwd
# also allow adding certificates
RUN chmod -R g=u /etc/pki/ca-trust

# This allows Prow jobs for other projects to use our cosa image as their
# buildroot image (so clonerefs can copy the repo into `/go`). For cosa itself,
# this same hack is inlined in the YAML (see openshift/release link above).
RUN mkdir -p /go && chmod 777 /go

# run as `builder` user
USER builder
ENTRYPOINT ["/usr/bin/dumb-init", "/usr/bin/coreos-assembler"]

0 comments on commit 7ef008c

Please sign in to comment.