Wiki
Clone wikiWONKA / Linux
#!bash # First install docker on your flavor of Linux of choice https://docs.docker.com/installation/ # Then pull down the image sudo docker pull abradle/wonka # Now we can get a server running - in this case on localhost off port 8080 sudo docker run -v $PWD:/opt/ -d -p 8080:8000 -e "SERVER_NAME=localhost" -e "SERVER_PORT=8000" --name wonka_server abradle/wonka
Now if you go back to the terminal (the one you accessed before to start the server), you can enter the WONKA environment
sudo docker exec -it wonka_server /bin/bash
Now you can access commands.
For example let's do a git pull - to make sure we're fully up to date with the code
# Move to the directory the code is in cd CHOC # Now do a pull git pull
This will look something like this:
OR it will have updated your code to the latest version.
Now let's load in an example dataset
# Move to the directory where the processing happens cd /CHOC/src/WebApp python manage.py --wonka True --datasite CSV --csv_path WONKA_DATA/LOAD.csv --targ TRIAL
It should look like this:
Finally we can copy files from our host system
At the start (during docker run) we did:
-v $PWD:/opt
This mounts the current directory in your Docker container, in a folder called "/opt".
Type:
ls /opt
And you will see files from your host file system. You can use this to load your own data into WONKA.
Updated