Skip to content
Advertisement

Configure Hazelcast via external yml-file

I´ve a running hzc-yml configuration in classpath – the generated jar file works fine in a docker context. Now I want to load this yml-file externally. I added this startup-property to my DOCKERFILE:

JavaScript

The whole DOCKERFILE looks like:

JavaScript

It seems that the service wants to apply the external yml-file, but I always get this error:

hzc-service | /bin/sh: ./hazelcast.yaml: Permission denied

I applied “chmod 777” to the file with no effect.

Thx

Advertisement

Answer

This looks wrong:

JavaScript

Just remove the backticks and put the filename between quotes:

JavaScript

With the backtick character, you open a subshell in bash, and try to run the hazelcast.yaml in it (which of course doesn’t make sense).

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement