Skip to content

Commit

Permalink
another fix on variables in the new run.sh; for #12
Browse files Browse the repository at this point in the history
  • Loading branch information
kltm committed Nov 5, 2024
1 parent 3f61e5f commit 2f5b71a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker-vars.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repo_map:
amigo: master

tag: latest
minerva_tag: v6
minerva_tag: v7

# Ubuntu based image
noctua_tag: v5
Expand Down
5 changes: 3 additions & 2 deletions docker/Dockerfile.minerva
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ WORKDIR /app
ENV JAVA_OPTS="-Xmx24G"
ENV GOLR_SEED="http://golr-aux.geneontology.io/solr"
ENV GOLR_LABELS="http://noctua-golr.berkeleybop.org"
ENV RUN_DIR="/var/minerva"

RUN echo -e "#!/bin/bash\nset -x\njava $JAVA_OPTS -cp /app/minerva-cli.jar org.geneontology.minerva.server.StartUpTool --use-golr-url-logging --use-request-logging --arachne -g http://skyhook.berkeleybop.org/go-lego-reacto.owl --set-important-relation-parent http://purl.obolibrary.org/obo/LEGOREL_0000000 --port 6800 --golr-labels $GOLR_LABELS --golr-seed $GOLR_SEED --ontojournal $1/blazegraph-go-lego-reacto-neo.jnl -f $1/blazegraph.jnl --export-folder $1/noctua-models/models\n" > /app/run.sh
RUN echo -e "#!/bin/bash\nset -x\njava $JAVA_OPTS -cp /app/minerva-cli.jar org.geneontology.minerva.server.StartUpTool --use-golr-url-logging --use-request-logging --arachne -g http://skyhook.berkeleybop.org/go-lego-reacto.owl --set-important-relation-parent http://purl.obolibrary.org/obo/LEGOREL_0000000 --port 6800 --golr-labels $GOLR_LABELS --golr-seed $GOLR_SEED --ontojournal $RUN_DIR/blazegraph-go-lego-reacto-neo.jnl -f $RUN_DIR/blazegraph.jnl --export-folder $RUN_DIR/noctua-models/models\n" > /app/run.sh

RUN groupadd -g ${gid} gunicorn \
&& useradd -u ${uid} -g ${gid} -c 'Gunicorn User' --no-create-home gunicorn \
Expand All @@ -40,4 +41,4 @@ COPY --chown=${uid}:${gid} --from=builder /minerva-cli/bin/minerva-cli.jar /app/

EXPOSE 6800
USER gunicorn
CMD ["/app/run.sh", "/var/minerva"]
CMD ["/app/run.sh"]

0 comments on commit 2f5b71a

Please sign in to comment.