diff options
author | Corentin LABBE <clabbe@baylibre.com> | 2018-07-16 14:26:44 +0200 |
---|---|---|
committer | Corentin LABBE <clabbe@baylibre.com> | 2018-07-25 21:48:25 +0200 |
commit | b8f561127a2ba09f3c2e49194d8d63b6960023b2 (patch) | |
tree | e30eb342b60ad9357e6369bc0c9c1f416b4150e9 /lava-master/scripts/start.sh | |
parent | baf680990ecb539cde0a16ef5b32a7321dd4538a (diff) |
Split dockerfile in two images
The process of building LAVA is hard to maintain.
But since we need to be able to go back in time
(or just stay longer with a specific version)
we need a way to keep a LAVA version.
For achieving this, we build a minimal image with just LAVA
and tag it with the version of LAVA inside.
Diffstat (limited to 'lava-master/scripts/start.sh')
-rwxr-xr-x | lava-master/scripts/start.sh | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/lava-master/scripts/start.sh b/lava-master/scripts/start.sh deleted file mode 100755 index c34fe34..0000000 --- a/lava-master/scripts/start.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/bash - -postgres-ready () { - echo "Waiting for lavaserver database to be active" - while (( $(ps -ef | grep -v grep | grep postgres | grep lavaserver | wc -l) == 0 )) - do - echo -n "." - sleep 1 - done - echo - echo "[ ok ] LAVA server ready" -} - -start () { - echo "Starting $1" - if (( $(ps -ef | grep -v grep | grep -v add_device | grep -v dispatcher-config | grep "$1" | wc -l) > 0 )) - then - echo "$1 appears to be running" - else - service "$1" start - fi -} - -#remove lava-pid files incase the image is stored without first stopping the services -rm -f /var/run/lava-*.pid 2> /dev/null - -/etc/init.d/postgresql start - -/setup.sh || exit $? - -start apache2 || exit $? -start lava-logs || exit $? -start lava-master || exit $? -start lava-coordinator || exit $? -start lava-slave || exit $? -start lava-server-gunicorn || exit $? -start tftpd-hpa || exit $? - -postgres-ready -service apache2 reload #added after the website not running a few times on boot |