-
Notifications
You must be signed in to change notification settings - Fork 423
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add GraalVM images This PR adds images that use GraalVM Community and Oracle GraalVM for JDK 17 and 21. Fixes #242 --------- Co-authored-by: Carlos Sanchez <carlos@apache.org>
- Loading branch information
1 parent
a054476
commit af21ec0
Showing
12 changed files
with
233 additions
and
20 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
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 | ||
|
||
# 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:21 | ||
|
||
RUN microdnf --refresh -y install findutils | ||
|
||
# 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