Skip to content

Commit ddf449b

Browse files
Merge pull request #3455 from openshift-cherrypick-robot/cherry-pick-3434-to-release-4.17
[release-4.17] [build] Add licenses dir to operator and bundle images
2 parents fdd8181 + efafd6c commit ddf449b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Containerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,10 @@ COPY pkg/internal/hns.psm1 .
193193

194194
WORKDIR /
195195

196+
# create licenses directory
197+
# See https://docs.redhat.com/en/documentation/red_hat_software_certification/2025/html-single/red_hat_openshift_software_certification_policy_guide/index#con-image-content-requirements_openshift-sw-cert-policy-container-images
198+
COPY LICENSE /licenses/
199+
196200
ENV OPERATOR=/usr/local/bin/windows-machine-config-operator \
197201
USER_UID=1001 \
198202
USER_NAME=windows-machine-config-operator

Containerfile.bundle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ LABEL release="10.17.2"
3737
LABEL url="https://docs.openshift.com/container-platform/4.17/windows_containers/index.html"
3838
LABEL vendor="Red Hat, Inc."
3939

40+
# create licenses directory
41+
# See https://docs.redhat.com/en/documentation/red_hat_software_certification/2025/html-single/red_hat_openshift_software_certification_policy_guide/index#con-image-content-requirements_openshift-sw-cert-policy-container-images
42+
COPY LICENSE /licenses/
43+
4044
# Copy files to locations specified by labels.
4145
COPY --from=image-replacer /manifests /manifests/
4246
COPY bundle/metadata /metadata/

0 commit comments

Comments
 (0)