-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add MSYS_NO_PATHCONV=1 to init scripts to fix path breakage by Docker…
… Toolbox-Mingw shell. Add ssh_tunnel.sh script to enable use of 'localhost' with Docker Toolbox. Now init_pybossa.sh will reset and init the database from environment var PYBOSSA_DATABASE_URL. Configure Pybossa container to use generic postgres container. Upgrade to PostgreSQL 9.6 containers to match production db. Remove obsolete db container that was configured for use by both TT and Pybossa.
- Loading branch information
1 parent
3ea0d0c
commit 60e8e93
Showing
11 changed files
with
41 additions
and
66 deletions.
There are no files selected for viewing
File renamed without changes.
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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 |
---|---|---|
@@ -1,2 +1,8 @@ | ||
#!/bin/bash | ||
docker-compose run pybossa sh /ansible_build/init_db.sh | ||
# MSYS_NO_PATHCONV fixes paths on Docker Toolbox on Windows using Git Bash / Mingw | ||
# Harmless everywhere else. | ||
export MSYS_NO_PATHCONV=1 | ||
docker-compose exec pybossa supervisorctl stop pybossa | ||
docker-compose exec --user pybossa pybossa sh /ansible_build/reset_pybossa_db.sh | ||
docker-compose exec --user pybossa pybossa sh /ansible_build/init_db.sh | ||
docker-compose exec pybossa supervisorctl start pybossa |
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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
#!/bin/bash | ||
# MSYS_NO_PATHCONV fixes paths on Docker Toolbox on Windows using Git Bash / Mingw | ||
# Harmless everywhere else. | ||
export MSYS_NO_PATHCONV=1 | ||
# Must use 'exec' since ./manage.py collectstatic modifies the container | ||
docker-compose exec thresher_api sh /home/thresher/docker/thresher_api/init_all.sh "$1" |
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,2 @@ | ||
#!/bin/bash | ||
ssh -L 3002:$(docker-machine ip):3002 -L 5000:$(docker-machine ip):5000 docker@$(docker-machine ip) |