Closed AntStephenson closed 3 years ago
Need to add WORKDIR $REMOTE_SOURCE_DIR/app
.
Verify that remote_source is documented properly as well
Original PR : https://github.com/cekit/cekit/pull/665
The remote_source
is part of https://osbs.readthedocs.io/en/latest/users.html#fetching-source-code-from-external-source-using-cachito
@AntStephenson I'm closing this as I think it was fixed in #716 and we can make further fixes in #719.
Describe the bug To add support for Cachito to our Go build I added to my image.yaml:
Despite this (and removing the erroneous
go mod download
) it doesn't work. After talking with Luiz he suggested (and from the docs[1]) we are missing a WORKDIR invocation. Plus there is some other stuff in the docs too.To reproduce See above, and execute our build with
cekit --redhat build osbs
Expected behavior I'm guessing the build should use cached artifacts from Cachito, or they should be downloaded from there during the build.
Logs Paste any logs you have, use CEKit verbose output:
cekit -v
.Environment information:
Additional context I pasted internal links to the failed builds in the CEKit channel
[1] https://source.redhat.com/groups/public/container-build-system/container_build_system_wiki/containers_from_source_multistage_builds_in_osbs