comparison docker/README.md @ 596:6d7c0dbf9d21

Fix running client container with clean checkout in volume The vue CLI Service needs to be installed locally into the project in order to be able to run 'yarn serve'. Use make for dependency installation because the makefile will get updated whenever the process changes. In passing: docs and more robust sources.list adaptation
author Tom Gottfried <tom@intevation.de>
date Fri, 07 Sep 2018 14:43:15 +0200
parents 8f075ae6cf33
children 86725b39b2d2
comparison
equal deleted inserted replaced
595:6c3527ddc200 596:6d7c0dbf9d21
79 docker run --name gemma_backend -v $PWD:/opt/gemma -d -p 8200:8000 \ 79 docker run --name gemma_backend -v $PWD:/opt/gemma -d -p 8200:8000 \
80 --network gemma gemma_backend 80 --network gemma gemma_backend
81 ``` 81 ```
82 Use `--network-alias gemma_backend` if you give your container 82 Use `--network-alias gemma_backend` if you give your container
83 a different name. 83 a different name.
84
85 ## SPA setup
86
87 - Build Dockerfile with e.g.:
88 ```
89 docker build -t gemma_spa -f docker/Dockerfile.spa .
90 ```
91
92 - Get a running instance with e.g.:
93 ```
94 docker run --name gemma_spa -v $PWD/client:/opt/gemma_spa -d -p 8290:8080 \
95 --network gemma gemma_spa
96 ```
97
98 Now you should be able to use the application in your browser by going to
99 `http://HOST:8290`, with HOST being the hostname of your docker host.