-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
47 lines (36 loc) · 1.47 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 adoptopenjdk/openjdk11:jdk-11.0.11_9-alpine
RUN apk update
RUN apk add supervisor wget ca-certificates curl libstdc++ python3 py3-pip py3-wheel
RUN apk add --no-cache libstdc++=11.2.1_git20220219-r2 --repository https://dl-cdn.alpinelinux.org/alpine/v3.16/main --allow-untrusted
RUN apk list -I | grep -E 'libstdc++'
WORKDIR app
COPY triplestore-0.1-war-exec.jar .
COPY executionservice-0.1.jar .
COPY docker .
COPY executionservice/use-case ./executionservice/use-case
COPY pluginsystem/plugins ./pluginsystem/plugins
COPY .env .
RUN chmod +x /app/startup.sh
RUN chmod +x /app/create.sh
# Setting up ASPPlugin
RUN python3 -m pip install --upgrade pip
RUN pip install clingo
RUN mkdir /usr/lib/python3.9/scrpt
RUN echo python3 /usr/lib/python3.9/site-packages/clingo > /usr/lib/python3.9/scrpt/clingo
RUN chmod +x /usr/lib/python3.9/scrpt/clingo
ENV PATH="$PATH:/usr/lib/python3.9/scrpt"
# Setting up PythonPlugin
RUN cp /usr/bin/python3 /app/pluginsystem/plugins/PythonPlugin/target/classes/nix_venv/bin/python
RUN chmod -R +rx /app/pluginsystem/plugins/PythonPlugin/target/classes
RUN chmod -R +rx /app/pluginsystem/plugins/ASPPlugin/target/classes
RUN chmod +x /usr/lib/python3.9/site-packages/clingo
WORKDIR /logs
VOLUME /logs
VOLUME /app/executionservice/use-case
EXPOSE 8080/tcp
EXPOSE 8090/tcp
ENV url="http://localhost:8090/rdf4j"
ENV repoURL="http://localhost:8090/rdf4j/repositories/"
ENV DloadTTLFiles="true"
ENV DpublicHostName="localhost"
ENTRYPOINT ["/bin/sh", "/app/startup.sh"]