Skip to content
Snippets Groups Projects
Verified Commit 9f5f6761 authored by David Beniamine's avatar David Beniamine
Browse files

Compile rdf-vocabulary

Fix #9
parent 1c9a337d
Branches
No related tags found
No related merge requests found
...@@ -2,3 +2,4 @@ RESTART=no ...@@ -2,3 +2,4 @@ RESTART=no
APP_DEBUG=false APP_DEBUG=false
DEV_PORT=5000 DEV_PORT=5000
GIT_REF=master GIT_REF=master
GIT_REF_VOCABULARY=master
...@@ -16,16 +16,22 @@ RUN apt-get install -y \ ...@@ -16,16 +16,22 @@ RUN apt-get install -y \
WORKDIR /opt WORKDIR /opt
RUN git clone https://gitlab.tetras-libre.fr/unl/unl2rdf
WORKDIR /opt/unl2rdf RUN git clone https://gitlab.tetras-libre.fr/unl/unlTools
ARG GIT_REF=master RUN git clone https://gitlab.tetras-libre.fr/unl/rdf-vocabulary
WORKDIR /opt/rdf-vocabulary
ARG GIT_REF_VOCABULARY=master
RUN git pull RUN git pull && git checkout $GIT_REF_VOCABULARY && mvn install
RUN git checkout $GIT_REF
WORKDIR /opt/unlTools
ARG GIT_REF=master
RUN mvn package RUN git pull && git checkout $GIT_REF && mvn package
FROM base FROM base
...@@ -46,7 +52,7 @@ RUN a2dissite 000-default ...@@ -46,7 +52,7 @@ RUN a2dissite 000-default
RUN a2ensite flask RUN a2ensite flask
COPY --from=builder /opt/unl2rdf/unl2rdf-app/target/unl2rdf-app-*-with-dependencies.jar /opt/unl2rdf.jar COPY --from=builder /opt/unlTools/unl2rdf-app/target/unl2rdf-app-*-with-dependencies.jar /opt/unl2rdf.jar
# Force code reloading # Force code reloading
RUN sed -i 's/^\(\s*MaxConnectionsPerChild\s*\) 0/\1 1/g' /etc/apache2/mods-enabled/mpm_event.conf RUN sed -i 's/^\(\s*MaxConnectionsPerChild\s*\) 0/\1 1/g' /etc/apache2/mods-enabled/mpm_event.conf
......
...@@ -6,7 +6,8 @@ services: ...@@ -6,7 +6,8 @@ services:
build: build:
context: . context: .
args: args:
GIT_REF: ${GIT_REF} GIT_REF:
GIT_REF_VOCABULARY:
volumes: volumes:
- "./src:/var/www/app" - "./src:/var/www/app"
environment: environment:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment