Skip to content

Commit

Permalink
Small changes to polisher Dockerfile and runModelPolisher script. Hop…
Browse files Browse the repository at this point in the history
…efully fixed the lockup when running non-root container
  • Loading branch information
mephenor committed Mar 29, 2020
1 parent 48e87aa commit f3689b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/java_docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM openjdk:11-slim
MAINTAINER zajac.thomas1992@gmail.com

RUN mkdir .java
RUN mkdir -p /.java/.systemPrefs && mkdir /.java/.userPrefs && chmod -R 755 /.java
COPY ModelPolisher-2.1-beta.jar /
CMD "/bin/sh"
2 changes: 1 addition & 1 deletion runModelPolisher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ if [ ! -x "$(command -v docker)" ]; then echo "Docker is not installed, please s
MODELS=$1
if [ -z ${MODELS} ]; then echo "Path to model folder is either empty or not set. Please set correct path"; exit -2; fi
if [ ! -d ${MODELS} ]; then echo "Path does not point to directory: ${MODELS}"; exit -3; fi
docker-compose run -u $(id -u):$(id -g) -v ${MODELS}:/models polisher java -Djava.util.prefs.userRoot=/ -jar /ModelPolisher-2.1-beta.jar --input=/models/ --output=/models/out --annotate-with-bigg=true --sbml-validation=true --compression-type=GZIP
docker-compose run -u $(id -u):$(id -g) -v ${MODELS}:/models polisher java -Djava.util.prefs.userRoot=/.java -jar /ModelPolisher-2.1-beta.jar --input=/models/ --output=/models/out --annotate-with-bigg=true --sbml-validation=true --compression-type=GZIP

0 comments on commit f3689b7

Please sign in to comment.