-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix oraclecloud function image * Do not use Jib for Oracle Cloud functions * fix oraclecloud functions * fix oraclecloud functions * fix oraclecloud functions * fix oraclecloud functions * Update micronaut-maven-jib-integration/src/main/java/io/micronaut/maven/jib/JibMicronautExtension.java Co-authored-by: Álvaro Sánchez-Mariscal <alvaro.sanchez-mariscal@oracle.com> --------- Co-authored-by: Álvaro Sánchez-Mariscal <alvaro.sanchez-mariscal@oracle.com>
- Loading branch information
1 parent
dede40d
commit 21770e1
Showing
11 changed files
with
85 additions
and
42 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
11 changes: 8 additions & 3 deletions
11
micronaut-maven-integration-tests/src/it/dockerfile-docker-oracle-function/Dockerfile
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 |
---|---|---|
@@ -1,6 +1,11 @@ | ||
FROM fnproject/fn-java-fdk:jre17-latest | ||
ARG BASE_JAVA_IMAGE=eclipse-temurin:21-jre | ||
|
||
FROM fnproject/fn-java-fdk:jre17-latest AS fnfdk | ||
|
||
FROM ${BASE_JAVA_IMAGE} | ||
COPY --from=fnfdk /function /function | ||
WORKDIR /function | ||
COPY classes /function/app/ | ||
COPY dependency/* /function/app/ | ||
COPY classes /function/app/classes | ||
COPY dependency/* /function/app/libs/ | ||
CMD ["io.micronaut.oraclecloud.function.http.HttpFunction::handleRequest"] | ||
ENTRYPOINT ["java", "-XX:-UsePerfData", "-XX:+UseSerialGC", "-Xshare:auto", "-Djava.awt.headless=true", "-Djava.library.path=/function/runtime/lib", "-cp", "/function/app/classes:/function/app/libs/*:/function/app/resources:/function/runtime/*", "com.fnproject.fn.runtime.EntryPoint"] |
3 changes: 2 additions & 1 deletion
3
micronaut-maven-integration-tests/src/it/dockerfile-docker-oracle-function/verify.groovy
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
6 changes: 3 additions & 3 deletions
6
micronaut-maven-integration-tests/src/it/package-docker-oracle-function/verify.groovy
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
File log = new File(basedir, 'build.log') | ||
assert log.exists() | ||
assert log.text.contains("fnproject/fn-java-fdk:jre17-latest") | ||
assert log.text.contains("Built image to Docker daemon as alvarosanchez/dockerfile-docker-oracle-function:0.1") | ||
assert log.text.contains("Container entrypoint set to [java, -XX:-UsePerfData, -XX:+UseSerialGC, -Xshare:auto, -Djava.awt.headless=true, -Djava.library.path=/function/runtime/lib, -cp, /function/app/classes:/function/app/libs/*:/function/app/resources:/function/runtime/*, com.fnproject.fn.runtime.EntryPoint]") | ||
assert log.text.contains("Container program arguments set to [io.micronaut.oraclecloud.function.http.HttpFunction::handleRequest]") | ||
assert log.text.contains("Successfully tagged alvarosanchez/dockerfile-docker-oracle-function:0.1") | ||
assert log.text.contains("ENTRYPOINT [\"java\", \"-XX:-UsePerfData\", \"-XX:+UseSerialGC\", \"-Xshare:auto\", \"-Djava.awt.headless=true\", \"-Djava.library.path=/function/runtime/lib\", \"-cp\", \"/function/app/classes:/function/app/libs/*:/function/app/resources:/function/runtime/*\", \"com.fnproject.fn.runtime.EntryPoint\"]") | ||
assert log.text.contains("CMD [\"io.micronaut.oraclecloud.function.http.HttpFunction::handleRequest\"]") |
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
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
11 changes: 8 additions & 3 deletions
11
micronaut-maven-plugin/src/main/resources/dockerfiles/DockerfileOracleCloud
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 |
---|---|---|
@@ -1,5 +1,10 @@ | ||
FROM fnproject/fn-java-fdk: | ||
ARG BASE_JAVA_IMAGE=eclipse-temurin: | ||
|
||
FROM fnproject/fn-java-fdk:jre17-latest AS fnfdk | ||
|
||
FROM ${BASE_JAVA_IMAGE} | ||
COPY --from=fnfdk /function /function | ||
WORKDIR /function | ||
COPY classes /function/app/ | ||
COPY dependency/* /function/app/ | ||
COPY classes /function/app/classes | ||
COPY dependency/* /function/app/libs/ | ||
CMD ["io.micronaut.oraclecloud.function.http.HttpFunction::handleRequest"] |