Verified Commit 8a69c128 authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

merge with branch 4.1.5

parent fa09a283
Pipeline #9120 passed with stage
in 43 minutes and 41 seconds
FROM debian:buster-slim AS build
ARG VERSION=4.1.5
FROM maven:3-openjdk-11-slim AS build
ARG VERSION=5.0-SNAPSHOT
ARG BUILD_WITH=""
WORKDIR /
WORKDIR /build
RUN apt-get -qq update && \
apt-get -qq install wget unzip && \
apt-get -qq install git && \
apt-get clean
RUN wget -q https://github.com/cantaloupe-project/cantaloupe/releases/download/v${VERSION}/cantaloupe-${VERSION}.zip -O temp.zip && \
unzip temp.zip && \
mv cantaloupe-${VERSION} cantaloupe && \
RUN git clone https://github.com/cantaloupe-project/cantaloupe.git && \
cd cantaloupe && \
sed -i -e 's/\(<repositories>\)/\1\n<repository><id>geomatys-nexus<\/id><url>https:\/\/nexus.geomatys.com\/repository\/geotoolkit<\/url><\/repository>/' pom.xml && \
mkdir /kakadu && \
if [ "$BUILD_WITH" != "${BUILD_WITH%"kakadu"*}" ]; then mv cantaloupe/deps/Linux-x86-64/lib/* /kakadu; fi && \
rm -r cantaloupe/deps && \
rm cantaloupe/cantaloupe.properties.sample
ADD ./cantaloupe.properties /cantaloupe/cantaloupe.properties
if [ "$BUILD_WITH" != "${BUILD_WITH%"kakadu"*}" ]; then mv dist/deps/Linux-x86-64/lib/* /kakadu; fi && \
mvn clean package -DskipTests
WORKDIR /cantaloupe
ADD ./cantaloupe.properties cantaloupe.properties
RUN mv /build/cantaloupe/target/cantaloupe-$VERSION.war .
FROM openjdk:11-jre-slim
ENTRYPOINT ["/home/cantaloupe/run.sh", "4.1.5"]
ENTRYPOINT ["/home/cantaloupe/run.sh", "5.0-SNAPSHOT"]
CMD ["-Dcantaloupe.config=/home/cantaloupe/app/cantaloupe.properties", "-Xmx2g"]
ARG HTTP_PORT=8182
ARG BUILD_WITH=""
......@@ -23,7 +24,7 @@ HEALTHCHECK --start-period=30s CMD curl -sf 0.0.0.0:${HTTP_PORT} -o /dev/null ||
RUN useradd cantaloupe && mkdir -p /home/cantaloupe/.cache/cantaloupe && chown -R cantaloupe: /home/cantaloupe/.cache
COPY --chown=cantaloupe --from=build /cantaloupe/ /home/cantaloupe/app/
COPY --from=build /kakadu /usr/lib/
ADD --chown=cantaloupe ./run.sh /home/cantaloupe/run.sh
ADD --chown=cantaloupe ./run.sh /home/cantaloupe/
RUN apt-get -qq update && \
apt-get -qq install curl fontconfig libfreetype6 && \
if [ "$BUILD_WITH" != "${BUILD_WITH%"ffmpeg"*}" ]; then apt-get -qq install --no-install-recommends ffmpeg; fi && \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment