Skip to content

Commit

Permalink
Add Konflux configs
Browse files Browse the repository at this point in the history
Changes:
- Add Docker files
- Add tekton pipelines
  • Loading branch information
sayan-biswas committed Jan 2, 2025
1 parent 3a73441 commit 32d3218
Show file tree
Hide file tree
Showing 14 changed files with 4,385 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .konflux/controller/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM registry.access.redhat.com/ubi9/go-toolset@sha256:b23212b6a296e95cbed5dd415d4cd5567db9e8057aa08e291f1fddc087cea944 AS builder

COPY build .

RUN CGO_ENABLED=0 GO111MODULE=on go build -a -mod=vendor -ldflags="-s -w" -o openshift-builds-controller ./cmd/shipwright-build-controller

FROM registry.access.redhat.com/ubi9-minimal@sha256:d85040b6e3ed3628a89683f51a38c709185efc3fb552db2ad1b9180f2a6c38be

COPY --from=builder /opt/app-root/src/openshift-builds-controller .
COPY LICENSE /licenses/

ENTRYPOINT ["./openshift-builds-controller"]

LABEL \
com.redhat.component="openshift-builds-controller" \
name="openshift-builds/controller" \
version="v1.1.0" \
summary="Red Hat OpenShift Builds Controller" \
maintainer="[email protected]" \
description="Red Hat OpenShift Builds Controller" \
io.k8s.description="Red Hat OpenShift Builds Controller" \
io.k8s.display-name="Red Hat OpenShift Builds Controller" \
io.openshift.tags="builds,controller"
32 changes: 32 additions & 0 deletions .konflux/git-cloner/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
FROM registry.access.redhat.com/ubi9/go-toolset@sha256:b23212b6a296e95cbed5dd415d4cd5567db9e8057aa08e291f1fddc087cea944 AS builder

COPY build .

RUN CGO_ENABLED=0 GO111MODULE=on go build -a -mod=vendor -ldflags="-s -w" -o openshift-builds-git-cloner ./cmd/git

FROM registry.access.redhat.com/ubi9-minimal@sha256:d85040b6e3ed3628a89683f51a38c709185efc3fb552db2ad1b9180f2a6c38be

RUN \
microdnf --assumeyes --nodocs install git git-lfs && \
microdnf clean all && \
rm -rf /var/cache/yum && \
echo 'nonroot:x:1000:1000:nonroot:/:/sbin/nologin' > /etc/passwd && \
echo 'nonroot:x:1000:' > /etc/group && \
mkdir /.docker && chown 1000:1000 /.docker && \
mkdir /.ssh && chown 1000:1000 /.ssh

COPY --from=builder /opt/app-root/src/openshift-builds-git-cloner /ko-app/git
COPY LICENSE /licenses/

ENTRYPOINT ["/ko-app/git"]

LABEL \
com.redhat.component="openshift-builds-git-cloner" \
name="openshift-builds/git-cloner" \
version="v1.1.0" \
summary="Red Hat OpenShift Builds Git Cloner" \
maintainer="[email protected]" \
description="Red Hat OpenShift Builds Git Cloner" \
io.k8s.description="Red Hat OpenShift Builds Git Cloner" \
io.k8s.display-name="Red Hat OpenShift Builds Git Cloner" \
io.openshift.tags="builds,git-cloner"
5 changes: 5 additions & 0 deletions .konflux/git-cloner/rpms.in.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
contentOrigin:
repofiles:
- ./ubi.repo
packages: [git, git-lfs]
arches: [x86_64, aarch64, s390x, ppc64le]
3,869 changes: 3,869 additions & 0 deletions .konflux/git-cloner/rpms.lock.yaml

Large diffs are not rendered by default.

70 changes: 70 additions & 0 deletions .konflux/git-cloner/ubi.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
[ubi-9-baseos-rpms]
name = Red Hat Universal Base Image 9 (RPMs) - BaseOS
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/$basearch/baseos/os
enabled = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
gpgcheck = 1

[ubi-9-baseos-debug-rpms]
name = Red Hat Universal Base Image 9 (Debug RPMs) - BaseOS
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/$basearch/baseos/debug
enabled = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
gpgcheck = 1

[ubi-9-baseos-source]
name = Red Hat Universal Base Image 9 (Source RPMs) - BaseOS
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/$basearch/baseos/source/SRPMS
enabled = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
gpgcheck = 1

[ubi-9-appstream-rpms]
name = Red Hat Universal Base Image 9 (RPMs) - AppStream
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/$basearch/appstream/os
enabled = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
gpgcheck = 1

[ubi-9-appstream-debug-rpms]
name = Red Hat Universal Base Image 9 (Debug RPMs) - AppStream
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/$basearch/appstream/debug
enabled = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
gpgcheck = 1

[ubi-9-appstream-source]
name = Red Hat Universal Base Image 9 (Source RPMs) - AppStream
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/$basearch/appstream/source/SRPMS
enabled = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
gpgcheck = 1

[ubi-9-codeready-builder-rpms]
name = Red Hat Universal Base Image 9 (RPMs) - CodeReady Builder
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/$basearch/codeready-builder/os
enabled = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
gpgcheck = 1

[ubi-9-codeready-builder]
name = Red Hat Universal Base Image 9 (RPMs) - CodeReady Builder
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/$basearch/codeready-builder/os
enabled = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
gpgcheck = 1


[ubi-9-codeready-builder-debug-rpms]
name = Red Hat Universal Base Image 9 (Debug RPMs) - CodeReady Builder
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/$basearch/codeready-builder/debug
enabled = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
gpgcheck = 1

[ubi-9-codeready-builder-source]
name = Red Hat Universal Base Image 9 (Source RPMs) - CodeReady Builder
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/$basearch/codeready-builder/source/SRPMS
enabled = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
gpgcheck = 1
31 changes: 31 additions & 0 deletions .konflux/image-bundler/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
FROM registry.access.redhat.com/ubi9/go-toolset@sha256:b23212b6a296e95cbed5dd415d4cd5567db9e8057aa08e291f1fddc087cea944 AS builder

COPY build .

RUN CGO_ENABLED=0 GO111MODULE=on go build -a -mod=vendor -ldflags="-s -w" -o openshift-builds-image-bundler ./cmd/bundle

FROM registry.access.redhat.com/ubi9-minimal@sha256:d85040b6e3ed3628a89683f51a38c709185efc3fb552db2ad1b9180f2a6c38be

RUN \
microdnf clean all && \
rm -rf /var/cache/yum && \
echo 'nonroot:x:1000:1000:nonroot:/:/sbin/nologin' > /etc/passwd && \
echo 'nonroot:x:1000:' > /etc/group && \
mkdir /.docker && \
chown 1000:1000 /.docker

COPY --from=builder /opt/app-root/src/openshift-builds-image-bundler /ko-app/bundle
COPY LICENSE /licenses/

ENTRYPOINT ["/ko-app/bundle"]

LABEL \
com.redhat.component="openshift-builds-image-bundler" \
name="openshift-builds/image-bundler" \
version="v1.1.0" \
summary="Red Hat OpenShift Builds Image Bundler" \
maintainer="[email protected]" \
description="Red Hat OpenShift Builds Image Bundler" \
io.k8s.description="Red Hat OpenShift Builds Image Bundler" \
io.k8s.display-name="Red Hat OpenShift Builds Image Bundler" \
io.openshift.tags="builds,image-bundler"
31 changes: 31 additions & 0 deletions .konflux/image-processing/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
FROM registry.access.redhat.com/ubi9/go-toolset@sha256:b23212b6a296e95cbed5dd415d4cd5567db9e8057aa08e291f1fddc087cea944 AS builder

COPY build .

RUN CGO_ENABLED=0 GO111MODULE=on go build -a -mod=vendor -ldflags="-s -w" -o openshift-builds-image-processing ./cmd/image-processing

FROM registry.access.redhat.com/ubi9-minimal@sha256:d85040b6e3ed3628a89683f51a38c709185efc3fb552db2ad1b9180f2a6c38be

RUN \
microdnf clean all && \
rm -rf /var/cache/yum && \
echo 'nonroot:x:1000:1000:nonroot:/:/sbin/nologin' > /etc/passwd && \
echo 'nonroot:x:1000:' > /etc/group && \
mkdir /.docker && \
chown 1000:1000 /.docker

COPY --from=builder /opt/app-root/src/openshift-builds-image-processing /ko-app/image-processing
COPY LICENSE /licenses/

ENTRYPOINT ["/ko-app/image-processing"]

LABEL \
com.redhat.component="openshift-builds-image-processing" \
name="openshift-builds/image-processing" \
version="v1.1.0" \
summary="Red Hat OpenShift Builds Image Processing" \
maintainer="[email protected]" \
description="Red Hat OpenShift Builds Image Processing" \
io.k8s.description="Red Hat OpenShift Builds Image Processing" \
io.k8s.display-name="Red Hat OpenShift Builds Image Processing" \
io.openshift.tags="builds,image-processing"
32 changes: 32 additions & 0 deletions .konflux/waiter/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
FROM registry.access.redhat.com/ubi9/go-toolset@sha256:b23212b6a296e95cbed5dd415d4cd5567db9e8057aa08e291f1fddc087cea944 AS builder

COPY build .

RUN CGO_ENABLED=0 GO111MODULE=on go build -a -mod=vendor -ldflags="-s -w" -o openshift-builds-waiter ./cmd/waiter

FROM registry.access.redhat.com/ubi9-minimal@sha256:d85040b6e3ed3628a89683f51a38c709185efc3fb552db2ad1b9180f2a6c38be

RUN \
microdnf --assumeyes --nodocs install tar && \
microdnf clean all && \
rm -rf /var/cache/yum && \
echo 'nonroot:x:1000:1000:nonroot:/:/sbin/nologin' > /etc/passwd && \
echo 'nonroot:x:1000:' > /etc/group && \
mkdir /.docker && \
chown 1000:1000 /.docker

COPY --from=builder /opt/app-root/src/openshift-builds-waiter /ko-app/waiter
COPY LICENSE /licenses/

ENTRYPOINT ["/ko-app/waiter"]

LABEL \
com.redhat.component="openshift-builds-waiter" \
name="openshift-builds/waiter" \
version="v1.1.0" \
summary="Red Hat OpenShift Builds Waiter" \
maintainer="[email protected]" \
description="Red Hat OpenShift Builds Waiter" \
io.k8s.description="Red Hat OpenShift Builds Waiter" \
io.k8s.display-name="Red Hat OpenShift Builds Waiter" \
io.openshift.tags="builds,waiter"
5 changes: 5 additions & 0 deletions .konflux/waiter/rpms.in.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
contentOrigin:
repofiles:
- ./ubi.repo
packages: [tar]
arches: [x86_64, aarch64, s390x, ppc64le]
72 changes: 72 additions & 0 deletions .konflux/waiter/rpms.lock.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
---
lockfileVersion: 1
lockfileVendor: redhat
arches:
- arch: aarch64
packages:
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/aarch64/baseos/os/Packages/t/tar-1.34-7.el9.aarch64.rpm
repoid: ubi-9-baseos-rpms
size: 900197
checksum: sha256:44552dea889d350403c3074a33d7cb274b3f57553e47db998745df13f931b458
name: tar
evr: 2:1.34-7.el9
sourcerpm: tar-1.34-7.el9.src.rpm
source:
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/aarch64/baseos/source/SRPMS/Packages/t/tar-1.34-7.el9.src.rpm
repoid: ubi-9-baseos-source
size: 2261512
checksum: sha256:d002c400d29e7305fe8a982ab6b9f49ee7a8780e4574b86fc0c5b3d5510ecb22
name: tar
evr: 2:1.34-7.el9
module_metadata: []
- arch: ppc64le
packages:
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/ppc64le/baseos/os/Packages/t/tar-1.34-7.el9.ppc64le.rpm
repoid: ubi-9-baseos-rpms
size: 937724
checksum: sha256:f2cc206dfacc9981fad6cf33600ad28bcd1c573f16d8c18523dc9df52ca90660
name: tar
evr: 2:1.34-7.el9
sourcerpm: tar-1.34-7.el9.src.rpm
source:
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/ppc64le/baseos/source/SRPMS/Packages/t/tar-1.34-7.el9.src.rpm
repoid: ubi-9-baseos-source
size: 2261512
checksum: sha256:d002c400d29e7305fe8a982ab6b9f49ee7a8780e4574b86fc0c5b3d5510ecb22
name: tar
evr: 2:1.34-7.el9
module_metadata: []
- arch: s390x
packages:
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/s390x/baseos/os/Packages/t/tar-1.34-7.el9.s390x.rpm
repoid: ubi-9-baseos-rpms
size: 902370
checksum: sha256:fa8758bac6a56830de66ad1ab623c87768065bcc6f8242faa42ac4198260d456
name: tar
evr: 2:1.34-7.el9
sourcerpm: tar-1.34-7.el9.src.rpm
source:
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/s390x/baseos/source/SRPMS/Packages/t/tar-1.34-7.el9.src.rpm
repoid: ubi-9-baseos-source
size: 2261512
checksum: sha256:d002c400d29e7305fe8a982ab6b9f49ee7a8780e4574b86fc0c5b3d5510ecb22
name: tar
evr: 2:1.34-7.el9
module_metadata: []
- arch: x86_64
packages:
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/x86_64/baseos/os/Packages/t/tar-1.34-7.el9.x86_64.rpm
repoid: ubi-9-baseos-rpms
size: 910235
checksum: sha256:17f2e592a2c04c050b690afeb9042e02521a0b5ee3288dad837463f4acf542c3
name: tar
evr: 2:1.34-7.el9
sourcerpm: tar-1.34-7.el9.src.rpm
source:
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/x86_64/baseos/source/SRPMS/Packages/t/tar-1.34-7.el9.src.rpm
repoid: ubi-9-baseos-source
size: 2261512
checksum: sha256:d002c400d29e7305fe8a982ab6b9f49ee7a8780e4574b86fc0c5b3d5510ecb22
name: tar
evr: 2:1.34-7.el9
module_metadata: []
70 changes: 70 additions & 0 deletions .konflux/waiter/ubi.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
[ubi-9-baseos-rpms]
name = Red Hat Universal Base Image 9 (RPMs) - BaseOS
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/$basearch/baseos/os
enabled = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
gpgcheck = 1

[ubi-9-baseos-debug-rpms]
name = Red Hat Universal Base Image 9 (Debug RPMs) - BaseOS
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/$basearch/baseos/debug
enabled = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
gpgcheck = 1

[ubi-9-baseos-source]
name = Red Hat Universal Base Image 9 (Source RPMs) - BaseOS
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/$basearch/baseos/source/SRPMS
enabled = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
gpgcheck = 1

[ubi-9-appstream-rpms]
name = Red Hat Universal Base Image 9 (RPMs) - AppStream
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/$basearch/appstream/os
enabled = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
gpgcheck = 1

[ubi-9-appstream-debug-rpms]
name = Red Hat Universal Base Image 9 (Debug RPMs) - AppStream
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/$basearch/appstream/debug
enabled = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
gpgcheck = 1

[ubi-9-appstream-source]
name = Red Hat Universal Base Image 9 (Source RPMs) - AppStream
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/$basearch/appstream/source/SRPMS
enabled = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
gpgcheck = 1

[ubi-9-codeready-builder-rpms]
name = Red Hat Universal Base Image 9 (RPMs) - CodeReady Builder
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/$basearch/codeready-builder/os
enabled = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
gpgcheck = 1

[ubi-9-codeready-builder]
name = Red Hat Universal Base Image 9 (RPMs) - CodeReady Builder
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/$basearch/codeready-builder/os
enabled = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
gpgcheck = 1


[ubi-9-codeready-builder-debug-rpms]
name = Red Hat Universal Base Image 9 (Debug RPMs) - CodeReady Builder
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/$basearch/codeready-builder/debug
enabled = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
gpgcheck = 1

[ubi-9-codeready-builder-source]
name = Red Hat Universal Base Image 9 (Source RPMs) - CodeReady Builder
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi9/9/$basearch/codeready-builder/source/SRPMS
enabled = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
gpgcheck = 1
Loading

0 comments on commit 32d3218

Please sign in to comment.