24 lines
711 B
YAML
24 lines
711 B
YAML
version: "3.9"
|
|
services:
|
|
prepare:
|
|
build:
|
|
context: {{ dockerfile_context }}
|
|
target: base_image
|
|
args:
|
|
{% for key, value in build_arguments.items() %}
|
|
- {{key}}={{value}}
|
|
{% endfor %}
|
|
volumes:
|
|
- {{ run_directory }}:/runs
|
|
command: >
|
|
/bin/bash -c "id &&
|
|
cd '/runs/{{ tutorial_folder }}' &&
|
|
sed -i 's%</participant>%<export:vtk directory=\"../{{precice_output_folder}}\" /> </participant>%g' precice-config.xml &&
|
|
sed -i 's|m2n:sockets |m2n:sockets network=\"eth0\" |g' precice-config.xml &&
|
|
cat precice-config.xml"
|
|
|
|
|
|
{% for service in services %}
|
|
{{ service }}:
|
|
{{ services[service] |indent(4) }}
|
|
{% endfor %}
|