Full implementation of "Update Webgoat Dockerfile to use entrypoints and commands #523" based on the pull request of Nicklaus McClendon
This commit is contained in:
@ -8,5 +8,9 @@ RUN \
|
||||
|
||||
USER webwolf
|
||||
COPY target/webwolf-${webwolf_version}.jar /home/webwolf/webwolf.jar
|
||||
COPY start-webwolf.sh /home/webwolf
|
||||
|
||||
EXPOSE 9090
|
||||
|
||||
ENTRYPOINT ["/home/webwolf/start-webwolf.sh"]
|
||||
CMD ["--server.port=9090", "--server.address=0.0.0.0"]
|
7
webwolf/start-webwolf.sh
Executable file
7
webwolf/start-webwolf.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Script to start WebWolf, it needs a valid database connection from WebGoat so we wait 8 seconds before starting
|
||||
# WebWolf application
|
||||
|
||||
echo " Waiting for database to be available..."
|
||||
sleep 8 && java -Djava.security.egd=file:/dev/./urandom -jar /home/webwolf/webwolf.jar $@
|
Reference in New Issue
Block a user