Sign inSign up

ykyuen/docker-elasticsearch

By ykyuen

•Updated over 8 years ago

This repository is a clone from pires/docker-elasticsearch:2.4.1 but with a newer base image.

Image
0

112

ykyuen/docker-elasticsearch repository overview

⁠About this repo

This repository is a clone from pires/docker-elasticsearch:2.4.1⁠ but with a different base image which trying to fix the startup issue as mentioned in Seldom exceptions with Alpine and multiple container layers⁠.

In order to replace the alpine base image, AtzeDeVries/kubernetes-elasticsearch⁠ is also referenced.


⁠docker-elasticsearch

Very lean (140MB) and highly configurable Elasticsearch Docker image.

Docker Repository on Quay.io

⁠Current software

⁠Run

⁠Attention

Ready to use node for cluster elasticsearch-default:

docker run --name elasticsearch \
	--detach \
	--privileged \
	--volume /path/to/data_folder:/data \
        quay.io/pires/docker-elasticsearch:2.4.1

Ready to use node for cluster myclustername:

docker run --name elasticsearch \
	--detach \
	--privileged \
	--volume /path/to/data_folder:/data \
	-e CLUSTER_NAME=myclustername \
        quay.io/pires/docker-elasticsearch:2.4.1

Ready to use node for cluster elasticsearch-default, with 8GB heap allocated to Elasticsearch:

docker run --name elasticsearch \
	--detach \
	--privileged \
	--volume /path/to/data_folder:/data \
	-e ES_HEAP_SIZE=8G \
        quay.io/pires/docker-elasticsearch:2.4.1

Master-only node for cluster elasticsearch-default:

docker run --name elasticsearch \
	--detach \
	--privileged \
	--volume /path/to/data_folder:/data \
	-e NODE_DATA=false \
	-e HTTP_ENABLE=false \
        quay.io/pires/docker-elasticsearch:2.4.1

Data-only node for cluster elasticsearch-default:

docker run --name elasticsearch \
	--detach --volume /path/to/data_folder:/data \
	--privileged \
	-e NODE_MASTER=false \
	-e HTTP_ENABLE=false \
        quay.io/pires/docker-elasticsearch:2.4.1

Client-only node for cluster elasticsearch-default:

docker run --name elasticsearch \
	--detach \
	--privileged \
	--volume /path/to/data_folder:/data \
	-e NODE_MASTER=false \
	-e NODE_DATA=false \
        quay.io/pires/docker-elasticsearch:2.4.1

I also make available special images and instructions for AWS EC2⁠ and Kubernetes⁠.

⁠Environment variables

This image can be configured by means of environment variables, that one can set on a Deployment.

Tag summary

Content type

Image

Digest

Size

214.6 MB

Last updated

over 8 years ago

docker pull ykyuen/docker-elasticsearch:2.4.1