2019-11-28 16:30:50 +01:00
|
|
|
Projet Risotto
|
2019-11-28 15:01:08 +01:00
|
|
|
==============
|
|
|
|
|
2019-11-28 15:11:57 +01:00
|
|
|
Démarrer le server de l'API Risotto :
|
|
|
|
```
|
2019-11-28 16:30:50 +01:00
|
|
|
python3 script/server.py
|
2019-11-28 15:11:57 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
Accéder à un message :
|
|
|
|
```
|
|
|
|
wget http://localhost:8080/v1/config.session.server.start
|
|
|
|
```
|
2019-11-28 15:01:08 +01:00
|
|
|
|
2019-11-28 16:30:50 +01:00
|
|
|
Démarrer un serveur LemonLDAP de test
|
|
|
|
```
|
|
|
|
docker pull coudot/lemonldap-ng
|
|
|
|
echo "127.0.0.1 auth.example.com manager.example.com test1.example.com test2.example.com" >> /etc/hosts
|
|
|
|
docker run -d --add-host reload.example.com:127.0.0.1 -p 80:80 coudot/lemonldap-ng
|
|
|
|
```
|
|
|
|
|
2019-12-02 10:48:24 +01:00
|
|
|
Démarrer un serveur postgresql de test
|
|
|
|
```
|
|
|
|
podman pull docker.io/library/postgres:11-alpine
|
|
|
|
podman run -dt -p 5432:5432 postgres:11-alpine
|
|
|
|
|
|
|
|
psql -U postgres -h localhost -c "CREATE ROLE risotto WITH LOGIN PASSWORD 'risotto';"
|
|
|
|
psql -U postgres -h localhost -c "CREATE DATABASE risotto;"
|
|
|
|
psql -U postgres -h localhost -c "GRANT ALL ON DATABASE risotto TO risotto;"
|
2019-12-09 16:28:47 +01:00
|
|
|
psql -U postgres -h localhost -c "CREATE EXTENSION hstore;" risotto
|
2019-12-02 10:48:24 +01:00
|
|
|
```
|
|
|
|
|
2019-12-13 13:55:30 +01:00
|
|
|
Gestion de la base de données avec Sqitch
|
2019-12-02 10:48:24 +01:00
|
|
|
|
2019-12-13 13:55:30 +01:00
|
|
|
```
|
|
|
|
cpanm --quiet --notest App::Sqitch
|
|
|
|
sqitch init risotto --uri https://forge.cadoles.com/Infra/risotto --engine pg
|
|
|
|
```
|