Skip to content

This image is the zookeeper base. It comes from rawmind/alpine-jvm8.

Notifications You must be signed in to change notification settings

rawmind0/alpine-zk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alpine-zk

This image is the zookeeper base. It comes from alpine-jvm8.

Build

docker build -t rawmind/alpine-zk:<version> .

Versions

Configuration

This image runs zookeeper with monit. Zookeeper is started with user and group "zookeeper".

Besides, you can customize the configuration in several ways:

Default Configuration

zookeeper is installed with the default configuration and some parameters can be overrided with env variables:

  • ZK_DATA_DIR="/opt/zk/data"
  • ZK_INIT_LIMIT="10"
  • ZK_MAX_CLIENT_CXNS="500"
  • ZK_SYNC_LIMIT="5"
  • ZK_TICK_TIME="2000"
  • ZK_SERVER="127.0.0.1"

Custom Configuration

Zookeeper is installed under /opt/zk and make use of /opt/zk/conf/myid and /opt/zk/conf/zoo.cfg.

You can edit this files in order customize configuration

You could also include FROM rawmind/alpine-zk at the top of your Dockerfile, and add your custom config.

Rancher

If you are running it in rancher, you could run rancher-zk as a sidekick to get dynamic configuration.

k8s

If you are running it in k8s, you could run k8s-zk at the same pod to get dynamic configuration.

Example

See rancher-example, rancher catalog package that runs zookeeper in a cattle environment with dynamic configuration.

See k8s-example, rancher catalog package that runs zookeeper in a k8s environment with dynamic configuration.

About

This image is the zookeeper base. It comes from rawmind/alpine-jvm8.

Resources

Stars

Watchers

Forks

Packages

No packages published