Wiki

Clone wiki

WONKA / 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
THE SITE IS NOW ACCESSIBLE AT THE FOLLOWING LINK

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:

Screen Shot 2015-08-14 at 10.22.36.png

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
Don't worry about warnings here. You will be able to see the target you've loaded in the web-page.

It should look like this:

Screen Shot 2015-08-27 at 13.53.25.png

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