diff --git a/authorize/docker/Dockerfile-Redhat b/authorize/docker/Dockerfile-Redhat index ea3668b7..2c2ebb46 100644 --- a/authorize/docker/Dockerfile-Redhat +++ b/authorize/docker/Dockerfile-Redhat @@ -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"] \ No newline at end of file diff --git a/client/docker/Dockerfile-Redhat b/client/docker/Dockerfile-Redhat index fb17c7cb..a586dd6b 100644 --- a/client/docker/Dockerfile-Redhat +++ b/client/docker/Dockerfile-Redhat @@ -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"] \ No newline at end of file diff --git a/code/docker/Dockerfile-Redhat b/code/docker/Dockerfile-Redhat index 25ef3f53..a3a0add2 100644 --- a/code/docker/Dockerfile-Redhat +++ b/code/docker/Dockerfile-Redhat @@ -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"] \ No newline at end of file diff --git a/key/docker/Dockerfile-Redhat b/key/docker/Dockerfile-Redhat index 64fb23fa..19147fe2 100644 --- a/key/docker/Dockerfile-Redhat +++ b/key/docker/Dockerfile-Redhat @@ -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"] \ No newline at end of file diff --git a/refresh-token/docker/Dockerfile-Redhat b/refresh-token/docker/Dockerfile-Redhat index 30141367..78332bb5 100644 --- a/refresh-token/docker/Dockerfile-Redhat +++ b/refresh-token/docker/Dockerfile-Redhat @@ -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"] \ No newline at end of file diff --git a/service/docker/Dockerfile-Redhat b/service/docker/Dockerfile-Redhat index 1cbf6d94..0fc3ae49 100644 --- a/service/docker/Dockerfile-Redhat +++ b/service/docker/Dockerfile-Redhat @@ -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"] \ No newline at end of file diff --git a/token/docker/Dockerfile-Redhat b/token/docker/Dockerfile-Redhat index a3ec07be..62c1224c 100644 --- a/token/docker/Dockerfile-Redhat +++ b/token/docker/Dockerfile-Redhat @@ -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"] \ No newline at end of file diff --git a/user/docker/Dockerfile-Redhat b/user/docker/Dockerfile-Redhat index fb798aee..c30b5515 100644 --- a/user/docker/Dockerfile-Redhat +++ b/user/docker/Dockerfile-Redhat @@ -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"] \ No newline at end of file