diff --git a/Dockerfile b/Dockerfile index f079297..7052089 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,25 +3,43 @@ # # mkdir CITE # cd CITE +# Options (choose only one and run the command below the option description): +# +# 1) Using the latest available teamengine release +# curl -L -o 5.5.2.zip https://github.com/opengeospatial/teamengine/archive/refs/tags/5.5.2.zip +# unzip 5.5.2.zip +# mv teamengine-5.5.2 src +# +# 2) Optionally you can rely on the latest teamengine (not working during our tests on 20230524) # git clone https://github.com/opengeospatial/teamengine src +# # git clone https://github.com/opengeospatial/ets-common.git src1 # cd src1 -# git clone -b testbed17 https://github.com/opengeospatial/ets-ogcapi-processes10.git -# cp ets-ogcapi-processes10/Dockerfile .. +# git clone https://github.com/opengeospatial/ets-ogcapi-processes10.git # cd .. # # # Go inside the CITE directory +# # Build with the following command: -# docker build . -t teamengine/ogcapi-processes:latest +# +# docker build . -f src1/ets-ogcapi-processes10/Dockerfile -t teamengine/ogcapi-processes:latest +# # Run using the following command: +# # docker run -d --name cite-teamengine -p 8080:8080 teamengine/ogcapi-processes:latest +# # Log using the following command: +# # docker logs -f cite-teamengine +# # Stop using the following command: +# # docker stop cite-teamengine +# # Remove using the following command: +# # docker rm cite-teamengine # @@ -40,6 +58,7 @@ RUN apt-get update && \ apt-get install -y $BUILD_DEPS && \ echo "teamengine building..." && \ mvn -f /home/app/src/pom.xml clean install > log && \ + echo "specific ETS building..." && \ mvn -f /home/app/src1/ets-ogcapi-processes10/pom.xml clean install && \ apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $BUILD_DEPS && \ rm -rf /var/lib/apt/lists/* @@ -54,12 +73,14 @@ ARG BUILD_DEPS=" \ COPY --from=build /home/app/src/teamengine-web/target/teamengine*.war /root COPY --from=build /home/app/src/teamengine-web/target/teamengine-*common-libs.zip /root COPY --from=build /home/app/src/teamengine-console/target/teamengine-console-*-base.zip /root +COPY --from=build /home/app/src1/ets-ogcapi-processes10/target/ets-ogcapi-processes10-*-aio.jar /root COPY --from=build /home/app/src1/ets-ogcapi-processes10/target/ets-ogcapi-processes10-*-ctl.zip /root COPY --from=build /home/app/src1/ets-ogcapi-processes10/target/ets-ogcapi-processes10-*-deps.zip /root ENV JAVA_OPTS="-Xms1024m -Xmx2048m -DTE_BASE=/root/te_base" RUN cd /root && \ mkdir te_base && \ mkdir te_base/scripts && \ + echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/sources.list && \ apt-get update && \ apt-get install -y $BUILD_DEPS && \ unzip -q -o teamengine*.war -d /usr/local/tomcat/webapps/teamengine && \ @@ -67,9 +88,10 @@ RUN cd /root && \ unzip -q -o teamengine-console-*-base.zip -d /root/te_base && \ unzip -q -o ets-ogcapi-processes10-*-ctl.zip -d /root/te_base/scripts && \ unzip -q -o ets-ogcapi-processes10-*-deps.zip -d /usr/local/tomcat/webapps/teamengine/WEB-INF/lib && \ + rm -f *zip *war && \ apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $BUILD_DEPS && \ rm -rf /var/lib/apt/lists/* /root/*zip /root/*war # run tomcat -CMD ["catalina.sh", "jpda", "run"] \ No newline at end of file +CMD ["catalina.sh", "jpda", "run"]