Hi Team, I've been trying to pass this option `--...
# general
Hi Team, I've been trying to pass this option
to wiremock using env variable in pom.xml. But still I'm not able to get it working, my wiremock doesnt replace the
in mocked response with
value. I'm not sure what I'm missing. Wiremock image is running at
port inside the docker container which is mapped to
in my machine. It is able to receive the request but this option
isnt working. Can someone please help me if I'm setting this incorrectly ? Have tried everything but no luck.
Copy code
                                        --port 8080
                                        --max-request-journal-entries 1000
And here is how, I'm starting the docker containers.
Copy code
mvn -X docker:build docker:start -pl container-tests -DSOURCE_DIRECTORY=`pwd` -DskipTests -Ddocker.follow \
  -Dsqs.host.port=9324 \
  -Dwiremock.host.port=8181 \
  -Dims.port=8080 \
Hi. Which version of WireMock do you use?
Asking, because https://github.com/wiremock/wiremock/pull/2238 changed the implementation of the templating engine, and some behavior might have changed. So triage is needed. FYI @Tom P.S: it's not often to see the Maven Docker Plugin in the wild. Is it the fabric8 one? If you triage, one of the first steps would be to ensure that the parameter is actually propagated
Thanks oleg for kind response, I'm using wiremock
I will go through the given links. Thanks.
Hi @Oleg Nenashev, I also found that my wiremock always run at port
inside docker. And I see that my command arguments are present in wiremock tab in docker app. (Please see attached image). But still none of those arguments are honored. For eg:
doesnt enable verbose logging. It still says verbose as
in output.
Never mind, I just changed
and it worked 🙂. Thanks.
Copy code
<cmd>--port 8181 --verbose --global-response-templating</cmd>
👍 1
Did you find this environment variable somewhere in the docs?
If you would be interested to write a short article about running WireMock from the Maven Docker plugin (use-cases and how-to's), it would be awesome too!
👍 1