mirror of
https://github.com/engineer-man/piston.git
synced 2025-05-15 08:06:27 +02:00
distrobuilder
This commit is contained in:
parent
208a3dcee8
commit
e03f7c1770
37 changed files with 667 additions and 381 deletions
13
container/configure.py
Normal file
13
container/configure.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
import yaml
|
||||
|
||||
|
||||
with open('piston.yaml') as dbc:
|
||||
with open('install_script.sh') as install_script_file:
|
||||
with open('build.yaml' , 'w+') as distrobuilder_config_file_new:
|
||||
distrobuilder_config = yaml.safe_load(dbc)
|
||||
distrobuilder_config['actions'].append({
|
||||
'trigger': 'post-packages',
|
||||
'action': install_script_file.read(),
|
||||
|
||||
})
|
||||
yaml.dump(distrobuilder_config, distrobuilder_config_file_new)
|
Loading…
Add table
Add a link
Reference in a new issue