-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set Java 11 as default and enable Java version specification via dock…
…er build arguments
- Loading branch information
1 parent
30568ce
commit 2f98290
Showing
3 changed files
with
25 additions
and
18 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 |
---|---|---|
@@ -1,9 +1,18 @@ | ||
FROM public.ecr.aws/lambda/java:17 | ||
# Argument for Java version, defaulting to 11 | ||
ARG JAVA_VERSION=11 | ||
# Use the specified version of Java | ||
FROM public.ecr.aws/lambda/java:${JAVA_VERSION} | ||
|
||
# Argument for Java tool options, defaulting to an empty string | ||
ARG JAVA_TOOL_OPTIONS="" | ||
# Set the JAVA_TOOL_OPTIONS environment variable for Java 17 | ||
ENV JAVA_TOOL_OPTIONS=${JAVA_TOOL_OPTIONS} | ||
|
||
# Copy function code and runtime dependencies from Maven layout | ||
COPY target/athena-snowflake.zip ${LAMBDA_TASK_ROOT} | ||
|
||
# Unpack the jar | ||
RUN jar xf athena-snowflake.zip | ||
|
||
# Set the CMD to your handler (could also be done as a parameter override outside of the Dockerfile) | ||
CMD [ "com.amazonaws.athena.connectors.snowflake.SnowflakeMuxCompositeHandler" ] | ||
# Set the CMD to your handler | ||
CMD [ "com.amazonaws.athena.connectors.snowflake.SnowflakeMuxCompositeHandler" ] |
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