Commit a3a42d2e authored by Paweł Wieczorek's avatar Paweł Wieczorek
Browse files

Prevent service recreation on environment changes



By default "docker-compose up" picks up any changes in service
configuration by stopping and recreating the containers. This behaviour
caused recreation of LAVA server and database when worker token was
passed to the dispatcher configuration even though these services are
not affected by this change.

Signed-off-by: Paweł Wieczorek's avatarPaweł Wieczorek <pawiecz@collabora.com>
parent f4401e8e
......@@ -54,7 +54,7 @@ $DOCKER lava-server manage authorize_superuser --username lava
TOKEN=$($DOCKER lava-server manage workers add ci.worker | cut -d ' ' -f 2)
sed s/@@TOKEN@@/$TOKEN/ docker/collabora/lava-env-dispatcher.in > docker/collabora/lava-env-dispatcher
$COMPOSE up --detach lava-dispatcher
$COMPOSE up --no-recreate --detach lava-dispatcher
# Add the device
$DOCKER lava-server manage devices add --device-type qemu --worker ci.worker qtest
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment