Skip to content

Commit

Permalink
fix: dremio jdbc driver would not work under java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
drcgjung committed Feb 7, 2024
1 parent fa9412e commit c16fa29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion provisioning/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ Eclipse Tractus-X product(s) installed within the image:

**Used base image**

- [eclipse-temurin:21-jre-alpine](https://github.com/adoptium/containers)
- [eclipse-temurin:11-jre-alpine](https://github.com/adoptium/containers)
- Official Eclipse Temurin DockerHub page: https://hub.docker.com/_/eclipse-temurin
- Eclipse Temurin Project: https://projects.eclipse.org/projects/adoptium.temurin
- Additional information about the Eclipse Temurin images: https://github.com/docker-library/repo-info/tree/master/repos/eclipse-temurin
Expand Down
4 changes: 2 additions & 2 deletions provisioning/src/main/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ FROM ontop/ontop:5.1.2 as blueprint
# Build Container: Fixes diverse vulnerabilities in guava <32, tomcat, spring-boot 2.7<13, spring-framework <5.3.28 and spring-web (all 5 versions - need to exclude a deprecated package from the jar)
##

FROM eclipse-temurin:21-jdk AS build
FROM eclipse-temurin:11-jdk AS build

# run with docker --build-arg jdbcDrivers=path_to_my_driver to establish a different driver
ARG jdbcDrivers="https://repo1.maven.org/maven2/com/h2database/h2/2.2.220/h2-2.2.220.jar https://download.dremio.com/jdbc-driver/dremio-jdbc-driver-LATEST.jar https://repo1.maven.org/maven2/org/apache/calcite/avatica/avatica/1.22.0/avatica-1.22.0.jar"
Expand Down Expand Up @@ -56,7 +56,7 @@ RUN if [ "${HTTP_PROXY}" != "" ]; then \
# Target Container: Use a valid base image
##

FROM eclipse-temurin:21-jre-alpine
FROM eclipse-temurin:11-jre-alpine

ARG APP_USER=ontop
ARG APP_UID=10001
Expand Down

0 comments on commit c16fa29

Please sign in to comment.