This message was deleted.
# general
s
This message was deleted.
d
You shouldn't register the parts of this extension individually - you should register the whole extension. The extension uses the
ServiceLoader
extension, thus it should be auto detected when it's on the classpath (which should be the case if I interpret your cmdline correctly). Can you start wiremock without
--extensions ...
and with
--verbose
? The detected extensions should be printed out. see also: https://github.com/wiremock/wiremock-state-extension#docker
v
@Dirk Bolte ok. but i could not find the extension listed after start:
i do not see the jar in the location inside docker container
d
The cmdline and directory structure looks ok. As you have a snapshot jar I assume that you built the extension yourself. Can you try the following commands in the upmost directory of the repository checkout?
Copy code
./gradlew clean
./gradlew shadowjar
run -it --rm -p 8080:8080 --name wiremock -v $PWD/build/libs:/var/wiremock/extensions wiremock/wiremock -- --global-response-templating --verbose
Locally, I see the extension registered properly:
v
many thanks. let me try