Skip to content

Commit

Permalink
feat: Add solrwayback Dockerfile
Browse files Browse the repository at this point in the history
This commit adds a Dockerfile to be able to run solrwayback
WAR image from the solrwayback bundle in a vanilla tomcat
container.
  • Loading branch information
maeb committed Aug 17, 2023
1 parent a740a1a commit 4b3898f
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions Dockerfile.solrwayback
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4b3898f

Please sign in to comment.