-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-5064: added docker makefile for Tomcat 9 / Jetty 9 and updated e2e…
… tests Signed-off-by: Bart Hanssens <[email protected]>
- Loading branch information
1 parent
51f044a
commit f7566d0
Showing
12 changed files
with
130 additions
and
59 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,36 @@ | ||
# Temp to reduce image size | ||
FROM ubuntu:jammy AS temp | ||
|
||
RUN apt-get clean && apt-get update && apt-get install -y unzip | ||
|
||
|
||
COPY ignore/rdf4j.zip /tmp/rdf4j.zip | ||
|
||
WORKDIR /tmp | ||
|
||
RUN unzip -q /tmp/rdf4j.zip | ||
|
||
# Final workbench | ||
FROM jetty:9-jre17-eclipse-temurin | ||
LABEL org.opencontainers.image.authors="Bart Hanssens ([email protected])" | ||
|
||
USER root | ||
|
||
ENV JAVA_OPTIONS="-Dorg.eclipse.rdf4j.appdata.basedir=/var/rdf4j -Dorg.eclipse.rdf4j.rio.jsonld_secure_mode=false" | ||
ENV JETTY_MODULES="server,bytebufferpool,threadpool,security,servlet,webapp,ext,plus,deploy,annotations,http,jsp,jstl" | ||
|
||
COPY --from=temp /tmp/eclipse-rdf4j*/war/*.war /var/lib/jetty/webapps/ | ||
|
||
# mimic Tomcat directories for data and logs | ||
|
||
RUN ln -s /usr/local/jetty/logs /var/lib/jetty/logs && \ | ||
mkdir -p /usr/local/jetty/logs /var/rdf4j && \ | ||
chown -R jetty:jetty /usr/local/jetty/logs && \ | ||
chown -R jetty:jetty /var/rdf4j && \ | ||
chown -R jetty:jetty /var/lib/jetty/webapps && \ | ||
java -jar $JETTY_HOME/start.jar --add-to-start=$JETTY_MODULES --approve-all-licenses | ||
|
||
USER jetty | ||
|
||
EXPOSE 8080 | ||
|
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ WORKDIR /tmp | |
RUN unzip -q /tmp/rdf4j.zip | ||
|
||
# Final workbench | ||
FROM tomcat:8.5-jre11-temurin | ||
FROM tomcat:9-jre17-temurin-jammy | ||
MAINTAINER Bart Hanssens ([email protected]) | ||
|
||
RUN apt-get clean && apt-get update && apt-get upgrade -y && apt-get clean | ||
|
@@ -28,7 +28,7 @@ RUN rm -rf /usr/local/tomcat/webapps/* && \ | |
|
||
COPY --from=temp /tmp/eclipse-rdf4j*/war/*.war /usr/local/tomcat/webapps/ | ||
|
||
COPY web.xml /usr/local/tomcat/conf/web.xml | ||
COPY tomcat/web.xml /usr/local/tomcat/conf/web.xml | ||
|
||
USER tomcat | ||
|
||
|
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
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
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
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
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,6 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
echo "Stopping the docker container for ${APP_SERVER}" | ||
docker compose down --rmi all -v | ||
|
File renamed without changes.
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
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
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
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> | ||
<c:redirect url="home/overview.view" /> | ||
<c:redirect url="/home/overview.view" /> |