Skip to content

Commit 1463ade

Browse files
committed
Update Dockerfile
Signed-off-by: savitaashture <[email protected]>
1 parent 47c51a5 commit 1463ade

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.konflux/dockerfiles/git-init.Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ COPY .konflux/patches patches/
99
RUN set -e; for f in patches/*.patch; do echo ${f}; [[ -f ${f} ]] || continue; git apply ${f}; done
1010
COPY head HEAD
1111
ENV GODEBUG="http2server=0"
12-
ENV GOEXPERIMENT=strictfipsruntime
13-
RUN cd image/git-init && go build -ldflags="-X 'knative.dev/pkg/changeset.rev=${CHANGESET_REV:0:7}'" -mod=vendor -tags strictfipsruntime -v -o /tmp/tektoncd-catalog-git-clone
12+
RUN cd image/git-init && go build -ldflags="-X 'knative.dev/pkg/changeset.rev=${CHANGESET_REV:0:7}'" -mod=vendor -v -o /tmp/tektoncd-catalog-git-clone
1413

1514
FROM $RUNTIME
1615
ARG VERSION=git-init-1.14.6
@@ -23,6 +22,8 @@ RUN dnf install -y openssh-clients git git-lfs shadow-utils
2322

2423
COPY --from=builder /tmp/tektoncd-catalog-git-clone ${KO_APP}/${BINARY}
2524
COPY head ${KO_DATA_PATH}/HEAD
25+
RUN chgrp -R 0 ${KO_APP} && \
26+
chmod -R g+rwX ${KO_APP}
2627

2728
LABEL \
2829
com.redhat.component="openshift-pipelines-git-init-rhel8-container" \
@@ -35,7 +36,7 @@ LABEL \
3536
io.k8s.description="Red Hat OpenShift Pipelines Git-init" \
3637
io.openshift.tags="pipelines,tekton,openshift"
3738

38-
RUN groupadd -r -g 65532 nonroot && useradd --no-log-init -r -u 65532 -g nonroot nonroot
39+
RUN groupadd -r -g 65532 nonroot && useradd --no-log-init -r -u 65532 -g nonroot -d /home/git -m nonroot
3940
USER 65532
4041

4142
ENTRYPOINT ["/ko-app/git-init"]

0 commit comments

Comments
 (0)