forked from carlossg/docker-maven
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR adds images that use GraalVM Community and Oracle GraalVM for JDK 17 and 21. Fixes carlossg#242
- Loading branch information
1 parent
59723b9
commit ad6fc23
Showing
10 changed files
with
261 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: graalvm-community-17 | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- "graalvm-community-17/**" | ||
- .github/workflows/graalvm-community-17.yml | ||
- .github/workflows/_template.yml | ||
- common.sh | ||
- tags-for-dir.sh | ||
- "tests/**" | ||
- "!tests/*.ps*" | ||
- "!tests/*.windows" | ||
pull_request: | ||
paths: | ||
- "graalvm-community-17/**" | ||
- .github/workflows/graalvm-community-17.yml | ||
- .github/workflows/_template.yml | ||
- common.sh | ||
- tags-for-dir.sh | ||
- "tests/**" | ||
- "!tests/*.ps*" | ||
- "!tests/*.windows" | ||
|
||
jobs: | ||
build: | ||
uses: ./.github/workflows/_template.yml | ||
with: | ||
directory: graalvm-community-17 | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: graalvm-community-21 | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- "graalvm-community-21/**" | ||
- .github/workflows/graalvm-community-21.yml | ||
- .github/workflows/_template.yml | ||
- common.sh | ||
- tags-for-dir.sh | ||
- "tests/**" | ||
- "!tests/*.ps*" | ||
- "!tests/*.windows" | ||
pull_request: | ||
paths: | ||
- "graalvm-community-21/**" | ||
- .github/workflows/graalvm-community-21.yml | ||
- .github/workflows/_template.yml | ||
- common.sh | ||
- tags-for-dir.sh | ||
- "tests/**" | ||
- "!tests/*.ps*" | ||
- "!tests/*.windows" | ||
|
||
jobs: | ||
build: | ||
uses: ./.github/workflows/_template.yml | ||
with: | ||
directory: graalvm-community-21 | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: oracle-graalvm-17 | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- "oracle-graalvm-17/**" | ||
- .github/workflows/oracle-graalvm-17.yml | ||
- .github/workflows/_template.yml | ||
- common.sh | ||
- tags-for-dir.sh | ||
- "tests/**" | ||
- "!tests/*.ps*" | ||
- "!tests/*.windows" | ||
pull_request: | ||
paths: | ||
- "oracle-graalvm-17/**" | ||
- .github/workflows/oracle-graalvm-17.yml | ||
- .github/workflows/_template.yml | ||
- common.sh | ||
- tags-for-dir.sh | ||
- "tests/**" | ||
- "!tests/*.ps*" | ||
- "!tests/*.windows" | ||
|
||
jobs: | ||
build: | ||
uses: ./.github/workflows/_template.yml | ||
with: | ||
directory: oracle-graalvm-17 | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: oracle-graalvm-21 | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- "oracle-graalvm-21/**" | ||
- .github/workflows/oracle-graalvm-21.yml | ||
- .github/workflows/_template.yml | ||
- common.sh | ||
- tags-for-dir.sh | ||
- "tests/**" | ||
- "!tests/*.ps*" | ||
- "!tests/*.windows" | ||
pull_request: | ||
paths: | ||
- "oracle-graalvm-21/**" | ||
- .github/workflows/oracle-graalvm-21.yml | ||
- .github/workflows/_template.yml | ||
- common.sh | ||
- tags-for-dir.sh | ||
- "tests/**" | ||
- "!tests/*.ps*" | ||
- "!tests/*.windows" | ||
|
||
jobs: | ||
build: | ||
uses: ./.github/workflows/_template.yml | ||
with: | ||
directory: oracle-graalvm-21 | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM ghcr.io/graalvm/graalvm-community:17 | ||
|
||
# common for all images | ||
ENV MAVEN_HOME /usr/share/maven | ||
|
||
COPY --from=maven:3.9.6-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} | ||
COPY --from=maven:3.9.6-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh | ||
COPY --from=maven:3.9.6-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml | ||
|
||
RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn | ||
|
||
ARG MAVEN_VERSION=3.9.6 | ||
ARG USER_HOME_DIR="/root" | ||
ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" | ||
|
||
ENTRYPOINT ["/usr/local/bin/mvn-entrypoint.sh"] | ||
CMD ["mvn"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM ghcr.io/graalvm/graalvm-community:21 | ||
|
||
# common for all images | ||
ENV MAVEN_HOME /usr/share/maven | ||
|
||
COPY --from=maven:3.9.6-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} | ||
COPY --from=maven:3.9.6-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh | ||
COPY --from=maven:3.9.6-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml | ||
|
||
RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn | ||
|
||
ARG MAVEN_VERSION=3.9.6 | ||
ARG USER_HOME_DIR="/root" | ||
ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" | ||
|
||
ENTRYPOINT ["/usr/local/bin/mvn-entrypoint.sh"] | ||
CMD ["mvn"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM container-registry.oracle.com/graalvm/native-image:17 | ||
|
||
RUN microdnf --refresh -y install findutils which | ||
|
||
# common for all images | ||
ENV MAVEN_HOME /usr/share/maven | ||
|
||
COPY --from=maven:3.9.6-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} | ||
COPY --from=maven:3.9.6-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh | ||
COPY --from=maven:3.9.6-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml | ||
|
||
RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn | ||
|
||
ARG MAVEN_VERSION=3.9.6 | ||
ARG USER_HOME_DIR="/root" | ||
ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" | ||
|
||
ENTRYPOINT ["/usr/local/bin/mvn-entrypoint.sh"] | ||
CMD ["mvn"] |
Oops, something went wrong.