Deploy a Solution
Here, we will make a basic modification of a run-template.
Run-template¶
Open your local copy of the example run-template of the brewery_sample_solution repository: code/run_templates/standalone/run.json
New content¶
To add a new run-step, replace its contents with:
run.json
{
"steps": [
{
"id": "generate_input_data",
"command": "python",
"arguments": [
"code/run_templates/standalone/generate.py"
]
},
{
"id": "engine",
"command": "csm-simulator",
"arguments": [
"-i",
"BreweryDemoSimulationWithConnector"
],
"precedents": [
"generate_input_data"
],
"useSystemEnvironment": true
},
{
"id": "csm_orc_version",
"command": "csm-orc",
"arguments": [
"--version"
],
"precedents": [
"engine"
]
}
]
}
Updating¶
Re-build your simulator:
Building your simulator in the Studio
Building your simulator in the Terminal
Update the simulator docker image:
Pushing to Harbor
Checking¶
Verify that the csm-orc version information appears now in the run logs.
Back¶
To continue, go back to: