Skip to content
This repository was archived by the owner on Jan 20, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 2 additions & 24 deletions authorize/docker/Dockerfile-Redhat
Original file line number Diff line number Diff line change
@@ -1,31 +1,9 @@
FROM registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift

USER root

ENV APP_DIR=app \
GROUP_NAME=networknt \
GROUP_ID=1000 \
USER_NAME=networknt \
USER_UID=1000

RUN groupadd -g ${GROUP_ID} -r ${GROUP_NAME} && \
useradd -u ${USER_UID} -g ${GROUP_NAME} -d "/${APP_DIR}" -s /sbin/nologin -c "${USER_NAME} user" ${USER_NAME}

# Add the jar file into the container at /app
ADD target/oauth2-authorize.jar ./${APP_DIR}/server.jar

# change permissions of app directory
RUN mkdir -p ./${APP_DIR}/config && \
chown -R ${USER_NAME}:0 "./${APP_DIR}/config" && \
find "./${APP_DIR}/config" -type d -exec chmod 750 {} \; && \
find "./${APP_DIR}/config" -type f -exec chmod 640 {} \;
# Add the jar file
ADD target/oauth2-authorize.jar server.jar

# Port available to the world outside of this container
EXPOSE 8080

USER ${USER_UID}

# Set the working directory to /app
WORKDIR ./${APP_DIR}

CMD ["/bin/sh","-c","java -Dlight-4j-config-dir=/config -Dlogback.configurationFile=/config/logback.xml -jar server.jar"]
26 changes: 2 additions & 24 deletions client/docker/Dockerfile-Redhat
Original file line number Diff line number Diff line change
@@ -1,31 +1,9 @@
FROM registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift

USER root

ENV APP_DIR=app \
GROUP_NAME=networknt \
GROUP_ID=1000 \
USER_NAME=networknt \
USER_UID=1000

RUN groupadd -g ${GROUP_ID} -r ${GROUP_NAME} && \
useradd -u ${USER_UID} -g ${GROUP_NAME} -d "/${APP_DIR}" -s /sbin/nologin -c "${USER_NAME} user" ${USER_NAME}

# Add the jar file into the container at /app
ADD target/oauth2-client.jar ./${APP_DIR}/server.jar

# change permissions of app directory
RUN mkdir -p ./${APP_DIR}/config && \
chown -R ${USER_NAME}:0 "./${APP_DIR}/config" && \
find "./${APP_DIR}/config" -type d -exec chmod 750 {} \; && \
find "./${APP_DIR}/config" -type f -exec chmod 640 {} \;
# Add the jar file
ADD target/oauth2-client.jar server.jar

# Port available to the world outside of this container
EXPOSE 8080

USER ${USER_UID}

# Set the working directory to /app
WORKDIR ./${APP_DIR}

CMD ["/bin/sh","-c","java -Dlight-4j-config-dir=/config -Dlogback.configurationFile=/config/logback.xml -jar server.jar"]
26 changes: 2 additions & 24 deletions code/docker/Dockerfile-Redhat
Original file line number Diff line number Diff line change
@@ -1,31 +1,9 @@
FROM registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift

USER root

ENV APP_DIR=app \
GROUP_NAME=networknt \
GROUP_ID=1000 \
USER_NAME=networknt \
USER_UID=1000

RUN groupadd -g ${GROUP_ID} -r ${GROUP_NAME} && \
useradd -u ${USER_UID} -g ${GROUP_NAME} -d "/${APP_DIR}" -s /sbin/nologin -c "${USER_NAME} user" ${USER_NAME}

# Add the jar file into the container at /app
ADD target/oauth2-code.jar ./${APP_DIR}/server.jar

# change permissions of app directory
RUN mkdir -p ./${APP_DIR}/config && \
chown -R ${USER_NAME}:0 "./${APP_DIR}/config" && \
find "./${APP_DIR}/config" -type d -exec chmod 750 {} \; && \
find "./${APP_DIR}/config" -type f -exec chmod 640 {} \;
# Add the jar file
ADD target/oauth2-code.jar server.jar

# Port available to the world outside of this container
EXPOSE 8080

USER ${USER_UID}

# Set the working directory to /app
WORKDIR ./${APP_DIR}

CMD ["/bin/sh","-c","java -Dlight-4j-config-dir=/config -Dlogback.configurationFile=/config/logback.xml -jar server.jar"]
26 changes: 2 additions & 24 deletions key/docker/Dockerfile-Redhat
Original file line number Diff line number Diff line change
@@ -1,31 +1,9 @@
FROM registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift

USER root

ENV APP_DIR=app \
GROUP_NAME=networknt \
GROUP_ID=1000 \
USER_NAME=networknt \
USER_UID=1000

RUN groupadd -g ${GROUP_ID} -r ${GROUP_NAME} && \
useradd -u ${USER_UID} -g ${GROUP_NAME} -d "/${APP_DIR}" -s /sbin/nologin -c "${USER_NAME} user" ${USER_NAME}

# Add the jar file into the container at /app
ADD target/oauth2-key.jar ./${APP_DIR}/server.jar

# change permissions of app directory
RUN mkdir -p ./${APP_DIR}/config && \
chown -R ${USER_NAME}:0 "./${APP_DIR}/config" && \
find "./${APP_DIR}/config" -type d -exec chmod 750 {} \; && \
find "./${APP_DIR}/config" -type f -exec chmod 640 {} \;
# Add the jar file
ADD target/oauth2-key.jar server.jar

# Port available to the world outside of this container
EXPOSE 8080

USER ${USER_UID}

# Set the working directory to /app
WORKDIR ./${APP_DIR}

CMD ["/bin/sh","-c","java -Dlight-4j-config-dir=/config -Dlogback.configurationFile=/config/logback.xml -jar server.jar"]
26 changes: 2 additions & 24 deletions refresh-token/docker/Dockerfile-Redhat
Original file line number Diff line number Diff line change
@@ -1,31 +1,9 @@
FROM registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift

USER root

ENV APP_DIR=app \
GROUP_NAME=networknt \
GROUP_ID=1000 \
USER_NAME=networknt \
USER_UID=1000

RUN groupadd -g ${GROUP_ID} -r ${GROUP_NAME} && \
useradd -u ${USER_UID} -g ${GROUP_NAME} -d "/${APP_DIR}" -s /sbin/nologin -c "${USER_NAME} user" ${USER_NAME}

# Add the jar file into the container at /app
ADD target/oauth2-refresh-token.jar ./${APP_DIR}/server.jar

# change permissions of app directory
RUN mkdir -p ./${APP_DIR}/config && \
chown -R ${USER_NAME}:0 "./${APP_DIR}/config" && \
find "./${APP_DIR}/config" -type d -exec chmod 750 {} \; && \
find "./${APP_DIR}/config" -type f -exec chmod 640 {} \;
# Add the jar file
ADD target/oauth2-refresh-token.jar server.jar

# Port available to the world outside of this container
EXPOSE 8080

USER ${USER_UID}

# Set the working directory to /app
WORKDIR ./${APP_DIR}

CMD ["/bin/sh","-c","java -Dlight-4j-config-dir=/config -Dlogback.configurationFile=/config/logback.xml -jar server.jar"]
26 changes: 2 additions & 24 deletions service/docker/Dockerfile-Redhat
Original file line number Diff line number Diff line change
@@ -1,31 +1,9 @@
FROM registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift

USER root

ENV APP_DIR=app \
GROUP_NAME=networknt \
GROUP_ID=1000 \
USER_NAME=networknt \
USER_UID=1000

RUN groupadd -g ${GROUP_ID} -r ${GROUP_NAME} && \
useradd -u ${USER_UID} -g ${GROUP_NAME} -d "/${APP_DIR}" -s /sbin/nologin -c "${USER_NAME} user" ${USER_NAME}

# Add the jar file into the container at /app
ADD target/oauth2-service.jar ./${APP_DIR}/server.jar

# change permissions of app directory
RUN mkdir -p ./${APP_DIR}/config && \
chown -R ${USER_NAME}:0 "./${APP_DIR}/config" && \
find "./${APP_DIR}/config" -type d -exec chmod 750 {} \; && \
find "./${APP_DIR}/config" -type f -exec chmod 640 {} \;
# Add the jar file
ADD target/oauth2-service.jar server.jar

# Port available to the world outside of this container
EXPOSE 8080

USER ${USER_UID}

# Set the working directory to /app
WORKDIR ./${APP_DIR}

CMD ["/bin/sh","-c","java -Dlight-4j-config-dir=/config -Dlogback.configurationFile=/config/logback.xml -jar server.jar"]
26 changes: 2 additions & 24 deletions token/docker/Dockerfile-Redhat
Original file line number Diff line number Diff line change
@@ -1,31 +1,9 @@
FROM registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift

USER root

ENV APP_DIR=app \
GROUP_NAME=networknt \
GROUP_ID=1000 \
USER_NAME=networknt \
USER_UID=1000

RUN groupadd -g ${GROUP_ID} -r ${GROUP_NAME} && \
useradd -u ${USER_UID} -g ${GROUP_NAME} -d "/${APP_DIR}" -s /sbin/nologin -c "${USER_NAME} user" ${USER_NAME}

# Add the jar file into the container at /app
ADD target/oauth2-token.jar ./${APP_DIR}/server.jar

# change permissions of app directory
RUN mkdir -p ./${APP_DIR}/config && \
chown -R ${USER_NAME}:0 "./${APP_DIR}/config" && \
find "./${APP_DIR}/config" -type d -exec chmod 750 {} \; && \
find "./${APP_DIR}/config" -type f -exec chmod 640 {} \;
# Add the jar file
ADD target/oauth2-token.jar server.jar

# Port available to the world outside of this container
EXPOSE 8080

USER ${USER_UID}

# Set the working directory to /app
WORKDIR ./${APP_DIR}

CMD ["/bin/sh","-c","java -Dlight-4j-config-dir=/config -Dlogback.configurationFile=/config/logback.xml -jar server.jar"]
26 changes: 2 additions & 24 deletions user/docker/Dockerfile-Redhat
Original file line number Diff line number Diff line change
@@ -1,31 +1,9 @@
FROM registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift

USER root

ENV APP_DIR=app \
GROUP_NAME=networknt \
GROUP_ID=1000 \
USER_NAME=networknt \
USER_UID=1000

RUN groupadd -g ${GROUP_ID} -r ${GROUP_NAME} && \
useradd -u ${USER_UID} -g ${GROUP_NAME} -d "/${APP_DIR}" -s /sbin/nologin -c "${USER_NAME} user" ${USER_NAME}

# Add the jar file into the container at /app
ADD target/oauth2-user.jar ./${APP_DIR}/server.jar

# change permissions of app directory
RUN mkdir -p ./${APP_DIR}/config && \
chown -R ${USER_NAME}:0 "./${APP_DIR}/config" && \
find "./${APP_DIR}/config" -type d -exec chmod 750 {} \; && \
find "./${APP_DIR}/config" -type f -exec chmod 640 {} \;
# Add the jar file
ADD target/oauth2-user.jar server.jar

# Port available to the world outside of this container
EXPOSE 8080

USER ${USER_UID}

# Set the working directory to /app
WORKDIR ./${APP_DIR}

CMD ["/bin/sh","-c","java -Dlight-4j-config-dir=/config -Dlogback.configurationFile=/config/logback.xml -jar server.jar"]