aboutsummaryrefslogtreecommitdiffstats
path: root/tests/1-node.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/1-node.yml')
-rw-r--r--tests/1-node.yml16
1 files changed, 11 insertions, 5 deletions
diff --git a/tests/1-node.yml b/tests/1-node.yml
index 859d1b838..9e496d7b8 100644
--- a/tests/1-node.yml
+++ b/tests/1-node.yml
@@ -7,11 +7,13 @@ services:
args:
- BASE_IMAGE
image: hicn-base
- privileged: true
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:
- |
@@ -19,8 +21,12 @@ services:
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
+ sudo hicn-light-daemon --log-file /tmp/lite_client.log
- tail -f /dev/null
+networks:
+ the-network:
+ driver: bridge
+ ipam:
+ config:
+ - subnet: ${TOPOLOGY_1_NODE_IP_NETWORK}
+ gateway: ${TOPOLOGY_1_NODE_IP_GATEWAY}