-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create downstream container image for konflux
Signed-off-by: nmirasch <[email protected]>
- Loading branch information
Showing
3 changed files
with
69 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
FROM registry.redhat.io/ubi9/nodejs-22:9.5-1734358400 as builder | ||
|
||
USER root | ||
RUN dnf upgrade | ||
|
||
EXPOSE 8080 | ||
COPY ["package.json", "yarn.lock", "./"] | ||
# Install Yarn | ||
RUN npm install --global yarn | ||
|
||
ADD . /usr/src/app | ||
WORKDIR /usr/src/app | ||
|
||
COPY [".", "."] | ||
|
||
RUN yarn config set network-timeout 600000 -g | ||
RUN yarn install --no-progress --non-interactive | ||
|
||
RUN yarn build | ||
|
||
FROM --platform=linux/amd64 registry.redhat.io/rhel8/httpd-24 | ||
|
||
USER root | ||
RUN chown -R 1001:0 /opt/app-root/src | ||
USER 1001 | ||
RUN chmod g+rwx /opt/app-root/src | ||
|
||
COPY --from=builder /usr/src/app/ssl.conf /etc/httpd/conf.d | ||
COPY --from=builder /usr/src/app/dist /var/www/html/plugin | ||
|
||
CMD run-httpd | ||
|
||
LABEL \ | ||
name="openshift-gitops-1/gitops-rhel8-console-plugin" \ | ||
License="Apache 2.0" \ | ||
com.redhat.component="openshift-gitops-console-plugin-container" \ | ||
com.redhat.delivery.appregistry="false" \ | ||
release=${CI_CONTAINER_RELEASE} \ | ||
upstream-vcs-type="git" \ | ||
upstream-version=${CI_UPSTREAM_VERSION} \ | ||
upstream-vcs-ref="${COMMIT_SHA}" \ | ||
summary="Red Hat OpenShift GitOps Console Plugin" \ | ||
maintainer="William Tam <[email protected]>" \ | ||
io.openshift.tags="openshift,gitops-console-plugin" \ | ||
io.k8s.display-name="Red Hat OpenShift GitOps Console Plugin" \ | ||
io.k8s.description="Red Hat OpenShift GitOps Console Plugin" \ | ||
io.openshift.maintainer.product="Red Hat OpenShift GitOps" \ | ||
io.openshift.maintainer.component="William Tam <[email protected]>" \ | ||
description="Red Hat OpenShift GitOps Console Plugin" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters