Idea #21328
closedPackage build Dockerfiles clone from workspace, not git.arvados.org
Description
As of January 2024, the package build Dockerfiles get a clean source checkout by cloning from git.arvados.org. This means you can't test local build changes before pushing them. It would both be more flexible, and more efficient, to mount the user's WORKSPACE as a volume, and git clone that instead.
Updated by Brett Smith 8 months ago
- Status changed from New to Closed
build-docker-image.yml no longer does the steps that require a source checkout, and therefore mooted this issue.
The steps in question started in 25cf4518ef59c42652f4692ccc4e4208cf42155a and were meant to speed up repeated Go builds on the same image. That's a nice feature, but it comes up relatively rarely: our package build jobs always build everything from scratch. If someone wants to reimplement it in Ansible, we should do so by mounting $WORKSPACE into the Docker container during the build.