-
Notifications
You must be signed in to change notification settings - Fork 0
Docker
Note that using the pipeline with Docker only works for Linux systems.
Download and install the Docker software from the respective website: https://www.docker.com/
You can download a running example Docker image here: https://github.com/RUB-Bioinf/HT-PropagatedNeuriteSkeletonization/releases
Make sure to edit the image to include your own user credentials! If you do not do that, you may get permission conflicts.
We recommend to use a provided example docker image and build on it from there!
The first step is streamlining your build process.
To do this, use this guide to set up a run.sh.
Once created, use the terminal to navigate to the directory you saved the file in.
Run the file using $ \. run.sh
If you want to compile and run the pipeline directly from docker and GitHub, you can create bash scripts to build and run the docker.
First, you can create a build.sh with these contents:
docker build . --no-cache --pull --progress tty --force-rm --tag compskel:1.0 && docker run -v </path/to/your/input/directory>:/HT-NeuriteDurixSkSkeletonization/resources -v </path/to/your/output/directory>:/HT-NeuriteDurixSkSkeletonization/output compskel
Note, how this is all a single line input.
If you run this file, it will set up a docker image for you. This image will automatically download all needed libraries (Such as Fiji) and check out the latest version of the master branch. Then it will run the pipelines with the directories you have specified using the -v tags.
After setting up the docker image, you can create a run.sh to run the previously built image:
docker run -v </path/to/your/input/directory>:/HT-PropagatedNeuriteSkeletonization/resources -v </path/to/your/output/directory>:/HT-PropagatedNeuriteSkeletonization/output compskel
Make sure to replace all pointy brackets with your own folder paths
You can download example data from this wiki Page: https://github.com/RUB-Bioinf/HT-PropagatedNeuriteSkeletonization/wiki/Example-Data
-
docker system pruneRemoves dangling docker images and clears the cache. Use this if you run into troubles when running the docker file. -
docker ps -aDisplays all the running docker tasks. See the last column for the automatically generated name of your docker task. You can remove that task withdocker stopanddocker remove. Read up on the docker documentation on your own on how to do this.
Make sure you have permission to run these commands.