Skip to content

Instantly share code, notes, and snippets.

Last active Oct 30, 2020
What would you like to do?
Play with Quarkus #quarkus
  • Create project:

mvn io.quarkus:quarkus-maven-plugin:1.9.1.Final:create \
    -DprojectGroupId=adamatti \
    -DprojectArtifactId=sample \
    -DclassName="adamatti.HelloResource" \
  • Run as dev

mvn compile quarkus:dev
  • Compile native image

mvn package -Pnative -Dnative-image.docker-build=true
  • Run inside docker:

docker run --rm -it \
    -p "8080:8080" \
    -v ${PWD}/target/sample-1.0-SNAPSHOT-runner:/app \
    centos \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment