Skip to content

Commit 54ec2f4

Browse files
committed
Add rpm and dockerfile
Signed-off-by: savitaashture <[email protected]>
1 parent 53ad7b8 commit 54ec2f4

File tree

6 files changed

+229
-0
lines changed

6 files changed

+229
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
ARG GO_BUILDER=brew.registry.redhat.io/rh-osbs/openshift-golang-builder:v1.23
2+
ARG RUNTIME=registry.redhat.io/ubi8/ubi:latest@sha256:244e9858f9d8a2792a3dceb850b4fa8fdbd67babebfde42587bfa919d5d1ecef
3+
4+
FROM $GO_BUILDER AS builder
5+
6+
WORKDIR /go/src/github.com/openshift-pipelines/manual-approval-gate
7+
COPY . .
8+
RUN set -e; for f in patches/*.patch; do echo ${f}; [[ -f ${f} ]] || continue; git apply ${f}; done
9+
ENV GODEBUG="http2server=0"
10+
RUN git rev-parse HEAD > /tmp/HEAD
11+
RUN go build -ldflags="-X 'knative.dev/pkg/changeset.rev=$(cat /tmp/HEAD)'" -mod=vendor -tags disable_gcp -v -o /tmp/manual-approval-gate-controller \
12+
./cmd/controller
13+
14+
FROM $RUNTIME
15+
ARG VERSION=manual-approval-gate-controller-1.16.4
16+
17+
ENV KO_APP=/ko-app \
18+
KO_DATA_PATH=/kodata
19+
20+
COPY --from=builder /tmp/manual-approval-gate-controller ${KO_APP}/manual-approval-gate-controller
21+
COPY --from=builder /tmp/HEAD ${KO_DATA_PATH}/HEAD
22+
23+
LABEL \
24+
com.redhat.component="openshift-pipelines-manual-approval-gate-rhel8-container" \
25+
name="openshift-pipelines/pipelines-manual-approval-gate-rhel8" \
26+
version=$VERSION \
27+
summary="Red Hat OpenShift Pipelines Manual Approval Gate" \
28+
maintainer="[email protected]" \
29+
description="Red Hat OpenShift Pipelines Manual Approval Gate" \
30+
io.k8s.display-name="Red Hat OpenShift Pipelines Manual Approval Gate" \
31+
io.k8s.description="Red Hat OpenShift Pipelines Manual Approval Gate" \
32+
io.openshift.tags="pipelines,tekton,openshift"
33+
34+
RUN groupadd -r -g 65532 nonroot && useradd --no-log-init -r -u 65532 -g nonroot nonroot
35+
USER 65532
36+
37+
ENTRYPOINT ["/ko-app/manual-approval-gate-controller"]
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
ARG GO_BUILDER=brew.registry.redhat.io/rh-osbs/openshift-golang-builder:v1.23
2+
ARG RUNTIME=registry.redhat.io/ubi8/ubi:latest@sha256:244e9858f9d8a2792a3dceb850b4fa8fdbd67babebfde42587bfa919d5d1ecef
3+
4+
FROM $GO_BUILDER AS builder
5+
6+
WORKDIR /go/src/github.com/openshift-pipelines/manual-approval-gate
7+
COPY . .
8+
RUN set -e; for f in patches/*.patch; do echo ${f}; [[ -f ${f} ]] || continue; git apply ${f}; done
9+
ENV GODEBUG="http2server=0"
10+
RUN git rev-parse HEAD > /tmp/HEAD
11+
RUN go build -ldflags="-X 'knative.dev/pkg/changeset.rev=$(cat /tmp/HEAD)'" -mod=vendor -tags disable_gcp -v -o /tmp/manual-approval-gate-webhook \
12+
./cmd/webhook
13+
14+
FROM $RUNTIME
15+
ARG VERSION=manual-approval-gate-webhook-1.16.4
16+
17+
ENV KO_APP=/ko-app
18+
19+
COPY --from=builder /tmp/manual-approval-gate-webhook ${KO_APP}/manual-approval-gate-webhook
20+
21+
LABEL \
22+
com.redhat.component="openshift-pipelines-manual-approval-gate-rhel8-container" \
23+
name="openshift-pipelines/pipelines-manual-approval-gate-rhel8" \
24+
version=$VERSION \
25+
summary="Red Hat OpenShift Pipelines Manual Approval Gate" \
26+
maintainer="[email protected]" \
27+
description="Red Hat OpenShift Pipelines Manual Approval Gate" \
28+
io.k8s.display-name="Red Hat OpenShift Pipelines Manual Approval Gate" \
29+
io.k8s.description="Red Hat OpenShift Pipelines Manual Approval Gate" \
30+
io.openshift.tags="pipelines,tekton,openshift"
31+
32+
RUN groupadd -r -g 65532 nonroot && useradd --no-log-init -r -u 65532 -g nonroot nonroot
33+
USER 65532
34+
35+
ENTRYPOINT ["/ko-app/manual-approval-gate-webhook"]

.konflux/patches/.placeholder

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

.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: [openssl-libs-3.2.2-6.el9_5.1]
5+
arches:
6+
# The list of architectures
7+
- aarch64
8+
- x86_64
9+
- ppc64le
10+
- s390x

.konflux/rpms/rpms.lock.yaml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
---
2+
lockfileVersion: 1
3+
lockfileVendor: redhat
4+
arches:
5+
- arch: aarch64
6+
packages:
7+
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/aarch64/baseos/os/Packages/l/libsemanage-2.9-11.el8_10.aarch64.rpm
8+
repoid: ubi-8-for-aarch64-baseos-rpms
9+
size: 168328
10+
checksum: sha256:7cd9414c454841ef794c8d2651d0f16246d468e52dc034b7a2c84572461732f7
11+
name: libsemanage
12+
evr: 2.9-11.el8_10
13+
sourcerpm: libsemanage-2.9-11.el8_10.src.rpm
14+
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/aarch64/baseos/os/Packages/s/shadow-utils-4.6-22.el8.aarch64.rpm
15+
repoid: ubi-8-for-aarch64-baseos-rpms
16+
size: 1272288
17+
checksum: sha256:3ccea243f8c0f86e2a0b2c93933bfd475a62134f0a556ee2e1212dcf8d7e5240
18+
name: shadow-utils
19+
evr: 2:4.6-22.el8
20+
sourcerpm: shadow-utils-4.6-22.el8.src.rpm
21+
source: []
22+
module_metadata: []
23+
- arch: ppc64le
24+
packages:
25+
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/ppc64le/baseos/os/Packages/l/libsemanage-2.9-11.el8_10.ppc64le.rpm
26+
repoid: ubi-8-for-ppc64le-baseos-rpms
27+
size: 183840
28+
checksum: sha256:7d846562212b735859d256188bf880760f37a628c00cdc89174470426688686f
29+
name: libsemanage
30+
evr: 2.9-11.el8_10
31+
sourcerpm: libsemanage-2.9-11.el8_10.src.rpm
32+
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/ppc64le/baseos/os/Packages/s/shadow-utils-4.6-22.el8.ppc64le.rpm
33+
repoid: ubi-8-for-ppc64le-baseos-rpms
34+
size: 1310120
35+
checksum: sha256:20e487410c60bf49e6f80649f374387738e8a5d11ebf6b3e418298e0887237f0
36+
name: shadow-utils
37+
evr: 2:4.6-22.el8
38+
sourcerpm: shadow-utils-4.6-22.el8.src.rpm
39+
source: []
40+
module_metadata: []
41+
- arch: s390x
42+
packages:
43+
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/s390x/baseos/os/Packages/l/libsemanage-2.9-11.el8_10.s390x.rpm
44+
repoid: ubi-8-for-s390x-baseos-rpms
45+
size: 168292
46+
checksum: sha256:2f5a1f493935b3d46cda7d8335e21782d2d357cbd000507c58cd6fd9fd6024d0
47+
name: libsemanage
48+
evr: 2.9-11.el8_10
49+
sourcerpm: libsemanage-2.9-11.el8_10.src.rpm
50+
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/s390x/baseos/os/Packages/s/shadow-utils-4.6-22.el8.s390x.rpm
51+
repoid: ubi-8-for-s390x-baseos-rpms
52+
size: 1270628
53+
checksum: sha256:760c020a571c1dfa7951b72375d35f4d57aca662151d56be383c8bbd71303171
54+
name: shadow-utils
55+
evr: 2:4.6-22.el8
56+
sourcerpm: shadow-utils-4.6-22.el8.src.rpm
57+
source: []
58+
module_metadata: []
59+
- arch: x86_64
60+
packages:
61+
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/x86_64/baseos/os/Packages/l/libsemanage-2.9-11.el8_10.x86_64.rpm
62+
repoid: ubi-8-for-x86_64-baseos-rpms
63+
size: 172936
64+
checksum: sha256:2fbbded84101ff93c19bdaebf7b05c2950654b010c37ba5de13d7a0342bd634b
65+
name: libsemanage
66+
evr: 2.9-11.el8_10
67+
sourcerpm: libsemanage-2.9-11.el8_10.src.rpm
68+
- url: https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/x86_64/baseos/os/Packages/s/shadow-utils-4.6-22.el8.x86_64.rpm
69+
repoid: ubi-8-for-x86_64-baseos-rpms
70+
size: 1292332
71+
checksum: sha256:ea73ee201451bbca0d6d14ca434c93800f01c8fb1b9daef727a5af1a27356d07
72+
name: shadow-utils
73+
evr: 2:4.6-22.el8
74+
sourcerpm: shadow-utils-4.6-22.el8.src.rpm
75+
source: []
76+
module_metadata: []

.konflux/rpms/ubi.repo

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
[ubi-8-for-$basearch-baseos-rpms]
2+
name = Red Hat Universal Base Image 8 (RPMs) - BaseOS
3+
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/$basearch/baseos/os
4+
enabled = 1
5+
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
6+
gpgcheck = 1
7+
8+
[ubi-8-for-$basearch-baseos-debug-rpms]
9+
name = Red Hat Universal Base Image 8 (Debug RPMs) - BaseOS
10+
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/$basearch/baseos/debug
11+
enabled = 0
12+
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
13+
gpgcheck = 1
14+
15+
[ubi-8-for-$basearch-baseos-source]
16+
name = Red Hat Universal Base Image 8 (Source RPMs) - BaseOS
17+
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/$basearch/baseos/source/SRPMS
18+
enabled = 0
19+
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
20+
gpgcheck = 1
21+
22+
[ubi-8-for-$basearch-appstream-rpms]
23+
name = Red Hat Universal Base Image 8 (RPMs) - AppStream
24+
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/$basearch/appstream/os
25+
enabled = 1
26+
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
27+
gpgcheck = 1
28+
29+
[ubi-8-for-$basearch-appstream-debug-rpms]
30+
name = Red Hat Universal Base Image 8 (Debug RPMs) - AppStream
31+
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/$basearch/appstream/debug
32+
enabled = 0
33+
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
34+
gpgcheck = 1
35+
36+
[ubi-8-for-$basearch-appstream-source]
37+
name = Red Hat Universal Base Image 8 (Source RPMs) - AppStream
38+
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/$basearch/appstream/source/SRPMS
39+
enabled = 0
40+
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
41+
gpgcheck = 1
42+
43+
[ubi-8-for-$basearch-codeready-builder-rpms]
44+
name = Red Hat Universal Base Image 8 (RPMs) - CodeReady Builder
45+
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/$basearch/codeready-builder/os
46+
enabled = 1
47+
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
48+
gpgcheck = 1
49+
50+
[ubi-8-for-$basearch-codeready-builder]
51+
name = Red Hat Universal Base Image 8 (RPMs) - CodeReady Builder
52+
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/$basearch/codeready-builder/os
53+
enabled = 0
54+
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
55+
gpgcheck = 1
56+
57+
58+
[ubi-8-for-$basearch-codeready-builder-debug-rpms]
59+
name = Red Hat Universal Base Image 8 (Debug RPMs) - CodeReady Builder
60+
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/$basearch/codeready-builder/debug
61+
enabled = 0
62+
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
63+
gpgcheck = 1
64+
65+
[ubi-8-for-$basearch-codeready-builder-source]
66+
name = Red Hat Universal Base Image 8 (Source RPMs) - CodeReady Builder
67+
baseurl = https://cdn-ubi.redhat.com/content/public/ubi/dist/ubi8/8/$basearch/codeready-builder/source/SRPMS
68+
enabled = 0
69+
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
70+
gpgcheck = 1

0 commit comments

Comments
 (0)