git clone https://github.com/Rfam/rfam-family-pipeline.git
cd /path/to/rfam-family-pipeline
docker image build -t rfam-local .
docker run -i -t rfam-local:latest /bin/bash
:warning: Your work will be lost after killing the container. To prevent that from happening do one of the following:
Copy all your hard work from within the container to your local machine:
docker container ls # use this to find the container id
docker container cp CONTAINER_ID:/workdir/within/container /path/to/local/dir
Mount a dedicated working directory on your local machine to the one in the docker container:
docker run -i -t rfam-local:latest -v /path/to/local/workdir:/workdir /bin/bash
Note: Update Rfam/Conf/rfam.conf
to provide a local location of the sequence database
and Rfam/Conf/rfam_local.conf
to establish a connection with the public MySQL database.
To easily test any changes your make to the code, mount your local directory to the rfam-family-pipeline directory in the docker container.
docker run -i -t rfam-local:latest -v /path/to/local/rfam-family-pipeline:/Rfam/rfam-family-pipeline bash
:exclamation: You can also mount a directory on your machine to the /workdir inside the container to have any testing output generated directly on your local machine:
docker run -i -t rfam-local:latest -v /path/to/local/rfam-family-pipeline:/Rfam/rfam-family-pipeline -v /path/to/local/dir:/workdir bash