Verified Commit 6c9eace1 authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

rmeove orig files

parent 552de75c
Pipeline #33635 passed with stages
in 5 minutes and 22 seconds
variables:
DOCKER_TLS_CERTDIR: ""
stages:
- test
- publish
include:
- project: 'memoriav/memobase-2020/utilities/ci-templates'
file: 'helm-chart/helm-chart.yml'
.build-image:
stage: publish
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/$DOCKERFILE --destination $IMAGE_TAG --build-arg BUILD_WITH="$BUILD_WITH"
<<<<<<< HEAD
=======
retry:
max: 2
when:
- script_failure
>>>>>>> 5.x
build-latest:
extends: .build-image
variables:
IMAGE_TAG: "$CI_REGISTRY_IMAGE:latest"
DOCKERFILE: "Dockerfile"
BUILD_WITH: "kakadu graphicsmagick ffmpeg"
only:
- master
build-latest-vanilla:
extends: .build-image
variables:
IMAGE_TAG: "$CI_REGISTRY_IMAGE:latest-vanilla"
DOCKERFILE: "Dockerfile"
BUILD_WITH: ""
only:
- master
build-latest-jp2:
extends: .build-image
variables:
IMAGE_TAG: "$CI_REGISTRY_IMAGE:latest-jp2"
DOCKERFILE: "Dockerfile"
BUILD_WITH: "kakadu"
only:
- master
build-latest-jp2-free:
extends: .build-image
variables:
IMAGE_TAG: "$CI_REGISTRY_IMAGE:latest-jp2-free"
DOCKERFILE: "Dockerfile"
BUILD_WITH: "openjpeg"
only:
- master
build-latest-video:
extends: .build-image
variables:
IMAGE_TAG: "$CI_REGISTRY_IMAGE:latest-video"
DOCKERFILE: "Dockerfile"
BUILD_WITH: "ffmpeg"
only:
- master
build-latest-images:
extends: .build-image
variables:
IMAGE_TAG: "$CI_REGISTRY_IMAGE:latest-images"
DOCKERFILE: "Dockerfile"
BUILD_WITH: "graphicsmagick"
only:
- master
build-latest-images-jp2:
extends: .build-image
variables:
IMAGE_TAG: "$CI_REGISTRY_IMAGE:latest-images-jp2"
DOCKERFILE: "Dockerfile"
BUILD_WITH: "graphicsmagick kakadu"
only:
- master
build-latest-images-jp2-free:
extends: .build-image
variables:
IMAGE_TAG: "$CI_REGISTRY_IMAGE:latest-images-jp2-free"
DOCKERFILE: "Dockerfile"
BUILD_WITH: "graphicsmagick openjpeg"
only:
- master
build-latest-all:
extends: .build-image
variables:
IMAGE_TAG: "$CI_REGISTRY_IMAGE:latest-all"
DOCKERFILE: "Dockerfile"
BUILD_WITH: "kakadu graphicsmagick ffmpeg"
only:
- master
build-latest-all-free:
extends: .build-image
variables:
IMAGE_TAG: "$CI_REGISTRY_IMAGE:latest-all-free"
DOCKERFILE: "Dockerfile"
BUILD_WITH: "openjpeg graphicsmagick ffmpeg"
only:
- master
build-version:
extends: .build-image
variables:
IMAGE_TAG: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME"
DOCKERFILE: "Dockerfile"
BUILD_WITH: "kakadu graphicsmagick ffmpeg"
except:
- master
- tags
build-version-vanilla:
extends: .build-image
variables:
IMAGE_TAG: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME-vanilla"
DOCKERFILE: "Dockerfile"
BUILD_WITH: ""
except:
- master
- tags
build-version-jp2:
extends: .build-image
variables:
IMAGE_TAG: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME-jp2"
DOCKERFILE: "Dockerfile"
BUILD_WITH: "kakadu"
except:
- master
- tags
build-version-jp2-free:
extends: .build-image
variables:
IMAGE_TAG: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME-jp2-free"
DOCKERFILE: "Dockerfile"
BUILD_WITH: "openjpeg"
except:
- master
- tags
build-version-video:
extends: .build-image
variables:
IMAGE_TAG: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME-video"
DOCKERFILE: "Dockerfile"
BUILD_WITH: "ffmpeg"
except:
- master
- tags
build-version-images:
extends: .build-image
variables:
IMAGE_TAG: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME-images"
DOCKERFILE: "Dockerfile"
BUILD_WITH: "graphicsmagick"
except:
- master
- tags
build-version-images-jp2:
extends: .build-image
variables:
IMAGE_TAG: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME-images-jp2"
DOCKERFILE: "Dockerfile"
BUILD_WITH: "graphicsmagick kakadu"
except:
- master
- tags
build-version-images-jp2-free:
extends: .build-image
variables:
IMAGE_TAG: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME-images-jp2-free"
DOCKERFILE: "Dockerfile"
BUILD_WITH: "graphicsmagick openjpeg"
except:
- master
- tags
build-version-all:
extends: .build-image
variables:
IMAGE_TAG: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME-all"
DOCKERFILE: "Dockerfile"
BUILD_WITH: "kakadu graphicsmagick ffmpeg"
except:
- master
- tags
build-version-all-free:
extends: .build-image
variables:
IMAGE_TAG: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME-all-free"
DOCKERFILE: "Dockerfile"
BUILD_WITH: "openjpeg graphicsmagick ffmpeg"
except:
- master
- tags
<<<<<<< HEAD
FROM maven:3-openjdk-11-slim AS build
ARG VERSION=5.0-SNAPSHOT
=======
FROM debian:buster-slim AS build
# Change the VERSION envvar according to the cantaloupe version. Don't forget to change the argument in the ENTRYPOINT command below as well
ARG VERSION=5.0.3
>>>>>>> 5.x
ARG BUILD_WITH=""
WORKDIR /build
RUN apt-get -qq update && \
apt-get -qq install git && \
apt-get clean
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 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 .
<<<<<<< HEAD
FROM openjdk:11-jre-slim
ENTRYPOINT ["/home/cantaloupe/run.sh", "5.0-SNAPSHOT"]
CMD ["-Dcantaloupe.config=/home/cantaloupe/app/cantaloupe.properties", "-Xmx2g"]
=======
FROM openjdk:16-slim-buster
# Change the version argument according to the cantaloupe version
ENTRYPOINT ["/home/cantaloupe/run.sh", "5.0.3"]
CMD ["-Dcantaloupe.config=/home/cantaloupe/app/cantaloupe.properties", "-Xmx4g", "-Xms800m"]
>>>>>>> 5.x
ARG HTTP_PORT=8182
ARG BUILD_WITH=""
HEALTHCHECK --start-period=30s CMD curl -sf 0.0.0.0:${HTTP_PORT} -o /dev/null || exit 1
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/
<<<<<<< HEAD
ADD --chown=cantaloupe ./run.sh /home/cantaloupe/
=======
ADD --chown=cantaloupe ./run.sh /home/cantaloupe/run.sh
ADD --chown=cantaloupe ./delegates.rb /home/cantaloupe/app/delegates.rb
>>>>>>> 5.x
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 && \
if [ "$BUILD_WITH" != "${BUILD_WITH%"graphicsmagick"*}" ]; then apt-get -qq install --no-install-recommends graphicsmagick; fi && \
if [ "$BUILD_WITH" != "${BUILD_WITH%"imagemagick"*}" ]; then apt-get -qq install --no-install-recommends imagemagick; fi && \
if [ "$BUILD_WITH" != "${BUILD_WITH%"openjpeg"*}" ]; then apt-get -qq install libopenjp2-tools; fi && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
USER cantaloupe
WORKDIR /home/cantaloupe
VOLUME ["/home/cantaloupe/images"]
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