Compare commits
3 commits
003b786355
...
be33a36023
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
be33a36023 | ||
|
|
ddf8caa9ca | ||
|
|
dd7880a19e |
2 changed files with 72 additions and 5 deletions
68
README.md
68
README.md
|
|
@ -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
|
||||||
|
```
|
||||||
|
|
|
||||||
9
test.py
9
test.py
|
|
@ -344,8 +344,9 @@ async def build(server_name, datas, module_infos):
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
print(f'Try to load {module_info.modules}')
|
print(f'Try to load {module_info.modules}')
|
||||||
raise err from err
|
raise err from err
|
||||||
xml = eolobj.save(None)
|
tiram_obj = eolobj.save(None)
|
||||||
#print(xml)
|
# if server_name == 'revprox.in.silique.fr':
|
||||||
|
# print(tiram_obj)
|
||||||
#cfg['patches_dir'] = join(test_dir, 'patches')
|
#cfg['patches_dir'] = join(test_dir, 'patches')
|
||||||
cfg['tmp_dir'] = 'tmp'
|
cfg['tmp_dir'] = 'tmp'
|
||||||
cfg['destinations_dir'] = join(INSTALL_DIR, datas['module'], CONFIG_DEST_DIR, server_name)
|
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('tmp')
|
||||||
makedirs(cfg['destinations_dir'])
|
makedirs(cfg['destinations_dir'])
|
||||||
try:
|
try:
|
||||||
exec(xml, None, optiondescription)
|
exec(tiram_obj, None, optiondescription)
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
print(xml)
|
print(tiram_obj)
|
||||||
raise Exception(f'unknown error when load tiramisu object {err}') from err
|
raise Exception(f'unknown error when load tiramisu object {err}') from err
|
||||||
config = await Config(optiondescription['option_0'], display_name=tiramisu_display_name)
|
config = await Config(optiondescription['option_0'], display_name=tiramisu_display_name)
|
||||||
await config.property.read_write()
|
await config.property.read_write()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue