add link to devconf 2019 quarkus slides
[wiki.git] / java / quarkus.mdwn
1 ## Quarkus PostgreSQL and REST
2
3 git clone https://github.com/quarkusio/quarkus-quickstarts.git
4
5 cd quarkus-quickstarts/hibernate-orm-resteasy
6
7 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
8
9 echo '%dev.quarkus.http.port=8787' >> src/main/resources/application.properties
10
11 mvn compile quarkus:dev
12
13 curl http://localhost:8787/fruits
14
15 ## Building a native image
16
17 You will see instructions if you try this:
18
19 mvn package -Pnative
20
21 We'll try again after installing Graal.
22
23 Download the latest release from https://github.com/oracle/graal/releases
24
25 For example https://github.com/oracle/graal/releases/download/vm-19.2.0.1/graalvm-ce-linux-amd64-19.2.0.1.tar.gz
26 tar xvfz graalvm-ce-*
27
28 gu install native-image
29
30 mvn package -Pnative
31
32 ## DevConf 2019 talk
33
34 [Daniel Oh](https://github.com/danieloh30) gave a fantastic talk called [Quarkus brings Serverless to Java developers](https://devconfus2019.sched.com/event/RknJ/quarkus-brings-serverless-to-java-developers) at DevConf 2019.
35
36 A camera was rolling so I've been keeping an eye on the [DevConf YouTube channel](https://www.youtube.com/channel/UCmYAQDZIQGm_kPvemBc_qwg/videos) and will probably email hello@devconf.info if it isn't up soon.
37
38 Update: The video is available at https://www.youtube.com/watch?v=k9P7p3HF72U
39
40 Update: The slides are available at https://www.slideshare.net/DanielOh20/devconfus-2019quarkus-brings-serverless-to-java-developers
41
42 Slides from two previous talks seem similar:
43
44 - [Knative](https://www.slideshare.net/DanielOh20/knative-makes-developers-incredible-on-serverless)
45 - [Podman](https://www.slideshare.net/DanielOh20/podman-buildah-and-quarkus-the-latest-in-linux-containers-technologies)