Skip to content

Commit

Permalink
Merge pull request #693 from cantaloupe-project/move-image-files
Browse files Browse the repository at this point in the history
Move image_files to a top level directory
  • Loading branch information
glenrobson authored Aug 28, 2024
2 parents 0c5b1dd + e730ef4 commit d7a833d
Show file tree
Hide file tree
Showing 19 changed files with 40 additions and 52 deletions.
40 changes: 20 additions & 20 deletions docker/Linux-GraalVM20/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,26 @@ ARG DEBIAN_FRONTEND=noninteractive

# Install various dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
ffmpeg \
maven \
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/*
ffmpeg \
maven \
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
COPY docker/image_files/libjpeg-turbo/lib64 /opt/libjpeg-turbo/lib

# Install KakaduNativeProcessor dependencies
COPY dist/deps/Linux-x86-64/lib/* /usr/lib/
Expand All @@ -40,8 +40,8 @@ COPY dist/deps/Linux-x86-64/lib/* /usr/lib/

# Install GraalVM
RUN wget -q https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-20.3.0/graalvm-ce-java11-linux-amd64-20.3.0.tar.gz \
&& tar xfz graalvm-ce-java11-linux-amd64-20.3.0.tar.gz \
&& mv graalvm-ce-java11-20.3.0 /opt
&& tar xfz graalvm-ce-java11-linux-amd64-20.3.0.tar.gz \
&& mv graalvm-ce-java11-20.3.0 /opt

# A non-root user is needed for some FilesystemSourceTest tests to work.
ARG user=cantaloupe
Expand All @@ -56,7 +56,7 @@ 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 docker/image_files/test.properties test.properties
COPY --chown=cantaloupe ./src src

ENTRYPOINT mvn --batch-mode test -Pfreedeps
4 changes: 2 additions & 2 deletions docker/Linux-JDK11/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \

# Install TurboJpegProcessor dependencies
RUN mkdir -p /opt/libjpeg-turbo/lib
COPY docker/Linux-JDK11/image_files/libjpeg-turbo/lib64 /opt/libjpeg-turbo/lib
COPY docker/image_files/libjpeg-turbo/lib64 /opt/libjpeg-turbo/lib

# Install KakaduNativeProcessor dependencies
COPY dist/deps/Linux-x86-64/lib/* /usr/lib/
Expand All @@ -49,7 +49,7 @@ 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 docker/image_files/test.properties test.properties
COPY --chown=cantaloupe ./src src

ENTRYPOINT mvn --batch-mode test -Pfreedeps
4 changes: 2 additions & 2 deletions docker/Linux-JDK17/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \

# Install TurboJpegProcessor dependencies
RUN mkdir -p /opt/libjpeg-turbo/lib
COPY docker/Linux-JDK11/image_files/libjpeg-turbo/lib64 /opt/libjpeg-turbo/lib
COPY docker/image_files/libjpeg-turbo/lib64 /opt/libjpeg-turbo/lib

# Install KakaduNativeProcessor dependencies
COPY dist/deps/Linux-x86-64/lib/* /usr/lib/
Expand All @@ -50,7 +50,7 @@ RUN echo "export JAVA_HOME=$(dirname $(dirname $(readlink -f $(which java))))" >
RUN mvn --quiet dependency:resolve

# Copy the code
COPY --chown=cantaloupe docker/Linux-JDK11/image_files/test.properties test.properties
COPY --chown=cantaloupe docker/image_files/test.properties test.properties
COPY --chown=cantaloupe ./src src

ENTRYPOINT mvn --batch-mode test -Pfreedeps
4 changes: 2 additions & 2 deletions docker/Linux-JDK18/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \

# Install TurboJpegProcessor dependencies
RUN mkdir -p /opt/libjpeg-turbo/lib
COPY docker/Linux-JDK11/image_files/libjpeg-turbo/lib64 /opt/libjpeg-turbo/lib
COPY docker/image_files/libjpeg-turbo/lib64 /opt/libjpeg-turbo/lib

# Install KakaduNativeProcessor dependencies
COPY dist/deps/Linux-x86-64/lib/* /usr/lib/
Expand Down Expand Up @@ -64,7 +64,7 @@ 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 docker/image_files/test.properties test.properties
COPY --chown=cantaloupe ./src src

ENTRYPOINT mvn --batch-mode test -Pfreedeps
4 changes: 2 additions & 2 deletions docker/Linux-JDK21/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \

# Install TurboJpegProcessor dependencies
RUN mkdir -p /opt/libjpeg-turbo/lib
COPY docker/Linux-JDK11/image_files/libjpeg-turbo/lib64 /opt/libjpeg-turbo/lib
COPY docker/image_files/libjpeg-turbo/lib64 /opt/libjpeg-turbo/lib

# Install KakaduNativeProcessor dependencies
COPY dist/deps/Linux-x86-64/lib/* /usr/lib/
Expand All @@ -50,7 +50,7 @@ RUN echo "export JAVA_HOME=$(dirname $(dirname $(readlink -f $(which java))))" >
RUN mvn --quiet dependency:resolve

# Copy the code
COPY --chown=cantaloupe docker/Linux-JDK11/image_files/test.properties test.properties
COPY --chown=cantaloupe docker/image_files/test.properties test.properties
COPY --chown=cantaloupe ./src src

ENTRYPOINT mvn --batch-mode test -Pfreedeps
8 changes: 4 additions & 4 deletions docker/Windows-JDK11/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ ENV chocolateyUseWindowsCompression false
# Install the Chocolatey package manager, which makes it easier to install
# dependencies.
RUN powershell -Command \
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1')); \
choco feature disable --name showDownloadProgress
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1')); \
choco feature disable --name showDownloadProgress

# Install various dependencies
# TODO: openjpeg
RUN choco install -y ojdkbuild11 maven ffmpeg

# Install TurboJpegProcessor dependencies TODO: libjpeg-turbo
#RUN mkdir -p /opt/libjpeg-turbo/lib
#COPY docker/Windows10-JDK11/image_files/libjpeg-turbo/lib64 c:\windows\system32
#COPY docker/image_files/libjpeg-turbo/lib64 c:\windows\system32

# Install KakaduNativeProcessor dependencies
COPY dist/deps/Windows-x86-64/lib/* c:/Windows/System32/
Expand All @@ -24,5 +24,5 @@ COPY pom.xml pom.xml
RUN mvn dependency:resolve

# Copy the code
COPY docker/Windows-JDK11/image_files/test.properties test.properties
COPY docker/image_files/test.properties test.properties
COPY src src
12 changes: 0 additions & 12 deletions docker/Windows-JDK11/image_files/test.properties

This file was deleted.

4 changes: 2 additions & 2 deletions docker/Windows-JDK17/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN choco install -y openjdk --version=17.0.2

# Install TurboJpegProcessor dependencies TODO: libjpeg-turbo
#RUN mkdir -p /opt/libjpeg-turbo/lib
#COPY docker/Windows10-JDK11/image_files/libjpeg-turbo/lib64 c:\windows\system32
#COPY docker/image_files/libjpeg-turbo/lib64 c:\windows\system32

# Install KakaduNativeProcessor dependencies
COPY dist/deps/Windows-x86-64/lib/* c:/Windows/System32/
Expand All @@ -25,5 +25,5 @@ COPY pom.xml pom.xml
RUN mvn dependency:resolve

# Copy the code
COPY docker/Windows-JDK11/image_files/test.properties test.properties
COPY docker/image_files/test.properties test.properties
COPY src src
8 changes: 4 additions & 4 deletions docker/Windows-JDK18/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ ENV chocolateyUseWindowsCompression false
# Install the Chocolatey package manager, which makes it easier to install
# dependencies.
RUN powershell -Command \
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1')); \
choco feature disable --name showDownloadProgress
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1')); \
choco feature disable --name showDownloadProgress

# Install various dependencies
# TODO: openjpeg
RUN choco install -y maven ffmpeg
RUN choco install -y openjdk --version=18.0.2

# Install TurboJpegProcessor dependencies TODO: libjpeg-turbo
#RUN mkdir -p /opt/libjpeg-turbo/lib
#COPY docker/Windows10-JDK11/image_files/libjpeg-turbo/lib64 c:\windows\system32
Expand All @@ -25,5 +25,5 @@ COPY pom.xml pom.xml
RUN mvn dependency:resolve

# Copy the code
COPY docker/Windows-JDK11/image_files/test.properties test.properties
COPY docker/image_files/test.properties test.properties
COPY src src
4 changes: 2 additions & 2 deletions docker/Windows-JDK21/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN choco install -y openjdk --version=21.0.2

# Install TurboJpegProcessor dependencies TODO: libjpeg-turbo
#RUN mkdir -p /opt/libjpeg-turbo/lib
#COPY docker/Windows10-JDK11/image_files/libjpeg-turbo/lib64 c:\windows\system32
#COPY docker/image_files/libjpeg-turbo/lib64 c:\windows\system32

# Install KakaduNativeProcessor dependencies
COPY dist/deps/Windows-x86-64/lib/* c:/Windows/System32/
Expand All @@ -25,5 +25,5 @@ COPY pom.xml pom.xml
RUN mvn dependency:resolve

# Copy the code
COPY docker/Windows-JDK11/image_files/test.properties test.properties
COPY docker/image_files/test.properties test.properties
COPY src src
File renamed without changes.

0 comments on commit d7a833d

Please sign in to comment.