aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/docker_images/templates/docker-compose-tg.yaml.j2
blob: c73e34a0069a22eb0d67d6ad736021dc246da1ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
services:
  tg-0:
    build:
      context: "tg/"
      dockerfile: "Dockerfile"
      args:
        BASE_IMAGE: "ubuntu:22.04"
        TREX_VERSION: "3.03"
        IPERF_VERSION: "3.7"
    command: ["sh", "-c", "env | grep LD_ >> /etc/environment && /usr/sbin/sshd -D -p 6001"]
    environment:
      - LD_LIBRARY_PATH=/usr/local/lib/
    expose:
      - "6001"
    hostname: "{{ ansible_hostname }}"
    network_mode: "host"
    privileged: true
    restart: "always"
    shm_size: "4G"
    volumes:
{% for volume in docker_volumes %}
      - type: "bind"
        source: "{{ volume.source }}"
        target: "{{ volume.target }}"
{% endfor %}
  tg-1:
    build:
      context: "tg/"
      dockerfile: "Dockerfile"
      args:
        BASE_IMAGE: "ubuntu:22.04"
        TREX_VERSION: "3.03"
        IPERF_VERSION: "3.7"
    command: ["sh", "-c", "env | grep LD_ >> /etc/environment && /usr/sbin/sshd -D -p 6002"]
    environment:
      - LD_LIBRARY_PATH=/usr/local/lib/
    expose:
      - "6002"
    hostname: "{{ ansible_hostname }}"
    network_mode: "host"
    privileged: true
    restart: "always"
    shm_size: "4G"
    volumes:
{% for volume in docker_volumes %}
      - type: "bind"
        source: "{{ volume.source }}"
        target: "{{ volume.target }}"
{% endfor %}