nalodeni.pirati.cz/install.sh

36 lines
715 B
Bash
Raw Normal View History

2019-04-03 13:55:34 +03:00
virtualenv -p python3.5 venv
2019-11-13 21:38:29 +02:00
source venv/bin/activate
2019-04-03 13:55:34 +03:00
2019-09-24 17:08:35 +03:00
pip install --upgrade pip
2019-11-13 21:38:29 +02:00
pip install -r pip-requirements.txt
2019-04-03 13:55:34 +03:00
##
# Keycloak SSO
##
#pip install git+https://github.com/jhuapl-boss/django-oidc.git
#pip install git+https://github.com/jhuapl-boss/drf-oidc-auth.git
#pip install git+https://github.com/jhuapl-boss/boss-oidc.git
pip install -U django-auth-oidc pyjwkest
#pip install -U service_identity
#pip install -U openid_connect
##
# Database setup
##
psql <<SQL
CREATE USER piratinalodeni;
CREATE DATABASE piratinalodeni OWNER=piratinalodeni ENCODING='UTF8' LC_COLLATE='cs_CZ.UTF-8' template template0;
SQL
##
# App Setup
##
2019-11-13 21:38:29 +02:00
./manage.py makemigrations nalodeni
./manage.py migrate
2019-04-03 13:55:34 +03:00
2019-11-15 15:13:18 +02:00