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.

пре 5 година
12345678910111213141516
  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. -v=${SETTINGS_PATH}:/srv/www/pinry/pinry/settings/local_settings.py \
  13. pinry/pinry /scripts/start.sh