Compare commits
No commits in common. "be33a360235d7cbba22e302988679236aed93aae" and "003b786355b5d94dece89fd9bdbe784dd1ca3fa0" have entirely different histories.
be33a36023
...
003b786355
2 changed files with 5 additions and 72 deletions
68
README.md
68
README.md
|
|
@ -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
|
|
||||||
```
|
|
||||||
|
|
|
||||||
9
test.py
9
test.py
|
|
@ -344,9 +344,8 @@ 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
|
||||||
tiram_obj = eolobj.save(None)
|
xml = eolobj.save(None)
|
||||||
# if server_name == 'revprox.in.silique.fr':
|
#print(xml)
|
||||||
# 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)
|
||||||
|
|
@ -355,9 +354,9 @@ async def build(server_name, datas, module_infos):
|
||||||
makedirs('tmp')
|
makedirs('tmp')
|
||||||
makedirs(cfg['destinations_dir'])
|
makedirs(cfg['destinations_dir'])
|
||||||
try:
|
try:
|
||||||
exec(tiram_obj, None, optiondescription)
|
exec(xml, None, optiondescription)
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
print(tiram_obj)
|
print(xml)
|
||||||
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