https://linen.dev logo
#general
Title
# general
m

Marty Pitt

08/23/2023, 12:58 PM
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

Oleg Nenashev

08/23/2023, 1:40 PM
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

Marty Pitt

08/23/2023, 1:40 PM
Cool, thx
o

Oleg Nenashev

08/23/2023, 1:42 PM
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

Marty Pitt

08/23/2023, 1:43 PM
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

Oleg Nenashev

08/31/2023, 8:46 AM
FTR I'm pretty sure it is a bug https://github.com/wiremock/wiremock/issues/2340