aboutsummaryrefslogtreecommitdiffstats
path: root/tests/1-node.yml
blob: eb8c19f34cdbe441cdcb6ae410505173c87b2ec7 (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
version: "3"
services:
  client:
    build:
      context: ..
      dockerfile: ${DOCKERFILE}
      args:
        - BASE_IMAGE
    image: hicn-base
    privileged: true
    container_name: forwarder
    working_dir: /workspace
    volumes:
      - ..:/workspace:z
    entrypoint: [/bin/bash, -ex, -c]
    command:
      - |
        if [ -d /workspace/build-dev ]; then
          git config --global --add safe.directory \*
          sudo ninja -C /workspace/build-dev install
        fi

        sudo ip addr add 192.168.1.1/24 dev eth0
        sudo hicn-light-daemon \
          --daemon --log-file /tmp/lite_client.log

        tail -f /dev/null