Skip to content

Commit 8cbee9d

Browse files
committed
Create downstream container image for konflux
Signed-off-by: nmirasch <[email protected]>
1 parent 33d3b86 commit 8cbee9d

File tree

3 files changed

+69
-2
lines changed

3 files changed

+69
-2
lines changed

.konflux/Containerfile.plugin

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
FROM registry.access.redhat.com/ubi9/nodejs-22:9.5-1734528986 AS builder
2+
3+
USER root
4+
5+
# Install Yarn
6+
RUN npm install --global yarn
7+
8+
COPY ["package.json", "yarn.lock", "./"]
9+
10+
RUN yarn install --no-progress --non-interactive
11+
12+
ADD . /usr/src/app
13+
WORKDIR /usr/src/app
14+
15+
RUN yarn install --network-timeout 600000 && \
16+
yarn cache clean
17+
18+
RUN yarn install --no-progress --non-interactive
19+
20+
COPY [".", "."]
21+
22+
RUN yarn build
23+
24+
####################################################################################################
25+
26+
FROM --platform=linux/amd64 registry.redhat.io/ubi9/httpd-24:9.5-1733127463
27+
USER root
28+
RUN chown -R 1001:0 /opt/app-root/src
29+
USER 1001
30+
RUN chmod g+rwx /opt/app-root/src
31+
32+
COPY --from=builder /usr/src/app/ssl.conf /etc/httpd/conf.d
33+
COPY --from=builder /usr/src/app/dist /var/www/html/plugin
34+
35+
CMD run-httpd
36+
37+
LABEL \
38+
name="openshift-gitops-1/gitops-rhel8-console-plugin" \
39+
License="Apache 2.0" \
40+
com.redhat.component="openshift-gitops-console-plugin-container" \
41+
com.redhat.delivery.appregistry="false" \
42+
release=${CI_CONTAINER_RELEASE} \
43+
upstream-vcs-type="git" \
44+
upstream-version=${CI_UPSTREAM_VERSION} \
45+
upstream-vcs-ref="${COMMIT_SHA}" \
46+
summary="Red Hat OpenShift GitOps Console Plugin" \
47+
maintainer="William Tam <[email protected]>" \
48+
io.openshift.tags="openshift,gitops-console-plugin" \
49+
io.k8s.display-name="Red Hat OpenShift GitOps Console Plugin" \
50+
io.k8s.description="Red Hat OpenShift GitOps Console Plugin" \
51+
io.openshift.maintainer.product="Red Hat OpenShift GitOps" \
52+
io.openshift.maintainer.component="William Tam <[email protected]>" \
53+
description="Red Hat OpenShift GitOps Console Plugin"
54+
55+

.tekton/openshift-gitops-console-plugin-pull-request.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,14 @@ spec:
2626
value: quay.io/redhat-user-workloads/rh-openshift-gitops-tenant/openshift-gitops-operator/openshift-gitops-console-plugin:on-pr-{{revision}}
2727
- name: image-expires-after
2828
value: 5d
29+
- name: build-platforms
30+
value:
31+
- linux/x86_64
32+
- linux/arm64
33+
- linux/ppc64le
34+
- linux/s390x
2935
- name: dockerfile
30-
value: Dockerfile
36+
value: .konflux/Containerfile.plugin
3137
pipelineSpec:
3238
description: |
3339
This pipeline is ideal for building container images from a Containerfile while reducing network traffic.

.tekton/openshift-gitops-console-plugin-push.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,14 @@ spec:
2323
value: '{{revision}}'
2424
- name: output-image
2525
value: quay.io/redhat-user-workloads/rh-openshift-gitops-tenant/openshift-gitops-operator/openshift-gitops-console-plugin:{{revision}}
26+
- name: build-platforms
27+
value:
28+
- linux/x86_64
29+
- linux/arm64
30+
- linux/ppc64le
31+
- linux/s390x
2632
- name: dockerfile
27-
value: Dockerfile
33+
value: .konflux/Containerfile.plugin
2834
pipelineSpec:
2935
description: |
3036
This pipeline is ideal for building container images from a Containerfile while reducing network traffic.

0 commit comments

Comments
 (0)