Skip to content

Commit

Permalink
Fixing empty tuned submodule when using Dockerfile (#1159)
Browse files Browse the repository at this point in the history
Since we are using a multi stage builds in the Dockerfile (2 builds), and we need to use the tuned submodule also in the second layer,
we must ensure we copy the directory from the builder image (where we initialize the tuned submodule), to the final image.
  • Loading branch information
rbaturov authored Sep 16, 2024
1 parent 6795ff8 commit f3aafdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ COPY --from=builder /go/src/github.com/openshift/cluster-node-tuning-operator/_o
COPY --from=builder /go/src/github.com/openshift/cluster-node-tuning-operator/_output/gather-sysinfo /usr/bin/

ENV ASSETS_DIR=/root/assets
COPY assets $ASSETS_DIR
COPY --from=builder /go/src/github.com/openshift/cluster-node-tuning-operator/assets $ASSETS_DIR

COPY hack/dockerfile_install_support.sh /tmp
RUN /bin/bash /tmp/dockerfile_install_support.sh
Expand Down

0 comments on commit f3aafdb

Please sign in to comment.