You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FROM quay.io/openshift/origin-ansible-operator:4.10
1
+
FROM quay.io/openshift/origin-ansible-operator:4.12
2
2
3
+
# temporarily switch to root user to adjust image layers
4
+
USER 0
5
+
6
+
# update the base image to allow forward-looking optimistic updates during the testing phase, with the added benefit of helping move closer to passing security scans.
7
+
# -- excludes ansible so it remains at 2.9 tag as shipped with the base image
8
+
# -- cleans up the cached data from dnf to keep the image as small as possible
9
+
RUN dnf update -y --exclude=ansible* && dnf clean all && rm -rf /var/cache/dnf
10
+
11
+
# switch back to user 1001 when running the base image (non-root)
echo"---- Created working directory: ${WORKING_DIR}"
20
23
}
21
24
22
25
generate_dockerfile() {
23
-
echo"-- Generate Dockerfile for bundle"
24
26
sed -E "s#<<OPERATOR_BUNDLE_VERSION>>#${OPERATOR_BUNDLE_VERSION}#g;s#<<BUNDLE_CHANNELS>>#${BUNDLE_CHANNELS}#g;s#<<BUNDLE_DEFAULT_CHANNEL>>#${BUNDLE_DEFAULT_CHANNEL}#g""${REL}/../${BUNDLE_PATH}/Dockerfile.in">"${WORKING_DIR}/Dockerfile"
0 commit comments