From 34a62a1b90dfbbf267b12569b089e6284d88ad83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Tue, 22 Dec 2020 13:37:44 +0100 Subject: [PATCH] f2 --- README.md | 8 ++++++-- docker-compose.override.sample.yaml | 19 +++++++++++++++++++ docker-compose.yaml | 15 +-------------- 3 files changed, 26 insertions(+), 16 deletions(-) create mode 100644 docker-compose.override.sample.yaml diff --git a/README.md b/README.md index 297fc81888..3299dcc604 100644 --- a/README.md +++ b/README.md @@ -40,8 +40,12 @@ The test (part of the build) requires the 'Liberation Sans' font, which can be d -Then it we run `docker compose up -d` the print will be available on port `8080` and on code modification -The new code will be reloaded. +# Auto-releoad mode + +To be able to quickly test modifications in the print you should: +- Copy the file `docker-compose.override.sample.yaml` to `docker-compose.override.yaml`. +- Run `docker compose up -d`, +The print will be available on port `8080` and on code modification will be built and trigger a restart. # Create new stabilisation branch diff --git a/docker-compose.override.sample.yaml b/docker-compose.override.sample.yaml new file mode 100644 index 0000000000..260ae1d8ba --- /dev/null +++ b/docker-compose.override.sample.yaml @@ -0,0 +1,19 @@ +--- +version: '2.1' + +services: + builder: + image: mapfish_print_builder + volumes: + - ./core:/src/core + command: + - gradle + - --continuous + - :core:classes + + print: + image: mapfish_print_watcher + command: + - /usr/local/tomcat/bin/docker-start-watch + volumes_from: + - builder diff --git a/docker-compose.yaml b/docker-compose.yaml index 77d90980a1..99d7e37474 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -7,21 +7,8 @@ services: volumes: - /tmp/geoserver-data:/mnt/geoserver_datadir - builder: - image: mapfish_print_builder - volumes: - - ./core:/src/core - command: - - gradle - - --continuous - - :core:classes - print: - image: mapfish_print_watcher - command: - - /usr/local/tomcat/bin/docker-start-watch - volumes_from: - - builder + image: mapfish_print_tester volumes: - ./examples/src/test/resources/examples:/usr/local/tomcat/webapps/ROOT/print-apps ports: