You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# ===============# --- Release ---# ===============FROM registry.cirrus.ibm.com/public/nodejs-14 # any nodejs-14 image will work
LABEL maintainer=
LABEL version=master
USER root
RUN yum -y install bash curl git openssh gnupg sqlite git-lfs
RUN yum update -y
RUN groupadd node
RUN adduser -g node node
RUN mkdir -p /wiki
RUN mkdir -p /logs
RUN mkdir -p /wiki/data/content
RUN chown -R node:node /wiki /logs
WORKDIR /wiki
COPY --chown=node:node ./wiki/assets ./assets
COPY --chown=node:node ./wiki/node_modules ./node_modules
COPY --chown=node:node ./wiki/server ./server
COPY --chown=node:node ./wiki/server/views ./server/views
COPY --chown=node:node ./config.yml ./config.yml
COPY --chown=node:node ./wiki/package.json ./package.json
RUN chgrp -R 0 /wiki /logs && \
chmod -R g=u /wiki /logs
USER 1001
EXPOSE 3000
EXPOSE 3443
CMD ["node", "server"]
Secrets needed:
DB_HOST="[YOUR DB SERVER]"
DB_NAME="[DB_NAME]"
DB_USER="[DB_USER]"
DB_PASS="[DB_PASSWD]"
DB_PORT="[DB_PORT]"
DB_SSL="1"
DB_SSL_CA="[YOUR DB SERVER_CA HERE WITHOUT the BEGIN AND END LINE]"
DB_TYPE="postgres"
HA_ACTIVE="1"
DB_ACQUIRE_TIMEOUT_MILLS="60000"
DB_CREATE_TIMEOUT_MILLS="60000"
DB_IDLE_TIMEOUT_MILLIS="60000"
POOL_MAX="10"
POOL_MIN="2"
BODY_PARSER_LIMIT="25"
In Liveness probe:
Liveness probe - Path enter /healthz
in Memory tier minimum 128MB for a single and idle pod.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Secrets needed:
DB_HOST="[YOUR DB SERVER]"
DB_NAME="[DB_NAME]"
DB_USER="[DB_USER]"
DB_PASS="[DB_PASSWD]"
DB_PORT="[DB_PORT]"
DB_SSL="1"
DB_SSL_CA="[YOUR DB SERVER_CA HERE WITHOUT the BEGIN AND END LINE]"
DB_TYPE="postgres"
HA_ACTIVE="1"
DB_ACQUIRE_TIMEOUT_MILLS="60000"
DB_CREATE_TIMEOUT_MILLS="60000"
DB_IDLE_TIMEOUT_MILLIS="60000"
POOL_MAX="10"
POOL_MIN="2"
BODY_PARSER_LIMIT="25"
In Liveness probe:
Liveness probe - Path enter /healthz
in Memory tier minimum 128MB for a single and idle pod.
Beta Was this translation helpful? Give feedback.
All reactions