Hey folks. qq: When running Wiremock as a standal...
# general
m
Hey folks. qq: When running Wiremock as a standalone docker container, is there a way to get it to reload my mappings / files as I change on the local filesystem? Seems like they're read on startup, so each change requires a restart cycle. Currently using 2.35.0.
o
Hi. There is no such file monitor at the moment. It could be done via extension or by adding a /__admin/reload endpoint. Normally you can restart the container quickly tho, so I'm not sure how much it is a problem
m
Cool, thx
o
By the way, I see the undocumented
__admin/mappings/reset
endpoint in the code. AFAICT it should force the file reload too.
Could you please try it @Marty Pitt? It is not a file monitor but at least could save some time
m
Sure.
HTTP GET to
<http://localhost:8080/__admin/mappings/reset>
resulted in:
Copy code
HTTP ERROR 500 java.lang.IllegalArgumentException: Invalid UUID string: reset
URI:	/__admin/mappings/reset
STATUS:	500
MESSAGE:	java.lang.IllegalArgumentException: Invalid UUID string: reset
SERVLET:	com.github.tomakehurst.wiremock.servlet.WireMockHandlerDispatchingServlet-299266e2
CAUSED BY:	java.lang.IllegalArgumentException: Invalid UUID string: reset
Caused by:
java.lang.IllegalArgumentException: Invalid UUID string: reset
👀 1
But, TBH, restarting is fine.
o
FTR I'm pretty sure it is a bug https://github.com/wiremock/wiremock/issues/2340