aboutsummaryrefslogtreecommitdiffstats
path: root/tests/1-node.yml
blob: 9e496d7b87a3927f8265f38641bf72c8ce9bf237 (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
version: "3"
services:
  client:
    build:
      context: ..
      dockerfile: ${DOCKERFILE}
      args:
        - BASE_IMAGE
    image: hicn-base
    container_name: forwarder
    working_dir: /workspace
    volumes:
      - ..:/workspace:z
    networks:
      the-network:
        ipv4_address: ${TOPOLOGY_1_NODE_IP_ADDRESS}
    entrypoint: [/bin/bash, -ex, -c]
    command:
      - |
        if [ -d /workspace/build-dev ]; then
          sudo ninja -C /workspace/build-dev install
        fi

        sudo hicn-light-daemon --log-file /tmp/lite_client.log

networks:
  the-network:
    driver: bridge
    ipam:
     config:
       - subnet: ${TOPOLOGY_1_NODE_IP_NETWORK}
         gateway: ${TOPOLOGY_1_NODE_IP_GATEWAY}