Skip to content

Commit

Permalink
f2
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Dec 22, 2020
1 parent 2f5d6c4 commit 34a62a1
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 16 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,12 @@ The test (part of the build) requires the 'Liberation Sans' font, which can be d

</div>

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

Expand Down
19 changes: 19 additions & 0 deletions docker-compose.override.sample.yaml
Original file line number Diff line number Diff line change
@@ -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
15 changes: 1 addition & 14 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 34a62a1

Please sign in to comment.