Fixes Building and Deploying Containers 17/68217/1
authorParker Berberian <pberberian@iol.unh.edu>
Wed, 10 Jul 2019 18:55:44 +0000 (14:55 -0400)
committerParker Berberian <pberberian@iol.unh.edu>
Wed, 10 Jul 2019 18:55:44 +0000 (14:55 -0400)
By not mounting the local directory in the container,
we avoid the problem of the static files being
overwritten.

This change forces you to run `make build; make dev-up`
for *every* change, even templates.

Change-Id: I9ba3d5711dab7aa86773fbf392fca9c92f042702
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
docker-compose.override-dev.yml

index e1e1632..0087c23 100644 (file)
@@ -12,14 +12,10 @@ services:
     web:
         image: opnfv/pharos-tools-laas-dashboard:dev
         build:
-           context: .
-           dockerfile: web/Dockerfile
-        volumes:
-            - ./src:/pharos_dashboard
+            context: .
+            dockerfile: web/Dockerfile
     worker:
         image: opnfv/pharos-tools-laas-celery:dev
         build:
-           context: .
-           dockerfile: worker/Dockerfile
-        volumes:
-            - ./src:/pharos_dashboard
+            context: .
+            dockerfile: worker/Dockerfile