-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Dockerfile.development
34 lines (27 loc) · 1.37 KB
/
Dockerfile.development
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# FROM ubuntu:focal
# if you don't need the headless browser this is sufficient
FROM mcr.microsoft.com/playwright/java:focal
# needed for the headless browser
LABEL description="SPARQL Anything"
RUN apt-get update && apt-get install -y maven
# Set the locale https://stackoverflow.com/questions/28405902/how-to-set-the-locale-inside-a-debian-ubuntu-docker-container
RUN apt-get install locales
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \
locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
# TODO pull version number from pom?
ENV VERSION "1.0.0-SNAPSHOT"
# normal entrypoint
# CMD cd /app && mvn clean install -Dgenerate-server-jar=true && \
# java -cp \
# "/app/sparql-anything-fuseki/target/sparql-anything-server-${VERSION}.jar:$(for i in /app/*jar ; do printf '%s:' $i ; done)" \
# io.github.sparqlanything.fuseki.Endpoint
# debugging entrypoint (you can attach jdb with this)
CMD cd /app && mvn clean install -DskipTests -Dgenerate-server-jar=true && \
java -Dorg.slf4j.simpleLogger.defaultLogLevel=info \
-Dorg.slf4j.simpleLogger.log.io.github.sparqlanything=trace \
-agentlib:jdwp=transport=dt_socket,server=y,address=9091,suspend=n \
-cp "/app/sparql-anything-fuseki/target/sparql-anything-server-${VERSION}.jar:$(for i in /app/*jar ; do printf '%s:' $i ; done)" \
io.github.sparqlanything.fuseki.Endpoint