wiremock / wiremock-docker

Wiremock Docker image

Home Page:https://hub.docker.com/r/wiremock/wiremock

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve image extendability

lsouchard opened this issue · comments

Hello!

I just found your docker image and I like it a lot. However, I need to integrate it into a CI where I won't be able to mount volumes with my stubs and extensions for what I want to do. So I plan on extending your image. If that poses no issue for the stubs, it does for extensions as I can add them to the image but not add the "--extensions" to the existing command or entrypoint without overwriting them.

Could it be possible to add an option of providing args to the existing command and entrypoint when extending your image? Maybe simply by adding an environment variable WIREMOCK_ARGS (like JAVA_OPTS) to append at the end of the command and entrypoint?

My mistake, wiremock-docker/samples/random/Dockerfile shows that extending with CMD will do the trick even though it will not allow extending the default entrypoint.