Skip to content

Commit

Permalink
#34
Browse files Browse the repository at this point in the history
  • Loading branch information
saramsey committed Apr 23, 2018
1 parent 7caf562 commit 637f9d7
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions team-private/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,21 @@ In order to run the RTX POC software in a Docker container, it is easiest to use
This procedure will require the AWS CLI to be installed into the host OS:

sudo pip3 install awscli

and configured.

Next, you'll need to make sure that you have a file system (at least 100 GB) mounted as `/mnt/data`.
To unpack and run the RTX POC software in Docker using the `run_container_ncats.saramsey.org.sh` script.
To unpack and run the RTX POC software in Docker:

cd /mnt/data
wget https://raw.githubusercontent.com/dkoslicki/NCATS/master/code/docker/run_container_ncats.saramsey.org.sh
aws s3 cp s3://ramseylab/ncats/ncats.saramsey.org/ncats3_version3.tar.gz .
docker load < ncats3_version3.tar.gz
sh run_container_ncats.saramsey.org.sh
sudo docker exec -it ncats bash
docker run -td -p 80:80 -p 7474:7474 -p 7687:7687 --name PRODUCTION --mount type=bind,source=/mnt/data,target=/mnt/data ncats3:version4
sudo docker exec -it PRODUCTION bash
(in the container)# mkdir -p /mnt/data/orangeboard/code
(in the container)# cd /mnt/data/orangeboard
(in the container)# aws s3 cp s3://ramseylab/ncats/ncats.saramsey.org/neo4j_graphdb.tar.gz .
(in the container)# tar xvzf neo4j_graphdb.tar.gz
(in the container)# wget http://rtxkgdump.saramsey.org/040918-175406.tar.gz
(in the container)# tar xvzf 040918-175406.tar.gz
(in the container)# mkdir code
(in the container)# chown rt.rt code
(in the container)# service neo4j start
Expand All @@ -35,7 +36,7 @@ The above steps should prepare the RTX POC software to be used with your Docker

- Update code:

sudo docker exec -it rtxsteve /usr/bin/sudo -H -u rt bash -c 'cd ~/kg-construction && git pull origin newkg'
sudo docker exec -it rtxsteve /usr/bin/sudo -H -u rt bash -c 'cd ~/kg-construction && git pull origin master'

- Run in a screen session:

Expand Down

0 comments on commit 637f9d7

Please sign in to comment.