-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install the SPARQLProg package system-wide. (#1135)
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
Showing
2 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters