-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
delete docker_settings, not docker_setup
- Loading branch information
Showing
2 changed files
with
14 additions
and
17 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|