restart: "always"
shm_size: "4G"
volumes:
+{% for volume in docker_volumes %}
- type: "bind"
- source: "/usr/bin/ofed_info"
- target: "/usr/bin/ofed_info"
- - type: "bind"
- source: "/dev/hugepages"
- target: "/dev/hugepages"
- - type: "bind"
- source: "/dev/vfio"
- target: "/dev/vfio"
- - type: "bind"
- source: "/etc/sudoers"
- target: "/etc/sudoers"
- - type: "bind"
- source: "/opt/"
- target: "/opt/"
- - type: "bind"
- source: "/usr/bin/iperf3"
- target: "/usr/bin/iperf3"
- - type: "bind"
- source: "/usr/lib/x86_64-linux-gnu/libiperf.so.0"
- target: "/usr/lib/x86_64-linux-gnu/libiperf.so.0"
- - type: "bind"
- source: "/usr/lib/x86_64-linux-gnu/libiperf.so.0.0.0"
- target: "/usr/lib/x86_64-linux-gnu/libiperf.so.0.0.0"
- - type: "bind"
- source: "/usr/lib/firmware/"
- target: "/usr/lib/firmware/"
+ source: "{{ volume.source }}"
+ target: "{{ volume.target }}"
+{% endfor %}
tg-1:
build:
context: "base/"
restart: "always"
shm_size: "4G"
volumes:
+{% for volume in docker_volumes %}
- type: "bind"
- source: "/usr/bin/ofed_info"
- target: "/usr/bin/ofed_info"
- - type: "bind"
- source: "/dev/hugepages"
- target: "/dev/hugepages"
- - type: "bind"
- source: "/dev/vfio"
- target: "/dev/vfio"
- - type: "bind"
- source: "/etc/sudoers"
- target: "/etc/sudoers"
- - type: "bind"
- source: "/opt/"
- target: "/opt/"
- - type: "bind"
- source: "/usr/bin/iperf3"
- target: "/usr/bin/iperf3"
- - type: "bind"
- source: "/usr/lib/x86_64-linux-gnu/libiperf.so.0"
- target: "/usr/lib/x86_64-linux-gnu/libiperf.so.0"
- - type: "bind"
- source: "/usr/lib/x86_64-linux-gnu/libiperf.so.0.0.0"
- target: "/usr/lib/x86_64-linux-gnu/libiperf.so.0.0.0"
- - type: "bind"
- source: "/usr/lib/firmware/"
- target: "/usr/lib/firmware/"
+ source: "{{ volume.source }}"
+ target: "{{ volume.target }}"
+{% endfor %}
\ No newline at end of file