Skip to content

Docker Matlab

Lior Sabag edited this page Dec 26, 2016 · 3 revisions

To set up on a new machine:

  1. Grab gs://lior_backup/paperdoll-v1.0.tar.gz
  2. Grab gs://lior_backup/data
  3. tar xvf paperdoll-v1.0.tar.gz
  4. mv data/* paperdoll-v1.0/data/
export HOST_PD_DIR=$(pwd)/paperdoll-v1.0
export HOST_PORT=8084
docker run -v ${HOST_PD_DIR}:/root/paperdoll-v1.0 -p ${HOST_PORT}:8000 eu.gcr.io/test-paper-doll/tg/matlab_full:2 gunicorn --chdir /root/paperdoll-v1.0/ -b :8000 trendi.paperdoll.new_pd_falcon:api

On Azure (acs-1):

  1. Install https://github.com/Azure/azurefile-dockervolumedriver
  2. Create the ppddata volume docker volume create -d azurefile -o share=paperdoll --name ppddata
  3. docker run -d -v ppddata:/root/paperdoll_data/ -p 80:80 --label pd.active=yes -e constraint:pd.active!=yes registry.trendi.guru:5000/matlab_full:3 gunicorn --chdir /root/paperdoll_data/paperdoll-v1.0/ -b :80 --timeout 300 -w 2 trendi.paperdoll.new_pd_falcon:api
Clone this wiki locally