Compare commits

...

3 commits

Author SHA1 Message Date
Emmanuel Garette
be33a36023 fix in README 2022-03-12 07:59:36 +01:00
Emmanuel Garette
ddf8caa9ca rename xml to tiram_obj 2022-03-11 21:27:18 +01:00
Emmanuel Garette
dd7880a19e write README 2022-03-11 21:26:51 +01:00
2 changed files with 72 additions and 5 deletions

View file

@ -1,2 +1,68 @@
# risotto
# Risotto
## Installation
Clone projects:
- https://framagit.org/tiramisu/tiramisu
- https://cloud.silique.fr/gitea/risotto/dataset
- https://cloud.silique.fr/gitea/risotto/rougail
- https://cloud.silique.fr/gitea/risotto/risotto
## Set up
Set up Risotto:
```bash
cd risotto
cp risotto.conf.example risotto.conf
```
In risotto.conf change the dataset directory.
Set up infrasctructure:
```bash
cp server.json.example server.json
```
Change the configuration.
Send configuration to remote server:
```bash
HOST=cloud.silique.fr
./test.py
rm -f installations.tar
tar -cf installations.tar installations
scp installations.tar root@$HOST:
```
## Deploy
In host:
```bash
cd
rm -rf installations
tar xf installations.tar
cd installations
```
Set up host:
```bash
./install_host cloud.silique.fr
```
Build container image:
```bash
./install_images cloud.silique.fr
```
Set up the containers and start them up:
```bash
./install_machines cloud.silique.fr
```

View file

@ -344,8 +344,9 @@ async def build(server_name, datas, module_infos):
except Exception as err:
print(f'Try to load {module_info.modules}')
raise err from err
xml = eolobj.save(None)
#print(xml)
tiram_obj = eolobj.save(None)
# if server_name == 'revprox.in.silique.fr':
# print(tiram_obj)
#cfg['patches_dir'] = join(test_dir, 'patches')
cfg['tmp_dir'] = 'tmp'
cfg['destinations_dir'] = join(INSTALL_DIR, datas['module'], CONFIG_DEST_DIR, server_name)
@ -354,9 +355,9 @@ async def build(server_name, datas, module_infos):
makedirs('tmp')
makedirs(cfg['destinations_dir'])
try:
exec(xml, None, optiondescription)
exec(tiram_obj, None, optiondescription)
except Exception as err:
print(xml)
print(tiram_obj)
raise Exception(f'unknown error when load tiramisu object {err}') from err
config = await Config(optiondescription['option_0'], display_name=tiramisu_display_name)
await config.property.read_write()