From c4ef7b2ddf09d1ce206278884c884aa44b263970 Mon Sep 17 00:00:00 2001 From: Antonio Calanducci Date: Wed, 11 Oct 2023 12:51:39 +0200 Subject: [PATCH] add Dockerfile to build the image --- Dockerfile | 16 ++++++++++++++++ README.md | 16 ++++++++++++++-- 2 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..285b2ef --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM d4science/gcore-distribution + +# Download and install the eXist database + +RUN wget --no-check-certificate http://downloads.sourceforge.net/project/exist/Stable/1.2/eXist-setup-1.2.6-rev9165.jar && java -jar eXist-setup-1.2.6-rev9165.jar -p /home/gcube/exist +ENV EXIST_HOME=/home/gcube/exist +RUN cp $EXIST_HOME/exist.jar $GLOBUS_LOCATION/lib +RUN cp $EXIST_HOME/lib/core/quartz-1.6.0.jar $GLOBUS_LOCATION/lib +RUN cp $EXIST_HOME/lib/core/xmlrpc-* $GLOBUS_LOCATION/lib +RUN cp $EXIST_HOME/lib/core/xmldb.jar $GLOBUS_LOCATION/lib +RUN cp $EXIST_HOME/lib/core/jta.jar $GLOBUS_LOCATION/lib +RUN cp $EXIST_HOME/lib/core/commons-pool-1.4.jar $GLOBUS_LOCATION/lib + +RUN wget --no-check-certificate https://nexus.d4science.org/nexus/content/repositories/gcube-staging-gcore/org/gcube/informationsystem/is-collector-service/3.0.2-4.15.0-126944/is-collector-service-3.0.2-4.15.0-126944.gar && mv is-collector-service-3.0.2-4.15.0-126944.gar is-collector-service.gar && gcore-deploy-service is-collector-service.gar + +ENV GLOBUS_OPTIONS="-Xms2000M -Xmx2000M -Dexist.home=$EXIST_HOME" diff --git a/README.md b/README.md index 570aed9..3bad74b 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,15 @@ -# is-collector-service-image +# IS Collector Service Docker image -This repo contains the Dockerfile to build the image of the gCore IS Collector service \ No newline at end of file +This repo contains the Dockerfile to build the image of the gCore IS Collector service + +## Build the image + +```shell +$ docker build -t is-collector-service . +``` + +## Test the image + +```shell +$ docker container run --name is-collector is-collector-service +```