https://hub.docker.com/r/jetherrodrigues/postgresql/
docker pull jetherrodrigues/postgresql:v1
sudo docker build -t [your_user_on_docker_hub]/postgresql:[v1] [.]
sudo docker push image:version_tag
sudo docker run -d --name postgresql -p 55432:5432 jetherrodrigues/postgresql:v1
sudo docker stats postgresql
sudo docker port postgresql
Connect to docker postgresql (user: docker, password: docker)
psql -h localhost -p 55432 -d docker -U docker --password
docker=# select datname from pg_database;
docker=# create database unisal;
docker pull jetherrodrigues/my_java:v1
Compile the java file
sudo docker run --rm -v $PWD:/[app path] -w /[app path] jetherrodrigues/my_java:v1 javac Main.java
Execute the bytecode(.class) file
sudo docker run --rm -v $PWD:/[app path] -w /[app path] jetherrodrigues/my_java:v1 java Main
docker pull jetherrodrigues/my_maven:v1
Create maven project
sudo docker run -it --rm -v "$PWD":/[app path] -w /[app path] jetherrodrigues/my_maven:v1 mvn archetype:generate -DgroupId=br.unisal.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -Dinte
Build maven project
sudo docker run -it --rm -v "$PWD":[app path] -w /[app path] jetherrodrigues/my_maven:v1 mvn package
docker pull jetherrodrigues/my_tomcat:v2
To run tomcat detach
sudo docker run -d --name tomcat -p 10080:8080 jetherrodrigues/my_tomcat:v2
To see the generated admin password
sudo docker logs tomcat
docker pull jetherrodrigues/my_app_tomcat:v1
sudo docker run --rm -d --name app -p 15200:8080 jetherrodrigues/my_app_tomcat:v1
http://localhost:15200/example/old/123
sudo docker-compose --file docker.yaml up -d
sudo docker-compose --file docker.yaml ps
sudo docker-compose --file docker.yaml down
http://jenkins.jenkins.6c6d6e4a.svc.dockerapp.io:9090/login?from=%2F
https://github.com/carlossg/docker-maven