Skip to content

Commit 7ef008c

Browse files
jlebondustymabe
authored andcommitted
Dockerfile: move creation of /go dir lower
That way it's more obvious that it's empty and it's purely for OpenShift CI compatibility.
1 parent dcd60cf commit 7ef008c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ RUN ./build.sh install_rpms
1414
RUN ./build.sh install_ocp_tools
1515
RUN ./build.sh trust_redhat_gpg_keys
1616

17-
# This allows Prow jobs for other projects to use our cosa image as their
18-
# buildroot image (so clonerefs can copy the repo into `/go`). For cosa itself,
19-
# this same hack is inlined in the YAML (see openshift/release link above).
20-
RUN mkdir -p /go && chmod 777 /go
21-
2217
COPY ./ /root/containerbuild/
2318
RUN ./build.sh write_archive_info
2419
RUN ./build.sh make_and_makeinstall
@@ -37,6 +32,11 @@ RUN chmod g=u /etc/passwd
3732
# also allow adding certificates
3833
RUN chmod -R g=u /etc/pki/ca-trust
3934

35+
# This allows Prow jobs for other projects to use our cosa image as their
36+
# buildroot image (so clonerefs can copy the repo into `/go`). For cosa itself,
37+
# this same hack is inlined in the YAML (see openshift/release link above).
38+
RUN mkdir -p /go && chmod 777 /go
39+
4040
# run as `builder` user
4141
USER builder
4242
ENTRYPOINT ["/usr/bin/dumb-init", "/usr/bin/coreos-assembler"]

0 commit comments

Comments
 (0)