Public | Automated Build

Last pushed: a year ago
Short Description
This is a basic stand alone etcd
Full Description

alpine-etcd

This image is the etcd base. It comes from alpine-monit.

Build

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

Versions

Configuration

This image runs ectd with monit. Etcd is started with user and group "etcd".

Besides, you can customize the configuration in several ways:

Default Configuration

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

  • ETCD_ADVERTISE_CLIENT_URLS=${ETCD_ADVERTISE_CLIENT_URLS:-"http://localhost:2379"}
  • ETCD_DATA_DIR=${ETCD_DATA_DIR:-${SERVICE_HOME}"/data"}
  • ETCD_INITIAL_ADVERTISE_PEER_URLS=${ETCD_INITIAL_ADVERTISE_PEER_URLS:-http://localhost:2380}
  • ETCD_INITIAL_CLUSTER=${ETCD_INITIAL_CLUSTER:-"local=http://localhost:2380"}
  • ETCD_INITIAL_CLUSTER_STATE=${ETCD_INITIAL_CLUSTER_STATE:-"new"}
  • ETCD_INITIAL_CLUSTER_TOKEN=${ETCD_INITIAL_CLUSTER_TOKEN:-"dev-cluster"}
  • ETCD_NAME=${ETCD_NAME:-"local"}
  • ETCD_LISTEN_PEER_URLS=${ETCD_LISTEN_PEER_URLS:-"http://0.0.0.0:2380"}
  • ETCD_LISTEN_CLIENT_URLS=${ETCD_LISTEN_CLIENT_URLS:-"http://0.0.0.0:2379"}

Custom Configuration

Etcd is installed under /opt/etcd and make use of /opt/etcd/bin/etcd-source.sh to generate env variables.

You can edit this files in order customize configuration

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

Rancher

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

Example

See rancher-example, that run zookeeper in a rancher system with dynamic configuration.

Docker Pull Command
Owner
rawmind
Source Repository