Mercurial > dive4elements > river
comparison docker/README @ 9684:537fe44f2792 3.2.x
Add basic Docker setup for development
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 30 Jul 2020 19:00:44 +0200 |
parents | |
children | 33303817ed37 |
comparison
equal
deleted
inserted
replaced
9681:8e5a8430b89c | 9684:537fe44f2792 |
---|---|
1 Configure: | |
2 _ Change 'localhost' to 'd4eriver-db' in artifacts/doc/conf/backend-db.xml | |
3 and artifacts/doc/conf/seddb-db.xml | |
4 _ Change 'localhost' to '0.0.0.0' in artifacts/doc/conf/rest-server.xml | |
5 _ Change 'localhost' to 'd4eriver-artifacts' in the server-url parameter in | |
6 gwt-client/src/main/webapp/WEB-INF/web.xml | |
7 | |
8 | |
9 Build: | |
10 | |
11 $ docker build -f docker/Dockerfile.db -t d4e/river_db . | |
12 $ docker build -f docker/Dockerfile.artifacts -t d4e/river_artifacts . | |
13 $ docker build -f docker/Dockerfile.gwt-client -t d4e/river_client . | |
14 | |
15 | |
16 Run: | |
17 | |
18 $ docker network create d4e_river | |
19 $ docker run --name d4eriver-db --network d4e_river \ | |
20 -dp 2345:5432 d4e/river_db:latest | |
21 $ docker run --name d4eriver-artifacts --network d4e_river \ | |
22 -dp 8181:8181 d4e/river_artifacts | |
23 $ docker run --name d4eriver-client --network d4e_river \ | |
24 -v $PWD:/opt/d4e/river -dp 8080:8080 d4e/river_client | |
25 | |
26 | |
27 TODO: | |
28 _ Avoid having to change configuration manually | |
29 _ Allow running artifact server with `-v $PWD:/opt/d4e/river' | |
30 (currently this leads to missing h2 databases) | |
31 _ Let all components log to stdout to enable useful usage of `docker logs' | |
32 _ Something better than setting framework and http-client to a branch | |
33 explicitly in the Dockerfiles |