callahantiff / PheKnowLator

PheKnowLator: Heterogeneous Biomedical Knowledge Graphs and Benchmarks Constructed Under Alternative Semantic Models
https://github.com/callahantiff/PheKnowLator/wiki
Apache License 2.0
159 stars 29 forks source link

Multi-Stage Docker Build -- Not Runnable Outside of Container #40

Closed callahantiff closed 4 years ago

callahantiff commented 4 years ago

The multi-stage Docker container is runnable from within the container, but is not runnable from outside of the container. No error message is generated, but container hangs in main() and never seems to instantiate the first class in the workflow.


Dockerfile Location: https://github.com/callahantiff/PheKnowLator/blob/adding_docker/Dockerfile


Updates:

callahantiff commented 4 years ago

Thanks to @bill-baumgartner - Docker is now fully functional!


Just for archiving purposes, the following commands are used when interacting with the container:


BUILD CONTAINER

docker build -t pkt:2.0.0 .

RUN pkt FROM OUTSIDE CONTAINER (example)

docker run --name pkt_test --rm -ti -v /Users/tiffanycallahan/Dropbox/GraduateSchool/PhD/LabWork/PheKnowLator/resources/knowledge_graphs/:/PheKnowLator/resources/knowledge_graphs/ pkt:2.0.0 --app subclass --kg full --nde yes --rel yes --owl no --kgm yes

RUN pkt FROM INSIDE CONTAINER (example)

docker exec -ti pkt_test sh -c "/PheKnowLator/entrypoint.sh --app subclass --kg full --nde yes --rel yes --owl no --kgm yes"