forked from Scifabric/pybossa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(vagrant): remove ansible and use bash. (Scifabric#2003)
Use bash scripts to setup everything.
- Loading branch information
Showing
3 changed files
with
39 additions
and
24 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
[ ! -d "/home/vagrant/.pyenv" ] && curl https://pyenv.run | bash | ||
|
||
export PATH="/home/vagrant/.pyenv/bin:$PATH" | ||
eval "$(pyenv init -)" | ||
eval "$(pyenv virtualenv-init -)" | ||
|
||
tee -a ~/home/vagrant/.bashrc << END | ||
export PATH="/home/vagrant/.pyenv/bin:$PATH" | ||
eval "$(pyenv init -)" | ||
eval "$(pyenv virtualenv-init -)" | ||
END | ||
|
||
pyenv install 3.6.12 | ||
pyenv global 3.6.12 | ||
echo setting up PYBOSSA... | ||
git clone --recursive https://github.com/Scifabric/pybossa | ||
cd pybossa | ||
python -mvenv env | ||
source env/bin/activate | ||
pip install -U pip | ||
pip install -r requirements.txt | ||
cp settings_local.py.tmpl settings_local.py | ||
cp alembic.ini.template alembic.ini | ||
redis-server contrib/sentinel.conf --sentinel | ||
python cli.py db_create | ||
python run.py |
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,8 @@ | ||
echo update package index files... | ||
apt-get update -qq | ||
|
||
echo installing required external libraries... | ||
apt-get -y install git postgresql postgresql-server-dev-all libpq-dev python3-psycopg2 libsasl2-dev libldap2-dev libssl-dev python3-venv python-dev build-essential libjpeg-dev libssl-dev libffi-dev dbus libdbus-1-dev libdbus-glib-1-dev libldap2-dev libsasl2-dev redis-server python3-dev | ||
|
||
sudo su postgres -c "psql -c \"CREATE ROLE pybossa SUPERUSER LOGIN PASSWORD 'tester'\" " | ||
sudo su postgres -c "createdb pybossa -O pybossa" |