Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Dockerfile
Dockerfile.full
Dockerfile.scratch
Dockerfile.scratch2
HelloWorld.java
HelloWorldServer.java
README.md

README.md

blog-native-java-graalvm

Setup

wget https://github.com/oracle/graal/releases/download/vm-1.0.0-rc1/graalvm-ce-1.0.0-rc1-linux-amd64.tar.gz
docker build . -t graalvm

Hello World

docker run --rm -tiv `pwd`:/work -w /work
bash-4.2# javac HelloWorld.java
bash-4.2# native-image HelloWorld
bash-4.2# ./helloworld

Hello World Server

docker run --rm -tiv `pwd`:/work -w /work
bash-4.2# javac HelloWorldServer.java
bash-4.2# native-image HelloWorldServer
bash-4.2# ./helloworldserver

Containerize

docker build -f=Dockerfile.full . -t hello-graalvm
You can’t perform that action at this time.