Quarkus PostgreSQL and REST
git clone https://github.com/quarkusio/quarkus-quickstarts.git
cd quarkus-quickstarts/hibernate-orm-resteasy
docker run --ulimit memlock=-1:-1 -it --rm=true --memory-swappiness=0 --name quarkus_test -e POSTGRES_USER=quarkus_test -e POSTGRES_PASSWORD=quarkus_test -e POSTGRES_DB=quarkus_test -p 5432:5432 postgres:10.5
echo '%dev.quarkus.http.port=8787' >> src/main/resources/application.properties
mvn compile quarkus:dev
curl http://localhost:8787/fruits
Building a native image
You will see instructions if you try this:
mvn package -Pnative
We'll try again after installing Graal.
Download the latest release from https://github.com/oracle/graal/releases
For example https://github.com/oracle/graal/releases/download/vm-19.2.0.1/graalvm-ce-linux-amd64-19.2.0.1.tar.gz tar xvfz graalvm-ce-*
gu install native-image
mvn package -Pnative
DevConf 2019 talk
Daniel Oh gave a fantastic talk called Quarkus brings Serverless to Java developers at DevConf 2019.
A camera was rolling so I've been keeping an eye on the DevConf YouTube channel and will probably email hello@devconf.info if it isn't up soon.
Update: The video is available at https://www.youtube.com/watch?v=k9P7p3HF72U
Update: The slides are available at https://www.slideshare.net/DanielOh20/devconfus-2019quarkus-brings-serverless-to-java-developers
Slides from two previous talks seem similar:
Quarkus and war files
I asked if Quarkus supports war files at https://github.com/quarkusio/quarkusio.github.io/issues/285