Skip to content

Commit

Permalink
set COSA_DIR in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesesashimi committed Jun 7, 2022
1 parent 939d8c8 commit 46deaad
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ci/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,14 @@ RUN go test -v -c -o layering_test ./tests/layering

FROM registry.svc.ci.openshift.org/coreos/coreos-assembler:latest
WORKDIR /src
ENV COSA_DIR=/tmp/cosa
COPY --from=builder /go/src/github.com/openshift/os/layering_test /usr/local/bin/layering_test
COPY . .
RUN mkdir -p "${COSA_DIR}"
# We need to make sure that root can read / write to the COSA_DIR so that
# when this container is actually run, we have permissions to read and
# write to the COSA_DIR to allow the Kola tests to run.
USER root
RUN chgrp -Rf root "${COSA_DIR}" && \
chmod -Rf g+w "${COSA_DIR}"
USER builder

0 comments on commit 46deaad

Please sign in to comment.