Skip to content

How initialize with some mappings or templates? #44

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ebuildy opened this issue Aug 4, 2015 · 3 comments
Closed

How initialize with some mappings or templates? #44

ebuildy opened this issue Aug 4, 2015 · 3 comments

Comments

@ebuildy
Copy link
Contributor

ebuildy commented Aug 4, 2015

Hello,

I would like to be able to set some templates and mapping if they are not present yet in ES data. What the best way to achieve it?

(To me, the difficult part is to wait that elasticsearch has been started & ready).

Thanks you,

@yosifkit
Copy link
Member

The way we do it in the mysql image is to repeatedly try connecting with a timeout (entrypoint). It should be a similar setup to try until elasticsearch is available.

@santiagopoli
Copy link

I have the same question. I need to initialize the mappings, what would be the best approach to achieve this?

@tianon
Copy link
Member

tianon commented Oct 4, 2017

This image is officially deprecated in favor of upstream's images (see https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html).

For more information, please see #160, docker-library/docs#842, and docker-library/docs#945.

This image has been deprecated in favor of the official elasticsearch image provided and maintained by elastic.co. The upstream images are available to pull via docker.elastic.co/elasticsearch/elasticsearch:[version] like 5.4.2. The images found here will receive no further updates once the 5.6.0 release is available upstream. Please adjust your usage accordingly.

Elastic provides open-source support for Elasticsearch via the elastic/elasticsearch GitHub repository and the Docker image via the elastic/elasticsearch-docker GitHub repository, as well as community support via its forums.

Thanks!

@tianon tianon closed this as completed Oct 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants