wiremock / wiremock-docker

Wiremock Docker image
https://hub.docker.com/r/wiremock/wiremock
MIT License
211 stars 99 forks source link

JAVA_OPTS global response templating not working #21

Closed andrew-macdonald closed 4 years ago

andrew-macdonald commented 4 years ago

When setting JAVA_OPTS in the Dockerfile, variables are not being picked up. I assume the name of the variable is incorrect but cannot see anywhere what this command line argument translates to.

I have tried a number of variations but no luck. It is fine when using docker-compose as can just add a command parameter but using terraform, this is not the same luxury.

Dockerfile for context:

FROM rodolpheche/wiremock
COPY mappings/mappings.json mappings/mappings.json
ENV JAVA_OPTS="-D-globalResponseTemplating"
andrew-macdonald commented 4 years ago

Found a different way to pass the command line arguments in in the terraform definition file.