Skip to content

Commit 55ba53c

Browse files
authored
Merge pull request #88 from slagle/user-packages
Add $USER_PACKAGES to bootc image
2 parents c093c53 + 3663c30 commit 55ba53c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

bootc/Containerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ ARG NVMEOF_PACKAGES="\
112112
nvme-cli \
113113
"
114114

115+
ARG USER_PACKAGES=""
116+
115117
ARG RHSM_SCRIPT=empty.sh
116118
COPY $RHSM_SCRIPT /var/tmp/rhsm-script.sh
117119
RUN /var/tmp/rhsm-script.sh && \
@@ -131,7 +133,9 @@ RUN /var/tmp/rhsm-script.sh && \
131133
$REBOOT_PACKAGES \
132134
$SSHD_PACKAGES \
133135
$TUNED_PACKAGES \
134-
$TELEMETRY_LOGGING_PACKAGES && \
136+
$TELEMETRY_LOGGING_PACKAGES \
137+
$USER_PACKAGES \
138+
&& \
135139
# edpm_bootstrap
136140
source /etc/os-release && if [ "${ID}" = "rhel" ]; then dnf -y install rhoso-release; fi && \
137141
# edpm_kernel

bootc/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ EDPM_BOOTC_IMAGE ?= ${EDPM_BOOTC_REPO}:${EDPM_BOOTC_TAG}
77
EDPM_QCOW2_IMAGE ?= ${EDPM_BOOTC_REPO}:${EDPM_BOOTC_TAG}-qcow2
88
BUILDER_IMAGE ?= quay.io/centos-bootc/bootc-image-builder:latest
99
HOST_PACKAGES ?= podman osbuild-selinux https://download.devel.redhat.com/rcm-guest/puddles/OpenStack/rhos-release/rhos-release-latest.noarch.rpm
10+
USER_PACKAGES ?=
1011
RHSM_SCRIPT ?= empty.sh
1112
FIPS ?= 1
1213

@@ -35,6 +36,7 @@ build: output/yum.repos.d
3536
--build-arg EDPM_BASE_IMAGE=${EDPM_BASE_IMAGE} \
3637
--build-arg RHSM_SCRIPT=${RHSM_SCRIPT} \
3738
--build-arg FIPS=${FIPS} \
39+
--build-arg USER_PACKAGES=${USER_PACKAGES} \
3840
--volume /etc/pki/ca-trust:/etc/pki/ca-trust:ro,Z \
3941
--volume $(shell pwd)/output/yum.repos.d:/etc/yum.repos.d:rw,Z \
4042
-f ${EDPM_CONTAINERFILE} \

0 commit comments

Comments
 (0)