Set JAVA_HOME Set M2_HOME Add M2_HOME/bin to the execution path mvn package -DskipTests
docker run --detach --name ec-mysql -p 6604:3306 -e MYSQL_ROOT_PASSWORD=password -e MYSQL_DATABASE=explorecali -e MYSQL_USER=cali_user -e MYSQL_PASSWORD=cali_pass -d mysql
docker images
docker ps -a
docker run -it --link ec-mysql:mysql --rm mysql sh -c 'exec mysql -h"$MYSQL_PORT_3306_TCP_ADDR" -P"$MYSQL_PORT_3306_TCP_PORT" -uroot -p"$MYSQL_ENV_MYSQL_ROOT_PASSWORD"'
docker stop ec-mysql
docker start ec-mysql
docker rm ec-mysql
docker rmi mysql:latest
mvn spring-boot:run
or
java -jar target/explorecali-2.0.0-SNAPSHOT.jar
mvn spring-boot:run -Dspring.profiles.active=mysql
or
java -Dspring.profiles.active=mysql -jar target/explorecali-2.0.0-SNAPSHOT.jar
mvn package -DskipTests docker:build
docker run --name ec-app-default -p 8080:8080 -d explorecali-default
mvn package -DskipTests docker:build -Dec-profile=mysql
docker run --name ec-app-mysql -p 8181:8080 --link ec-mysql:mysql -d explorecali-mysql
mvn package -DskipTests docker:build -Dec-profile=docker
docker run --name ec-app-docker -p 8282:8080 -v ~/db/migration:/var/migration -e server=ec-mysql -e port=3306 -e dbuser=cali_user -e dbpassword=cali_pass --link ec-mysql:mysql -d explorecali-docker
docker exec -t -i ec-app /bin/bash
######Login to Docker hub locally
docker login
docker tag <image id> <docker hub repository>/explorecali-default:latest
docker pull <docker hub repository>/explorecali-default
docker run --name ec-app-default -p 8080:8080 -d <docker hub repository>/explorecali-default