File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
elements/rocky-container-stackhpc Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -15,13 +15,19 @@ upstream Rocky repository mirrors.
1515to build an image from, and should also be passed as a build-arg.
1616``ROCKY_CUSTOM_DNF_MIRROR_URLS `` will be removed from the final image.
1717
18+ Pass ``ROCKY_VERSION `` as a build-arg to specify a rockylinux/rockylinux tag.
19+ Otherwise the floating tag for version 9 will be used. This can surprise you
20+ when a new Rocky Linux minor release is out and the tag is updated, so you should
21+ include the minor version in the tag (eg ``ROCKY_VERSION=9.7 ``).
22+
1823Use ``DIB_CONTAINERFILE_BUILDOPTS `` to pass through build args to the container
1924engine:
2025
2126.. code-block :: yaml
2227 DIB_CONTAINERFILE_BUILDOPTS : >-
2328 --build-arg=ROCKY_USE_CUSTOM_DNF_MIRRORS=true
2429 --build-arg=ROCKY_CUSTOM_DNF_MIRROR_URLS=http://localhost/rocky/9/AppStream/x86_64/os/,http://localhost/rocky/9/BaseOS/x86_64/os/
30+ --build-arg=ROCKY_VERSION=9.7
2531
2632 Set ``DIB_ROCKY_CONTAINER_STACKHPC_RESTORE_UPSTREAM_REPOFILES=true `` to restore the
27- upstream Rocky repository mirror configuration in the final image.
33+ upstream Rocky repository mirror configuration in the final image.
Original file line number Diff line number Diff line change 11# Based on https://github.com/openstack/diskimage-builder/blob/master/diskimage_builder/elements/rocky-container/containerfiles/9
2-
3- FROM docker.io/rockylinux/rockylinux:9
2+ # For least surprise when a new minor version is out, specify the full version, eg `ROCKY_VERSION=9.7`
3+ ARG ROCKY_VERSION=9
4+ FROM quay.io/rockylinux/rockylinux:${ROCKY_VERSION}
45ARG ROCKY_USE_CUSTOM_DNF_MIRRORS="false"
56# Comma-delimited list of repo URLs
67ARG ROCKY_CUSTOM_DNF_MIRROR_URLS
You can’t perform that action at this time.
0 commit comments