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

JAVA_OPTS global response templating not working

andrew-macdonald opened this issue · comments

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"

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