hazelcast / hazelcast-docker-samples

4 stars 6 forks source link

When trying to run the image it complains about ./mc-conf.sh file missing #24

Closed rabac closed 3 years ago

rabac commented 3 years ago

bash: line 1: ./mc-conf.sh: No such file or directory

erosb commented 3 years ago

Hello @rabac ,

thank you for opening this issue. Which docker image do you refer to? I tried out the following and MC started up successfully:

cd management-center-built-in-user
docker build -t mc-built-in-user .
docker run -p 8080:8080 mc-built-in-user 
SirSkaro commented 3 years ago

I had the same problem.

> docker run -e MC_INIT_CMD="./mc-conf.sh cluster add -H=/data -ma <my-local-ip>:5701 -cn dev" -p 8078:8080 hazelcast/management-center:latest
Container support enabled. Using automatic heap sizing. JVM will use up to 80% of the memory limit of the container.
Executing command specified by MC_INIT_CMD for container initialization.
./bin/mc-start.sh: line 37: ./mc-conf.sh: No such file or directory

I changed the MC_INIT_CMD to ./bin/mc-conf.sh cluster add -H=/data -ma 192.168.0.1:5701 -cn dev and it executed correctly.

erosb commented 3 years ago

Hello @SirSkaro , thank you for submitting a reproducer. Indeed the correct path of the script is ./bin/mc-conf.sh. We will fix it in the documentation.