Include Page | ||||
---|---|---|---|---|
|
Option 1 - Just run tomcat in container, do web server/authn externally (2.5.28+)
You will start docker as a user and group. So establish that outside of the container. This will just use an existing user. You can create a new user if you like
...
Code Block |
---|
$ docker exec -it -u 501 grouper-ui /bin/bash [tomcat@a1c5ce3cb8eb WEB-INF]$ ps -ef UID PID PPID C STIME TTY TIME CMD tomcat 1 0 0 18:27 ? 00:00:00 /bin/bash /usr/local/bin/ui tomcat 8 1 0 18:27 ? 00:00:00 cat tomcat 10 1 0 18:27 ? 00:00:00 /bin/sh /usr/local/bin/entrypoint.sh ui tomcat 11 10 0 18:27 ? 00:00:00 cat tomcat 12 10 0 18:27 ? 00:00:00 awk -v ENV= -v UT= {printf "supervisord;console;%s;%s;%s\n", ENV, UT, $0; fflush()} tomcat 14 1 0 18:27 ? 00:00:00 /bin/sh /usr/local/bin/entrypoint.sh ui tomcat 15 14 0 18:27 ? 00:00:00 cat tomcat 16 14 0 18:27 ? 00:00:00 awk -v ENV= -v UT= {printf "grouper;console;%s;%s;%s\n", ENV, UT, $0; fflush()} tomcat 28 1 0 18:27 ? 00:00:00 /bin/bash /usr/local/bin/ui tomcat 29 28 0 18:27 ? 00:00:00 cat tomcat 30 28 0 18:27 ? 00:00:00 awk -v ENV= -v UT= {printf "tomee;console;%s;%s;%s\n", ENV, UT, $0; fflush()} tomcat 40 1 99 18:27 ? 00:00:38 /usr/lib/jvm/java-1.8.0-amazon-corretto/bin/java -Dnop -Djava.util.logging.manager=org.apache.logging.log4j.jul.Lo tomcat 86 0 0 18:27 pts/0 00:00:00 /bin/bash tomcat 174 86 0 18:28 pts/0 00:00:00 ps -ef [tomcat@a1c5ce3cb8eb WEB-INF]$ id uid=501(tomcat) gid=20(tomcat) groups=20(tomcat) [tomcat@a1c5ce3cb8eb WEB-INF]$ |
Option 2 - Run all processes as another user with supervisor
This is not really recommended but it is a way to go.
...