-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (21 loc) · 1.05 KB
/
Dockerfile
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
FROM hseeberger/scala-sbt:graalvm-ce-21.1.0-java8_1.5.1_2.12.13 AS build
COPY . /gstore
WORKDIR /gstore
RUN sbt 'set test in assembly := {}' clean assembly
FROM openjdk:8-alpine
ENV STORAGE_SPARQL_ENDPOINT_URI=http://gstore-virtuoso:8890/sparql
ENV STORAGE_USER=""
ENV STORAGE_PASS=""
ENV STORAGE_DB_NAME=""
ENV STORAGE_JDBC_PORT=1111
# other options: org.dbpedia.databus.FusekiJDBCClient, org.dbpedia.databus.HttpVirtClient
ENV STORAGE_CLIENT_CLASS=org.dbpedia.databus.VirtuosoJDBCClient
ENV GIT_LOCAL_DIR=""
ENV LOGS_FOLDER=/gstore/logs/
ENV GSTORE_LOG_LEVEL=INFO
RUN apk update
RUN apk upgrade
RUN apk add bash
COPY --from=build /gstore/target/scala-2.12/gstore-assembly-0.2.0-SNAPSHOT.jar /app/app.jar
SHELL ["/bin/bash", "-c"]
CMD java -Dgstore.log.level=$GSTORE_LOG_LEVEL -DstorageDbName=$STORAGE_DB_NAME -DstorageClass=$STORAGE_CLIENT_CLASS -DstorageSparqlEndpointUri=$STORAGE_SPARQL_ENDPOINT_URI -DstorageJdbcPort=$STORAGE_JDBC_PORT -DstorageUser=$STORAGE_USER -DstoragePass=$STORAGE_PASS -DgitLocalDir=$GIT_LOCAL_DIR -DlogsFolder=$LOGS_FOLDER -jar /app/app.jar