Skip to content

Commit e41c9c0

Browse files
committed
Add Konflux Configuration
1 parent b1c6173 commit e41c9c0

File tree

4 files changed

+691
-0
lines changed

4 files changed

+691
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
ARG GO_BUILDER=brew.registry.redhat.io/rh-osbs/openshift-golang-builder:v1.23
2+
ARG RUNTIME=registry.access.redhat.com/ubi9/ubi-minimal@sha256:b87097994ed62fbf1de70bc75debe8dacf3ea6e00dd577d74503ef66452c59d6
3+
4+
FROM $GO_BUILDER AS builder
5+
6+
COPY image/git-init .
7+
ENV GODEBUG="http2server=0"
8+
RUN go build -ldflags="-X 'knative.dev/pkg/changeset.rev=${CHANGESET_REV:0:7}'" -mod=vendor -v -o /tmp/tektoncd-catalog-git-clone
9+
#
10+
#FROM $RUNTIME
11+
#
12+
#ENV BINARY=git-init \
13+
# KO_APP=/ko-app \
14+
# KO_DATA_PATH=/kodata
15+
#
16+
#COPY --from=builder /tmp/tektoncd-catalog-git-clone ${KO_APP}/${BINARY}
17+
#
18+
#RUN microdnf install -y openssh-clients git git-lfs shadow-utils && \
19+
# chgrp -R 0 ${KO_APP} && \
20+
# chmod -R g+rwX ${KO_APP}
21+
#
22+
#LABEL \
23+
# com.redhat.component="openshift-pipelines-git-init-rhel8-container" \
24+
# name="openshift-pipelines/pipelines-git-init-rhel8" \
25+
# summary="Red Hat OpenShift Pipelines Git-init" \
26+
# maintainer="[email protected]" \
27+
# description="Red Hat OpenShift Pipelines Git-init" \
28+
# io.k8s.display-name="Red Hat OpenShift Pipelines Git-init" \
29+
# io.k8s.description="git-init is a binary that makes it easy to clone a repository from a Tekton Task. It is usually used via the git-clone Tasks." \
30+
# io.openshift.tags="pipelines,tekton,openshift"
31+
#
32+
#WORKDIR /licenses
33+
#
34+
#COPY LICENSE .
35+
## Not adding the user to make sure git+ssh uses HOME to read client configuration
36+
#RUN groupadd -r -g 65532 nonroot && useradd --no-log-init -r -u 65532 -g nonroot -d /home/git -m nonroot
37+
#USER 65532
38+
#
39+
#ENTRYPOINT ["/ko-app/git-init"]

.konflux/rpms/rpms.in.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
contentOrigin:
2+
repofiles:
3+
- ./ubi.repo
4+
packages: [shadow-utils]
5+
arches:
6+
# The list of architectures
7+
- aarch64
8+
- x86_64
9+
- ppc64le
10+
- s390x

0 commit comments

Comments
 (0)