-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
47 lines (33 loc) · 1.24 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
FROM tutum/tomcat:7.0
MAINTAINER Carlos Pedrinaci "carlos.pedrinaci@open.ac.uk"
ENV ISERVE_VERSION 2.1.1
ENV ISERVE_APP_NAME iserve
ENV ISERVE_BASE /opt/iserve
ENV ISERVE_DATA /iserve
# Container setup
ENV ISERVE_REPOSITORY iserve
ENV ISERVE_HOST localhost
ENV ISERVE_PORT 8080
ENV CATALINA_BASE /tomcat
ENV JVM_ARGS -Xmx2g
# Setup accordingly the env variables below
ENV RDFSTORE_HOST localhost
ENV RDFSTORE_PORT 3030
ENV RDFSTORE_TYPE fuseki
# Redis
ENV REDIS_HOST localhost
ENV REDIS_PORT 6379
# Logging setup
ENV LOG_LEVEL_ISERVE INFO
ENV LOG_LEVEL_MSM4J WARN
ENV JAVA_OPTS -Dlogback.configurationFile=/iserve/conf/logback.xml -Delda.spec=/iserve/conf/elda-spec-iserve.ttl -Diserve.config=/iserve/conf/config.properties.env
# Install CURL
RUN apt-get update && apt-get install -y curl && apt-get clean
# Remove docs and examples & deploy
RUN rm -rf ${CATALINA_BASE}/webapps/docs && rm -rf ${CATALINA_BASE}/webapps/examples && wget https://github.com/kmi/iserve/releases/download/v${ISERVE_VERSION}/iserve-webapp-${ISERVE_VERSION}.war -O ${CATALINA_BASE}/webapps/${ISERVE_APP_NAME}.war
# Setup iServe
COPY ./conf/ /opt/iserve/conf/
COPY ./scripts/ /opt/iserve/scripts/
RUN chmod +x /opt/iserve/scripts/*.sh
VOLUME /iserve
CMD ["/opt/iserve/scripts/run.sh"]