This is a simple service meant to help with OpenJDK project activities. It is being used by my OpenJDK Project Assistant Custom GPT.
The openjdk helper is up and running at https://api.hirt.se/openjdk/version. It is available and ready to use.
The api is described here:
https://api.hirt.se/openjdk/swagger-ui/
Or in openapi format here:
https://api.hirt.se/openjdk/openapi/
You can run the application in dev mode that enables live coding using:
./mvnw compile quarkus:dev
NOTE: Quarkus now ships with a Dev UI, which is available in dev mode only at http://localhost:8080/q/dev/.
The application can be packaged using:
./mvnw package
It produces the quarkus-run.jar
file in the target/quarkus-app/
directory.
Be aware that it’s not an über-jar as the dependencies are copied into the target/quarkus-app/lib/
directory.
The application is now runnable using java -jar target/quarkus-app/quarkus-run.jar
.
If you want to build an über-jar, execute the following command:
./mvnw package -Dquarkus.package.jar.type=uber-jar
The application, packaged as an über-jar, is now runnable using java -jar target/*-runner.jar
.
You can create a native executable using:
./mvnw package -Dnative
Or, if you don't have GraalVM installed, you can run the native executable build in a container using:
./mvnw package -Dnative -Dquarkus.native.container-build=true
You can then execute your native executable with: ./target/openjdk-helper-(version)-SNAPSHOT-runner
You can create a docker image using:
mvnw clean package -Dquarkus.native.container-build=true -Dquarkus.container-image.build=true
To create one with a native image:
mvnw clean package -Pnative -Dquarkus.native.container-build=true -Dquarkus.container-image.build=true
Run the image using:
docker run -i --rm -p 8080:8080 greystone/openjdk-helper:latest
To create docker images for multiple platforms and push them to Docker hub:
./release.sh