Skip to content

Commit

Permalink
Upgrade to JDK17. (awslabs#2342)
Browse files Browse the repository at this point in the history
Co-authored-by: Jithendar Trianz <[email protected]>
Co-authored-by: Jithendar Trianz <[email protected]>
  • Loading branch information
3 people authored Jan 31, 2025
1 parent 56494cf commit dc68b2e
Show file tree
Hide file tree
Showing 40 changed files with 344 additions and 89 deletions.
10 changes: 9 additions & 1 deletion athena-aws-cmdb/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
FROM public.ecr.aws/lambda/java:11
# 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-aws-cmdb-2022.47.1.jar ${LAMBDA_TASK_ROOT}
Expand Down
10 changes: 9 additions & 1 deletion athena-clickhouse/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
FROM public.ecr.aws/lambda/java:11
# 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-clickhouse-2022.47.1.jar ${LAMBDA_TASK_ROOT}
Expand Down
10 changes: 9 additions & 1 deletion athena-cloudera-hive/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
FROM public.ecr.aws/lambda/java:11
# 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-cloudera-hive-2022.47.1.jar ${LAMBDA_TASK_ROOT}
Expand Down
10 changes: 9 additions & 1 deletion athena-cloudera-impala/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
FROM public.ecr.aws/lambda/java:11
# 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-cloudera-impala-2022.47.1.jar ${LAMBDA_TASK_ROOT}
Expand Down
10 changes: 9 additions & 1 deletion athena-cloudwatch-metrics/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
FROM public.ecr.aws/lambda/java:11
# 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-cloudwatch-metrics-2022.47.1.jar ${LAMBDA_TASK_ROOT}
Expand Down
10 changes: 9 additions & 1 deletion athena-cloudwatch/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
FROM public.ecr.aws/lambda/java:11
# 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-cloudwatch-2022.47.1.jar ${LAMBDA_TASK_ROOT}
Expand Down
10 changes: 9 additions & 1 deletion athena-datalakegen2/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
FROM public.ecr.aws/lambda/java:11
# 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-datalakegen2-2022.47.1.jar ${LAMBDA_TASK_ROOT}
Expand Down
10 changes: 9 additions & 1 deletion athena-db2-as400/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
FROM public.ecr.aws/lambda/java:11
# 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-db2-as400-2022.47.1.jar ${LAMBDA_TASK_ROOT}
Expand Down
10 changes: 9 additions & 1 deletion athena-db2/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
FROM public.ecr.aws/lambda/java:11
# 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-db2-2022.47.1.jar ${LAMBDA_TASK_ROOT}
Expand Down
10 changes: 9 additions & 1 deletion athena-docdb/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
FROM public.ecr.aws/lambda/java:11
# 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}

# Install necessary tools
RUN yum update -y && yum install -y curl perl openssl
Expand Down
10 changes: 9 additions & 1 deletion athena-dynamodb/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
FROM public.ecr.aws/lambda/java:11
# 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-dynamodb-2022.47.1.jar ${LAMBDA_TASK_ROOT}
Expand Down
10 changes: 9 additions & 1 deletion athena-elasticsearch/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
FROM public.ecr.aws/lambda/java:11
# 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-elasticsearch-2022.47.1.jar ${LAMBDA_TASK_ROOT}
Expand Down
15 changes: 0 additions & 15 deletions athena-federation-sdk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -310,21 +310,6 @@
</compilerArgs>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire.failsafe.version}</version>
<configuration>
<!--<groups>fast</groups>-->
<excludedGroups>slow</excludedGroups>
<properties>
<!--
<configurationParameters>
junit.jupiter.conditions.deactivate = *
</configurationParameters>
-->
</properties>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
Expand Down
10 changes: 9 additions & 1 deletion athena-gcs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
FROM public.ecr.aws/lambda/java:11
# 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-gcs.zip ${LAMBDA_TASK_ROOT}
Expand Down
10 changes: 9 additions & 1 deletion athena-google-bigquery/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
FROM public.ecr.aws/lambda/java:11
# 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-google-bigquery-2022.47.1.jar ${LAMBDA_TASK_ROOT}
Expand Down
10 changes: 9 additions & 1 deletion athena-hbase/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
FROM public.ecr.aws/lambda/java:11
# 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-hbase-2022.47.1.jar ${LAMBDA_TASK_ROOT}
Expand Down
11 changes: 0 additions & 11 deletions athena-hbase/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -134,17 +134,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire.failsafe.version}</version>
<configuration>
<argLine>-Xmx4g</argLine>
<excludes>
<exclude>*IntegTest</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
</project>
10 changes: 9 additions & 1 deletion athena-hortonworks-hive/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
FROM public.ecr.aws/lambda/java:11
# 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-hortonworks-hive-2022.47.1.jar ${LAMBDA_TASK_ROOT}
Expand Down
10 changes: 9 additions & 1 deletion athena-kafka/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
FROM public.ecr.aws/lambda/java:11
# 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-kafka-2022.47.1.jar ${LAMBDA_TASK_ROOT}
Expand Down
10 changes: 9 additions & 1 deletion athena-msk/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
FROM public.ecr.aws/lambda/java:11
# 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-msk-2022.47.1.jar ${LAMBDA_TASK_ROOT}
Expand Down
10 changes: 9 additions & 1 deletion athena-mysql/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
FROM public.ecr.aws/lambda/java:11
# 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-mysql-2022.47.1.jar ${LAMBDA_TASK_ROOT}
Expand Down
10 changes: 9 additions & 1 deletion athena-neptune/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
FROM public.ecr.aws/lambda/java:11
# 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-neptune-2022.47.1.jar ${LAMBDA_TASK_ROOT}
Expand Down
9 changes: 0 additions & 9 deletions athena-neptune/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -163,15 +163,6 @@
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<environmentVariables>
<publishing>${publishing}</publishing>
</environmentVariables>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
Expand Down
10 changes: 9 additions & 1 deletion athena-oracle/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
FROM public.ecr.aws/lambda/java:11
# 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}

# Install necessary tools
RUN yum update -y && yum install -y curl perl openssl
Expand Down
10 changes: 9 additions & 1 deletion athena-postgresql/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
FROM public.ecr.aws/lambda/java:11
# 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-postgresql-2022.47.1.jar ${LAMBDA_TASK_ROOT}
Expand Down
10 changes: 9 additions & 1 deletion athena-redis/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
FROM public.ecr.aws/lambda/java:11
# 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-redis-2022.47.1.jar ${LAMBDA_TASK_ROOT}
Expand Down
10 changes: 9 additions & 1 deletion athena-redshift/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
FROM public.ecr.aws/lambda/java:11
# 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-redshift-2022.47.1.jar ${LAMBDA_TASK_ROOT}
Expand Down
Loading

0 comments on commit dc68b2e

Please sign in to comment.