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"
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: