-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to the newest non-LTS openjdk
- Loading branch information
Showing
8 changed files
with
97 additions
and
104 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
This file was deleted.
Oops, something went wrong.
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,65 @@ | ||
FROM ubuntu:lunar | ||
|
||
ENV JAVA_HOME=/opt/jdk | ||
ENV PATH=$PATH:/opt/jdk/bin:/opt/maven/bin | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
# Install various dependencies: | ||
# * ca-certificates is needed by wget | ||
# * ffmpeg is needed by FfmpegProcessor | ||
# * wget download stuffs in this dockerfile | ||
# * libopenjp2-tools is needed by OpenJpegProcessor | ||
# * All the rest is needed by GrokProcessor | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
ca-certificates \ | ||
ffmpeg \ | ||
wget \ | ||
libopenjp2-tools \ | ||
liblcms2-dev \ | ||
libpng-dev \ | ||
libzstd-dev \ | ||
libtiff-dev \ | ||
libjpeg-dev \ | ||
zlib1g-dev \ | ||
libwebp-dev \ | ||
libimage-exiftool-perl \ | ||
libgrokj2k1 \ | ||
grokj2k-tools \ | ||
adduser \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Install TurboJpegProcessor dependencies | ||
RUN mkdir -p /opt/libjpeg-turbo/lib | ||
COPY docker/Linux-JDK11/image_files/libjpeg-turbo/lib64 /opt/libjpeg-turbo/lib | ||
|
||
# Install KakaduNativeProcessor dependencies | ||
COPY dist/deps/Linux-x86-64/lib/* /usr/lib/ | ||
|
||
# Install various other dependencies that aren't in apt | ||
# Install OpenJDK | ||
RUN wget -q https://download.java.net/java/GA/jdk22.0.2/c9ecb94cd31b495da20a27d4581645e8/9/GPL/openjdk-22.0.2_linux-x64_bin.tar.gz \ | ||
&& tar xfz openjdk-22.0.2_linux-x64_bin.tar.gz \ | ||
&& mv jdk-22.0.2 /opt/jdk \ | ||
# Install a newer Maven than the one in apt | ||
&& wget -q https://dlcdn.apache.org/maven/maven-3/3.8.8/binaries/apache-maven-3.8.8-bin.tar.gz \ | ||
&& tar xfz apache-maven-3.8.8-bin.tar.gz \ | ||
&& mv apache-maven-3.8.8 /opt/maven \ | ||
&& rm apache-maven-3.8.8-bin.tar.gz | ||
|
||
# A non-root user is needed for some FilesystemSourceTest tests to work. | ||
ARG user=cantaloupe | ||
ARG home=/home/$user | ||
RUN adduser --home $home $user | ||
RUN chown -R $user $home | ||
USER $user | ||
WORKDIR $home | ||
|
||
# Install application dependencies | ||
COPY ./pom.xml pom.xml | ||
RUN mvn --quiet dependency:resolve | ||
|
||
# Copy the code | ||
COPY --chown=cantaloupe docker/Linux-JDK11/image_files/test.properties test.properties | ||
COPY --chown=cantaloupe ./src src | ||
|
||
ENTRYPOINT mvn --batch-mode test -Pfreedeps |
7 changes: 3 additions & 4 deletions
7
docker/Linux-JDK18/docker-compose.yml → docker/Linux-JDK22/compose.yaml
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 was deleted.
Oops, something went wrong.
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
File renamed without changes.
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,18 @@ | ||
# | ||
# N.B.: docker compose must be invoked from the project root directory: | ||
# | ||
# docker compose -f path/to/compose.yaml up --exit-code-from cantaloupe | ||
# | ||
services: | ||
cantaloupe: | ||
build: | ||
context: ../../ | ||
dockerfile: docker/Windows-JDK22/Dockerfile | ||
minio: | ||
build: | ||
context: ../../ | ||
dockerfile: docker/Windows-JDK22/Dockerfile-minio | ||
environment: | ||
MINIO_ACCESS_KEY: MinioUser | ||
MINIO_SECRET_KEY: OpenSesame | ||
hostname: minio |