Skip to content

Commit

Permalink
Merge pull request tektoncd#730 from nikhil-thomas/fix/kodata-HEAD
Browse files Browse the repository at this point in the history
Fix git HEAD not found error
  • Loading branch information
openshift-ci[bot] authored Aug 18, 2021
2 parents 29ceca1 + c296195 commit 99217a5
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 61 deletions.
11 changes: 4 additions & 7 deletions openshift/ci-operator/Dockerfile-git.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,14 @@ FROM registry.access.redhat.com/ubi8/ubi:latest
# our local PATH.

ENV KO_DATA_PATH=/kodata \
HOME=/ko-app PATH=DOLLAR{HOME}:DOLLAR{PATH}
HOME=/ko-app \
PATH=DOLLAR{HOME}:DOLLAR{PATH}
RUN yum install --disableplugin=subscription-manager -y git openssh-clients

COPY ${bin} DOLLAR{HOME}/${bin}.orig
COPY uidwrapper DOLLAR{HOME}/${bin}

WORKDIR /go/src/github.com/openshift/tektoncd-pipeline
COPY ./.git/HEAD ${KO_DATA_PATH}/
COPY ./.git/refs ${KO_DATA_PATH}/
COPY ./third_party ${KO_DATA_PATH}/
COPY ./LICENSE ${KO_DATA_PATH}/
COPY HEAD ${KO_DATA_PATH}/
COPY refs ${KO_DATA_PATH}/

RUN chgrp -R 0 DOLLAR{HOME} && \
chmod -R g=u DOLLAR{HOME} /etc/passwd
Expand Down
8 changes: 2 additions & 6 deletions openshift/ci-operator/Dockerfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ FROM registry.access.redhat.com/ubi8/ubi-minimal:latest

ENV KO_DATA_PATH=/kodata
ADD DOLLAR{bin} /ko-app/DOLLAR{bin}

WORKDIR /go/src/github.com/openshift/tektoncd-pipeline
COPY ./.git/HEAD ${KO_DATA_PATH}/
COPY ./.git/refs ${KO_DATA_PATH}/
COPY ./third_party ${KO_DATA_PATH}/
COPY ./LICENSE ${KO_DATA_PATH}/
COPY HEAD ${KO_DATA_PATH}/
COPY refs ${KO_DATA_PATH}/

ENTRYPOINT ["/ko-app/${bin}"]
8 changes: 2 additions & 6 deletions openshift/ci-operator/tekton-images/controller/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ FROM registry.access.redhat.com/ubi8/ubi-minimal:latest

ENV KO_DATA_PATH=/kodata
ADD ${bin} /ko-app/${bin}

WORKDIR /go/src/github.com/openshift/tektoncd-pipeline
COPY ./.git/HEAD /
COPY ./.git/refs /
COPY ./third_party /
COPY ./LICENSE /
COPY HEAD /
COPY refs /

ENTRYPOINT ["/ko-app/controller"]
8 changes: 2 additions & 6 deletions openshift/ci-operator/tekton-images/entrypoint/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ FROM registry.access.redhat.com/ubi8/ubi-minimal:latest

ENV KO_DATA_PATH=/kodata
ADD ${bin} /ko-app/${bin}

WORKDIR /go/src/github.com/openshift/tektoncd-pipeline
COPY ./.git/HEAD /
COPY ./.git/refs /
COPY ./third_party /
COPY ./LICENSE /
COPY HEAD /
COPY refs /

ENTRYPOINT ["/ko-app/entrypoint"]
11 changes: 4 additions & 7 deletions openshift/ci-operator/tekton-images/git-init/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,14 @@ FROM registry.access.redhat.com/ubi8/ubi:latest
# our local PATH.

ENV KO_DATA_PATH=/kodata \
HOME=/ko-app PATH=${HOME}:${PATH}
HOME=/ko-app \
PATH=${HOME}:${PATH}
RUN yum install --disableplugin=subscription-manager -y git openssh-clients

COPY git-init ${HOME}/git-init.orig
COPY uidwrapper ${HOME}/git-init

WORKDIR /go/src/github.com/openshift/tektoncd-pipeline
COPY ./.git/HEAD /
COPY ./.git/refs /
COPY ./third_party /
COPY ./LICENSE /
COPY HEAD /
COPY refs /

RUN chgrp -R 0 ${HOME} && \
chmod -R g=u ${HOME} /etc/passwd
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ FROM registry.access.redhat.com/ubi8/ubi-minimal:latest

ENV KO_DATA_PATH=/kodata
ADD ${bin} /ko-app/${bin}

WORKDIR /go/src/github.com/openshift/tektoncd-pipeline
COPY ./.git/HEAD /
COPY ./.git/refs /
COPY ./third_party /
COPY ./LICENSE /
COPY HEAD /
COPY refs /

ENTRYPOINT ["/ko-app/imagedigestexporter"]
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ FROM registry.access.redhat.com/ubi8/ubi-minimal:latest

ENV KO_DATA_PATH=/kodata
ADD ${bin} /ko-app/${bin}

WORKDIR /go/src/github.com/openshift/tektoncd-pipeline
COPY ./.git/HEAD /
COPY ./.git/refs /
COPY ./third_party /
COPY ./LICENSE /
COPY HEAD /
COPY refs /

ENTRYPOINT ["/ko-app/kubeconfigwriter"]
8 changes: 3 additions & 5 deletions openshift/ci-operator/tekton-images/nop/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ RUN for i in /usr/bin/* /usr/sbin/* /bin/* /sbin/*;do \

ENV KO_DATA_PATH=/kodata

WORKDIR /go/src/github.com/openshift/tektoncd-pipeline
COPY ./.git/HEAD ${KO_DATA_PATH}/
COPY ./.git/refs ${KO_DATA_PATH}/
COPY ./third_party ${KO_DATA_PATH}/
COPY ./LICENSE ${KO_DATA_PATH}/
COPY HEAD ${KO_DATA_PATH}/
COPY refs ${KO_DATA_PATH}/


ADD nop /ko-app/nop
ENTRYPOINT ["/ko-app/nop"]
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ FROM registry.access.redhat.com/ubi8/ubi-minimal:latest

ENV KO_DATA_PATH=/kodata
ADD ${bin} /ko-app/${bin}

WORKDIR /go/src/github.com/openshift/tektoncd-pipeline
COPY ./.git/HEAD /
COPY ./.git/refs /
COPY ./third_party /
COPY ./LICENSE /
COPY HEAD /
COPY refs /

ENTRYPOINT ["/ko-app/pullrequest-init"]
8 changes: 2 additions & 6 deletions openshift/ci-operator/tekton-images/webhook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ FROM registry.access.redhat.com/ubi8/ubi-minimal:latest

ENV KO_DATA_PATH=/kodata
ADD ${bin} /ko-app/${bin}

WORKDIR /go/src/github.com/openshift/tektoncd-pipeline
COPY ./.git/HEAD /
COPY ./.git/refs /
COPY ./third_party /
COPY ./LICENSE /
COPY HEAD /
COPY refs /

ENTRYPOINT ["/ko-app/webhook"]

0 comments on commit 99217a5

Please sign in to comment.