Sign inSign up

acweblabs/elasticsearch-dev

By acweblabs

•Updated almost 4 years ago

Image
0

4.5K

acweblabs/elasticsearch-dev repository overview

⁠acweblabs/elasticsearch-dev

Standalone elasticsearch docker image that can be used for development or within Bitbucket pipelines. Based on the official Elasticsearch docker image⁠.

⁠Why?

  • Bitbucket pipelines does not allow you to use dot notation in environmental variables
  • Consistent usage of Elasticsearch image between different (dev-test-...) environments

⁠Test and build

docker build -t acweblabs/elasticsearch-dev -t acweblabs/elasticsearch-dev:<matching-official-elasticsearch-version-in-x.y.z-format> .

for example: docker build -t acweblabs/elasticsearch-dev -t acweblabs/elasticsearch-dev:7.7.1 .

⁠Push all tags to Docker hub

docker push acweblabs/elasticsearch-dev

⁠Run the container locally after building (without persistent volume)

docker run --rm --name elasticsearch -d -i -t -P acweblabs/elasticsearch-dev:latest

⁠Run the container locally after building (with persistent volume)

docker run --rm --name elasticsearch -v elasticsearch_dev_data:/var/lib/elasticsearch -d -i -t acweblabs/elasticsearch-dev:latest

Port 9200 and 9300 should be exposed

Tag summary

Content type

Image

Digest

sha256:41c054401…

Size

398.8 MB

Last updated

almost 4 years ago

docker pull acweblabs/elasticsearch-dev