updated Graalvm doc

This commit is contained in:
lukas 2021-03-25 23:50:17 +01:00
parent f61ea8d039
commit bdb8149c28

View file

@ -20,14 +20,11 @@ sudo ln -s /usr/lib/jvm/graalvm/bin/native-image /usr/local/bin
sudo apt-get install build-essential libz-dev zlib1g-dev sudo apt-get install build-essential libz-dev zlib1g-dev
# build # build
cd ~/repo/dda/k8s-mastodon-bot
mkdir -p target/graalvm mkdir -p target/graalvm
lein uberjar lein uberjar
lein native lein native
# build image. e.g.
native-image -jar ~/repo/dda/k8s-mastodon-bot/target/uberjar/k8s-mastodon-bot-0.1.3-SNAPSHOT.jar ~/repo/dda/k8s-mastodon-bot/target/bot
# execute # execute
cd ~/repo/dda/k8s-mastodon-bot/target/bot ./target/graalvm/k8s-mastodon-bot src/main/resources/config.edn src/main/resources/auth.edn
./bot
``` ```