Skip to content

Commit

Permalink
add AI Disconnected OCP Containerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
rawagner committed Feb 27, 2025
1 parent c18fd89 commit 6892d66
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/assisted-disconnected-ui/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN git config --global --add safe.directory /app
RUN npm install -g corepack@0.24.1
RUN yarn install --immutable && yarn build:all

FROM registry.access.redhat.com/ubi9/go-toolset:1.21 as proxy-build
FROM registry.access.redhat.com/ubi9/go-toolset:1.22 as proxy-build
WORKDIR /app
COPY apps/assisted-disconnected-ui/proxy /app
USER 0
Expand Down
24 changes: 24 additions & 0 deletions apps/assisted-disconnected-ui/Containerfile.ocp
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM registry.ci.openshift.org/edge-infrastructure/nodejs-18-minimal:latest as ui-build
USER root
RUN microdnf install -y rsync git

WORKDIR /app
COPY --chown=1001:0 / /app
RUN ls /app
ENV NODE_OPTIONS='--max-old-space-size=8192'
RUN git config --global --add safe.directory /app
RUN npm install -g corepack@0.24.1
RUN yarn install --immutable && yarn build:all

FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.23-openshift-4.19 as proxy-build
WORKDIR /app
COPY apps/assisted-disconnected-ui/proxy /app
USER 0
RUN go build

FROM registry.ci.openshift.org/ocp/ubi-micro:9
COPY --from=ui-build /app/apps/assisted-disconnected-ui/build /app/proxy/dist
COPY --from=proxy-build /app/assisted-disconnected-ui /app/proxy
WORKDIR /app/proxy
EXPOSE 8080
CMD ./assisted-disconnected-ui
2 changes: 1 addition & 1 deletion apps/assisted-disconnected-ui/proxy/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/openshift-assisted/assisted-disconnected-ui

go 1.21
go 1.22

require (
github.com/gorilla/mux v1.8.1
Expand Down

0 comments on commit 6892d66

Please sign in to comment.