Emma-MacK / Software_assessment

A repository to hold the work I do for university
Apache License 2.0
0 stars 1 forks source link

Include docker #34

Open Emma-MacK opened 9 months ago

Emma-MacK commented 9 months ago

We would like to be able to use docker in our project, so users of the tool can set up the environment with ease.

This will require:

Emma-MacK commented 9 months ago

I have set up a basic docker image on branch make_docker_34 In a working conda environment, with a dockerfile in the working directory, the following following commands were run

docker build . -t software_tool
docker save software_tool > tool_image.tar
gzip tool_image.tar

a docker image can be loaded from the tar image using:

docker load < tool_image.tar.gz

A container was made, and then used to run one of the scripts

docker run -dit --name software_tool software_tool:latest
docker exec -it software_tool python Draft_scripts/emma_get_bed.py

This worked, and was tested in an environment that did not have the requirements to run the python script. running the python script was possible via docker. Docker_running