Skip to content

Commit

Permalink
feat: Openshift container changes (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
hardillb authored Mar 6, 2024
2 parents bc82d87 + 8bf8248 commit 3726e30
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
7 changes: 7 additions & 0 deletions helm/flowforge/templates/job-upgrade-db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ spec:
command:
- /bin/sh
- /usr/local/upgrade.sh
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 100m
memory: 128Mi
volumes:
- name: upgrade-script
configMap:
Expand Down
9 changes: 8 additions & 1 deletion node-red-container/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,23 @@ COPY healthcheck.js /healthcheck.js

COPY package.json /data
WORKDIR /data
RUN mkdir node_modules
RUN npm install

USER root

WORKDIR /usr/src/flowforge-nr-launcher
RUN chown node-red:node-red /data/* /usr/src/flowforge-nr-launcher
RUN chown -R node-red:node-red /usr/src/flowforge-nr-launcher

USER node-red
RUN npm install @flowfuse/nr-launcher@${BUILD_TAG}

USER root
RUN chmod -R g+w /data/* /data/.npm/*
RUN chown -R node-red:root /data/* /data/.npm/*

USER node-red

ENV NODE_PATH=/usr/src/node-red
ENV HOME=/usr/src/node-red

Expand Down
9 changes: 8 additions & 1 deletion node-red-container/Dockerfile-3.1
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,23 @@ COPY healthcheck.js /healthcheck.js

COPY package.json /data
WORKDIR /data
RUN mkdir node_modules
RUN npm install

USER root

WORKDIR /usr/src/flowforge-nr-launcher
RUN chown node-red:node-red /data/* /usr/src/flowforge-nr-launcher
RUN chown -R node-red:node-red /usr/src/flowforge-nr-launcher

USER node-red
RUN npm install @flowfuse/nr-launcher@${BUILD_TAG}

USER root
RUN chmod -R g+w /data/* /data/.npm/*
RUN chown -R node-red:root /data/* /data/.npm/*

USER node-red

ENV NODE_PATH=/usr/src/node-red
ENV HOME=/usr/src/node-red

Expand Down

0 comments on commit 3726e30

Please sign in to comment.