Prereqs: Maven and JDK (sudo apt-get install maven) docker docker-compose (https://docs.docker.com/get-started/)
cd ${REPODIR}
mvn package
docker build -t javaeelaba1 .
cd ${REPODIR}
docker-compose up
Accessing application:
http://127.0.0.1:8080/laba1-1.0-SNAPSHOT/
-
Add 9009 to exposed TCP ports:
-
change CMD (note --debug):
CMD asadmin start-domain --debug --verbose
docker run -p 4848:4848 -p 8080:8080 -p 8181:8181 -p 41221:9009 javaeelaba1
41221 - port that Idea tries to connect with debugger, 9009 - debugger port inside container
https://www.jetbrains.com/help/idea/run-debug-configuration-glassfish-server.html
- pull app from github and build in container?