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
org.opencontainers.image.vendor="Eclipse Che team" \
53
-
org.opencontainers.image.title="ConfigBump" \
54
-
org.opencontainers.image.description="This is a simple Kubernetes controller that is able to quickly synchronize a set of configmaps (selected using labels) to files on local filesystem." \
55
-
org.opencontainers.image.licenses="EPL 2.0"
56
-
57
-
ENV EDITION_IDS="ConfigBump"
58
-
59
-
RUN apk --update --no-cache add \
60
-
ca-certificates \
61
-
libressl \
62
-
tzdata \
63
-
&& rm -rf /tmp/* /var/cache/apk/*
23
+
#hadolint ignore=SC3010
24
+
RUN export ARCH="$(uname -m)" && if [[ ${ARCH} == "x86_64" ]]; then export ARCH="amd64"; elif [[ ${ARCH} == "aarch64" ]]; then export ARCH="arm64"; fi && \
25
+
go mod download && go mod verify && \
26
+
go test -v ./... && \
27
+
# to test FIPS compliance, run https://github.com/openshift/check-payload#scan-a-container-or-operator-image against a built image
28
+
GOOS=linux GOARCH=${ARCH} go build -a -ldflags '-w -s' -a -installsuffix cgo -o configbump cmd/configbump/main.go && \
29
+
cp configbump /usr/local/bin/configbump && \
30
+
chmod 755 /usr/local/bin/configbump
31
+
32
+
# https://registry.access.redhat.com/ubi9-minimal
33
+
FROM registry.access.redhat.com/ubi9-minimal:9.5-1742914212 as runtime
34
+
#hadolint ignore=DL4006
35
+
RUN microdnf -y install shadow-utils && \
36
+
adduser appuser && \
37
+
microdnf -y remove shadow-utils && \
38
+
microdnf -y update || true && \
39
+
microdnf -y clean all && rm -rf /var/cache/yum && \
0 commit comments