Skip to content

Commit

Permalink
delete docker_settings, not docker_setup
Browse files Browse the repository at this point in the history
  • Loading branch information
myf committed May 1, 2015
1 parent 6d254cd commit 3ef0c43
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 17 deletions.
17 changes: 0 additions & 17 deletions docker_settings.py

This file was deleted.

14 changes: 14 additions & 0 deletions docker_setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# pulling both images
docker pull postgres:9.4.1
docker pull mdillon/postgis:9.4
docker build -t sel_columbia/dokomoforms .
# db: pssword, and create db doko
docker run -d -P --name dokomo_db -e POSTGRES_PASSWORD=password mdillon/postgis:9.4
echo "sleep now"
sleep 5
echo "wakie"
docker run --rm -i -t --link dokomo_db:postgres postgres sh -c 'exec createdb doko -h "$POSTGRES_PORT_5432_TCP_ADDR" -p "$POSTGRES_PORT_5432_TCP_PORT" -U postgres'
#create database doko
docker run --rm --link dokomo_db:db sel_columbia/dokomoforms python manage_db.py --create
docker run -d -p 8888:8888 --name dokomo_webapp --link dokomo_db:db sel_columbia/dokomoforms python webapp.py

0 comments on commit 3ef0c43

Please sign in to comment.