/hello

multi-stage dockerfile + travisci to build and push to docker cloud

Primary LanguageJava

Docker Build Status Docker Automated build Travis

hello

mvn clean install 
SPRING_PROFILES_ACTIVE=dev mvn spring-boot:run
curl localhost:5000
curl http://localhost:5000/greeting/moto
open http://localhost:5000/swagger-ui.html

docker

docker build -t hello:0.0.1 .

## prod
docker run --name hello --rm -p 5000:5000 hello:0.0.1 

## dev
docker run --name hello --rm -p 5000:5000 -e SPRING_PROFILES_ACTIVE=dev hello:0.0.1

releasing (triggers a versioned build on dockerhub)
the travisci job pushes to this docker repo and will handle PRs as well.

git tag -am "fancy release" 0.0.1 
git push --tags