Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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`.