Skip to content

Instantly share code, notes, and snippets.

@adamatti
Last active Oct 30, 2020
Embed
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" \
    -Dpath="/hello"
  • 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 \
    /app -Dquarkus.http.host=0.0.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment