Compare commits

..

No commits in common. "be33a360235d7cbba22e302988679236aed93aae" and "003b786355b5d94dece89fd9bdbe784dd1ca3fa0" have entirely different histories.

2 changed files with 5 additions and 72 deletions

View file

@ -1,68 +1,2 @@
# 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,9 +344,8 @@ async def build(server_name, datas, module_infos):
except Exception as err:
print(f'Try to load {module_info.modules}')
raise err from err
tiram_obj = eolobj.save(None)
# if server_name == 'revprox.in.silique.fr':
# print(tiram_obj)
xml = eolobj.save(None)
#print(xml)
#cfg['patches_dir'] = join(test_dir, 'patches')
cfg['tmp_dir'] = 'tmp'
cfg['destinations_dir'] = join(INSTALL_DIR, datas['module'], CONFIG_DEST_DIR, server_name)
@ -355,9 +354,9 @@ async def build(server_name, datas, module_infos):
makedirs('tmp')
makedirs(cfg['destinations_dir'])
try:
exec(tiram_obj, None, optiondescription)
exec(xml, None, optiondescription)
except Exception as err:
print(tiram_obj)
print(xml)
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()