You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version: Wiremock docker container: wiremock/wiremock:latest-alpine (v2.32)
How starting:
Running wiremock in K8S to act as our service virtualization platform. Architecture is:
Custom Proxy as single endpoint to calling service. This proxy forwards to individual wiremock instances. each responsible for virtualizing a specific remote service (we cannot have one wiremock responsible for 2 remote services due to #1783).
We run this within a single K8S service/pod - our custom proxy container and 2 wiremock containers. Since it is in a single pod each container needs it's own port - we cannot use 8080 for both wiremock containers as they will conflict.
We run one wiremock container on port 8080 and wish to run the other on port 8081 (or anything else really, doesn't matter).
We pass an Args to the second wiremock (--port 8081). Container fails to start with
Exception in thread "main" joptsimple.UnrecognizedOptionException: port 8081 is not a recognized option
at joptsimple.OptionException.unrecognizedOption(OptionException.java:108)
at joptsimple.OptionParser.handleLongOptionToken(OptionParser.java:510)
at joptsimple.OptionParserState$2.handleArgument(OptionParserState.java:56)
at joptsimple.OptionParser.parse(OptionParser.java:396)
at com.github.tomakehurst.wiremock.standalone.CommandLineOptions.<init>(CommandLineOptions.java:342)
at com.github.tomakehurst.wiremock.standalone.WireMockServerRunner.run(WireMockServerRunner.java:49)
at com.github.tomakehurst.wiremock.standalone.WireMockServerRunner.main(WireMockServerRunner.java:133)
Somehow it looks like port is not being picked up correctly by the docker container though this works fine when running as a plain docker container.
Version: Wiremock docker container: wiremock/wiremock:latest-alpine (v2.32)
How starting:
Running wiremock in K8S to act as our service virtualization platform. Architecture is:
Custom Proxy as single endpoint to calling service. This proxy forwards to individual wiremock instances. each responsible for virtualizing a specific remote service (we cannot have one wiremock responsible for 2 remote services due to #1783).
We run this within a single K8S service/pod - our custom proxy container and 2 wiremock containers. Since it is in a single pod each container needs it's own port - we cannot use 8080 for both wiremock containers as they will conflict.
We run one wiremock container on port 8080 and wish to run the other on port 8081 (or anything else really, doesn't matter).
We pass an Args to the second wiremock (--port 8081). Container fails to start with
Somehow it looks like port is not being picked up correctly by the docker container though this works fine when running as a plain docker container.
examples:
Works fine:
fails:
In K8S it's my understanding that the "args" are passed to the ENTRYPOINT in the underlying docker container.
Alternative ARGS (e.g. --verbose) appear to work fine so it seems that "port" specifically has an issue somehow
The text was updated successfully, but these errors were encountered: