You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 regels
337 B

  1. #!/bin/bash
  2. DATA_PATH=${1}
  3. HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
  4. SETTINGS_PATH="${HERE}/pinry/local_settings.py"
  5. if [ "${DATA_PATH}" = "" ]
  6. then
  7. echo "usage: start_docker.sh /abs/path/to/your/data/store"
  8. exit 1
  9. fi
  10. sudo docker run -d=true -p=80:80 \
  11. -v=${DATA_PATH}:/data \
  12. getpinry/pinry