Skip to content

Commit

Permalink
Install the SPARQLProg package system-wide. (#1135)
Browse files Browse the repository at this point in the history
When installing the SPARQLProg package using SWIPL, make sure the
package is installed in a system-wide directory (under /usr/local)
rather than the home directory of the running user (root). Otherwise
only root would be able to use the package.

closes #1134
  • Loading branch information
gouttegd authored Nov 22, 2024
1 parent 8b7cdc8 commit bdc5975
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ARG ODKLITE_TAG=latest
FROM obolibrary/odklite:${ODKLITE_TAG}
LABEL maintainer="[email protected]"

ENV PATH="/tools/apache-jena/bin:/tools/sparqlprog/bin:$PATH"
ENV PATH "/tools/apache-jena/bin:/usr/local/share/swi-prolog/pack/sparqlprog/bin:$PATH"

ARG ODK_VERSION 0.0.0
ENV ODK_VERSION=$ODK_VERSION
Expand Down Expand Up @@ -86,8 +86,7 @@ RUN wget -nv http://archive.apache.org/dist/jena/binaries/apache-jena-$JENA_VERS
mv /tools/apache-jena-$JENA_VERSION /tools/apache-jena

# Install SPARQLProg.
RUN swipl -g "pack_install(sparqlprog, [interactive(false)])" -g halt && \
ln -sf /root/.local/share/swi-prolog/pack/sparqlprog /tools/
RUN swipl -g "pack_install(sparqlprog, [interactive(false),global(true)])" -g halt

# Install obographviz
RUN npm install -g obographviz
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ test_odkfull_programs: test_odklite_programs
@./tests/test-program.sh SOUFFLE souffle --version
@./tests/test-program.sh JENA jena
@./tests/test-program.sh SPARQL sparql --version
@./tests/test-program.sh SPARQLPROG pl2sparql -g halt

test_odkdev_programs: test_odkfull_programs

Expand Down

0 comments on commit bdc5975

Please sign in to comment.