-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |