Skip to content

Instantly share code, notes, and snippets.

@neilhwatson
Created April 5, 2018 00:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neilhwatson/f8301d89d48efb62eaf2adb14947d3db to your computer and use it in GitHub Desktop.
Save neilhwatson/f8301d89d48efb62eaf2adb14947d3db to your computer and use it in GitHub Desktop.
spring-boot rest example
#!/bin/bash
docker run -it --rm --name my-maven-project \
-p 80:8091 \
-v "$(pwd)":/usr/src/mymaven \
-w /usr/src/mymaven maven:3-jdk-10 \
mvn spring-boot:run -Drun.arguments="spring.profiles.active=test"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment