Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Reduce build and test dependency on docker:// urls. (#357)
Dependance on docker:// urls are painful because of docker quotas. At my large corporation, the docker.io quota is spent most of the time by afternoon. Currently, stacker build/check depends on docker.io (docker://) urls in these places: * build uses docker://alpine:edge - this can already be set via STACKER_BUILD_BASE_IMAGE to some other alpine url. * docker://centos:latest - now can be set in STACKER_DOCKER_BASE_CENTOS * docker://ubuntu:latest - now can be set in STACKER_DOCKER_BASE_UBUNTU The change here allows these urls to be configured as a group by setting STACKER_DOCKER_BASE such as one of these: make STACKER_DOCKER_BASE=docker://your-local-zot/stacker-deps/ make STACKER_DOCKER_BASE=oci:/data/sdeps: or individually like: make STACKER_BUILD_BASE_IMAGE=docker://alpine:edge \ STACKER_BUILD_UBUNTU_IMAGE=oci://data/sdeps:ubuntu:latest Note: This does not address the issue with depending on "latest" anything, in that the developer of those images can legitimately change their behavior at any point. Using 'latest' is explicitly opting in for breakage over time. Signed-off-by: Scott Moser <[email protected]>
- Loading branch information