wurstmeister / zookeeper-docker

Apache License 2.0
148 stars 177 forks source link

Adding a /opt/zookeeper-latest symlink in Docker file ... #16

Open nmvega opened 5 years ago

nmvega commented 5 years ago

Hello Friends:

In Dockerfile would it be possible to add this:

RUN (cd /opt; ln -s zookeeper-* zookeeper-latest)

In my docker-compose.yml file -- where I start various services including ZooKeeper -- I'm currently hardcoding (by version number) the following volume-map for ZooKeeper data (which I like to specify the location of externally):

volumes:
    - ./data.d/zookeeper.d:/opt/zookeeper-3.4.9/data

However, since the version number can change, a symbolic link would be helpful:

volumes:
   - ./data.d/zookeeper.d:/opt/zookeeper-latest/data

Thank you (and thank you for this project).

wurstmeister commented 5 years ago

Hi,

would you mind creating a PR for that?

Thanks

nmvega commented 5 years ago

Hi...

Sorry for the delay (I'm working on completing a contract). Yes I will make the update and submit the pull request very soon.

Thank you.