CMD parameters vs ENTRYPOINT parameters
kashifsoofi opened this issue · comments
Dockerfile is setting all the command line arguments to wiremock-net as ENTRYPOINT parameters. This makes it difficult to override the arguments specified.
We can move ReadStaticMappings
and WireMockLogger
as CMD arguments, that would make it easy to override with docker run
and also would make it easier to create custom images based on this by copying over the static mappings.
This will become
ENTRYPOINT ["./wiremock-net", "--Urls", "http://*:80", "--ReadStaticMappings", "false", "--WireMockLogger", "WireMockConsoleLogger"]
following
ENTRYPOINT ["./wiremock-net", "--Urls", "http://*:80"]
CMD ["--ReadStaticMappings", "false", "--WireMockLogger", "WireMockConsoleLogger"]
If happy with the suggestion, I can do a PR with changes.
Thanks
Good suggestion, I didn't know this.
And I think it makes even more sense to just remove the ReadStaticMappings complete, because the default is null / false.
Please make a PR.