-
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 Jetty 9 and updated e2e tests
- Loading branch information
1 parent
51f044a
commit 7e70a2e
Showing
7 changed files
with
78 additions
and
25 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,35 @@ | ||
# 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.4-jre17-eclipse-temurin | ||
LABEL org.opencontainers.image.authors="Bart Hanssens ([email protected])" | ||
|
||
USER root | ||
|
||
RUN apt-get update && apt-get -y install dumb-init && apt-get clean | ||
|
||
ENV JAVA_OPTS="-Xmx2g -Dorg.eclipse.rdf4j.appdata.basedir=/var/rdf4j -Dorg.eclipse.rdf4j.rio.jsonld_secure_mode=false -Dorg.eclipse.jetty.annotations.AnnotationParser.LEVEL=OFF" | ||
|
||
COPY --from=temp /tmp/eclipse-rdf4j*/war/*.war /var/lib/jetty/webapps/ | ||
|
||
RUN mkdir -p /var/rdf4j && \ | ||
chown -R jetty:jetty /var/rdf4j /var/lib/jetty/webapps && \ | ||
java -jar $JETTY_HOME/start.jar --add-to-start=logging-jetty | ||
|
||
USER jetty | ||
|
||
ENTRYPOINT ["dumb-init", "--"] | ||
CMD ["java", "-jar", "/usr/local/jetty/start.jar"] | ||
|
||
EXPOSE 8080 | ||
|
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
echo "Stopping the docker container for ${APP_SERVER}" | ||
docker compose down --rmi all -v | ||
|
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