From 4b3898fc2a2fc85613547f7db4a3ec13183be292 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marius=20Andr=C3=A9=20Elsfjordstrand=20Beck?= Date: Thu, 17 Aug 2023 09:27:15 +0200 Subject: [PATCH] feat: Add solrwayback Dockerfile This commit adds a Dockerfile to be able to run solrwayback WAR image from the solrwayback bundle in a vanilla tomcat container. --- Dockerfile.solrwayback | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Dockerfile.solrwayback diff --git a/Dockerfile.solrwayback b/Dockerfile.solrwayback new file mode 100644 index 0000000..d258ab8 --- /dev/null +++ b/Dockerfile.solrwayback @@ -0,0 +1,29 @@ +# This dockerfile configures a vanilla container with +# solrwayback installed and configured with properties +# from solrwayback bundle. + +ARG SOLRWAYBACK_VERSION=4.4.2 +ARG SOLRWAYBACK_CHECKSUM=41c1f7ecebc15aade23eb8735db2ab6d +ARG SOLRWAYBACK_TOMCAT_VERSION=8.5.60 +ARG TOMCAT_TAG=8.5-jdk8-temurin-focal + +FROM busybox as solrwayback + +WORKDIR /build + +ARG SOLRWAYBACK_VERSION +ARG SOLRWAYBACK_CHECKSUM +ARG SOLRWAYBACK_RELEASE_URL=https://github.com/netarchivesuite/solrwayback/releases/download/${SOLRWAYBACK_VERSION}/solrwayback_package_${SOLRWAYBACK_VERSION}.zip + +RUN wget -q -O bundle.zip ${SOLRWAYBACK_RELEASE_URL} \ +&& echo "${SOLRWAYBACK_CHECKSUM} bundle.zip" | md5sum -c - \ +&& unzip bundle.zip \ +&& mv solrwayback_package_${SOLRWAYBACK_VERSION} /app \ +&& rm bundle.zip + + +FROM tomcat:${TOMCAT_TAG} +ARG SOLRWAYBACK_TOMCAT_VERSION + +COPY --from=solrwayback /app/apache-tomcat-${SOLRWAYBACK_TOMCAT_VERSION}/webapps/solrwayback.war ${CATALINA_HOME}/webapps/solrwayback.war +COPY --from=solrwayback /app/properties /root