Skip to content

Reduce build and test dependency on docker:// urls.#357

Merged
rchincha merged 1 commit intoproject-stacker:mainfrom
smoser:feature/less-docker-io-dep
Dec 13, 2022
Merged

Reduce build and test dependency on docker:// urls.#357
rchincha merged 1 commit intoproject-stacker:mainfrom
smoser:feature/less-docker-io-dep

Conversation

@smoser
Copy link
Contributor

@smoser smoser commented Dec 12, 2022

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.

@smoser smoser force-pushed the feature/less-docker-io-dep branch from 6572063 to e73e18a Compare December 12, 2022 20:10
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 <scmoser@cisco.com>
@smoser smoser force-pushed the feature/less-docker-io-dep branch from e73e18a to 9ab6a11 Compare December 12, 2022 21:28
@rchincha rchincha merged commit f2781a8 into project-stacker:main Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments