From 3e0ed7a2bb5f52ba54fdc1a6fbbe258f42397fbe Mon Sep 17 00:00:00 2001 From: Corentin LABBE Date: Mon, 2 Jul 2018 15:03:50 +0200 Subject: Add device-types and tokens at startup This patch remove the use of setup.sh during build. So setup.sh is now ran during startup. Since setup.sh could ran multiple times (start -> stop -> start) against the same database, we need to handle already existing objects (user, devices,...) So all "add objects" are done only after a check that this object is not already present. --- lava-master/Dockerfile | 1 - 1 file changed, 1 deletion(-) (limited to 'lava-master/Dockerfile') diff --git a/lava-master/Dockerfile b/lava-master/Dockerfile index 4407f0b..3e64627 100644 --- a/lava-master/Dockerfile +++ b/lava-master/Dockerfile @@ -77,7 +77,6 @@ COPY device-types/ /root/device-types/ COPY users/ /root/lava-users/ COPY tokens/ /root/lava-callback-tokens/ COPY scripts/setup.sh / -RUN /start.sh && /setup.sh && /stop.sh #uncomment if you want to use squid # warning the address used must be network accessible by all slave -- cgit 1.2.3-korg