From 5d1654506ae782d6b7d4467076555e70656f5c85 Mon Sep 17 00:00:00 2001 From: Corentin LABBE Date: Wed, 25 Oct 2017 12:22:30 +0200 Subject: Introduce docker-compose This commit introduce two compoments: lavalab-en.py which generate: - device files - conmux config files - users files - tokens files - udev rules for host - final docker-compose.yml file Except of docker-compose.yml, all other files are ignored for the moment and will be handled by a following commit. docker-compose: The docker compose permits to building and running easily lava-docker images. It permit also to remove some contraints like knowing the LAVA_SERVER_IP/LAVA_MASTER. --- docker-compose.template | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 docker-compose.template (limited to 'docker-compose.template') diff --git a/docker-compose.template b/docker-compose.template new file mode 100644 index 0000000..dfe82c9 --- /dev/null +++ b/docker-compose.template @@ -0,0 +1,34 @@ +version: '2.0' +services: + lava-master: + hostname: lava-master + restart: always + stdin_open: true + tty: true + build: + context: lava-master + devices: + - "/dev/kvm:/dev/kvm" + ports: + - "10080:80" + - "1022:22" + - "5555:5555" + - "5556:5556" + volumes: +# boot and /lib/modules are for libguestfs + - "/boot:/boot" + - "/lib/modules:/lib/modules" + lava-slave: + hostname: lab-slave-0 + restart: always + build: + context: lava-slave + devices: + environment: + LAVA_MASTER: "lava-master" + ports: + - "69:69/udp" + - "80:80" + - "55980-56000:55980-56000" + links: + - "lava-master" -- cgit 1.2.3-korg