Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/softinstigate/graalvm-maven-docker
A docker image for GraalVM and Maven built with sdkman from debian:buster-slim
https://github.com/softinstigate/graalvm-maven-docker
docker docker-image graalvm graalvm-native-image java java-native java-native-access maven sdkman
Last synced: about 3 hours ago
JSON representation
A docker image for GraalVM and Maven built with sdkman from debian:buster-slim
- Host: GitHub
- URL: https://github.com/softinstigate/graalvm-maven-docker
- Owner: SoftInstigate
- License: apache-2.0
- Created: 2020-11-23T14:25:21.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-07-25T08:16:15.000Z (3 months ago)
- Last Synced: 2024-07-25T11:12:38.678Z (3 months ago)
- Topics: docker, docker-image, graalvm, graalvm-native-image, java, java-native, java-native-access, maven, sdkman
- Language: Dockerfile
- Homepage:
- Size: 47.9 KB
- Stars: 21
- Watchers: 4
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# graalvm-maven-docker
[![Docker image](https://github.com/SoftInstigate/graalvm-maven-docker/actions/workflows/deploy-image.yml/badge.svg)](https://github.com/SoftInstigate/graalvm-maven-docker/actions/workflows/deploy-image.yml)
A docker image for [GraalVM](https://graalvm.org) and [Maven](https://maven.apache.org) built with [sdkman](https://sdkman.io)
It also installs `native-image`
Images are automatically published on [Docker Hub](https://hub.docker.com/r/softinstigate/graalvm-maven) when commit is tagged.
## Versions ##
- GraalVM: 22.0.2-graalce
- Maven: 3.9.9## Pull image
```bash
$ docker pull softinstigate/graalvm-maven
```## Run ##
The default `ENTRYPOINT` for this image is `mvn`.
If you want to `mvn clean install` your Java project, CD where the pom.xml is located, then:
```bash
$ docker pull softinstigate/graalvm-maven
$ docker run -it --rm \
-v "$PWD":/opt/app \
-v "$HOME"/.m2:/root/.m2 \
softinstigate/graalvm-maven \
clean package
```> The `-v "$HOME"/.m2:/root/.m2` parameter mounts your local `~/.m2` Maven repository as a Docker volume.
## how to build a native image
Use the [Native Maven Plugin](https://graalvm.github.io/native-build-tools/latest/maven-plugin.html/) in your `pom.xml`.