Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

docker image for elasticsearch #39

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

lazloz92
Copy link

@lazloz92 lazloz92 commented May 9, 2018

I created a Dockerfile that install the vector plugin to elasticserch and create an image.

Copy link

@stevemar stevemar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @lazloz92 -- thanks for contributing to this project. I made a few minor suggestions. I really like the idea of running elasticsearch in a container! If you're unable to address the comments, please let me know and I'll address them in another PR.

cc'ing @MLnick -- his review is definitely needed here

@@ -0,0 +1,5 @@
#### 2.0 Start Elasticsearch with docker
If you familier with docker you can use the elasticsearch docker image with installed elasticsearch-vector-scoring plugin.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#### 2.0 Start Elasticsearch with docker
If you familier with docker you can use the elasticsearch docker image with installed elasticsearch-vector-scoring plugin.
Just build the image with
```docker build -t es-with-vector-scoring .```
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think it'll be helpful to show the full output of both commands and state which directory to run them from

If you familier with docker you can use the elasticsearch docker image with installed elasticsearch-vector-scoring plugin.
Just build the image with
```docker build -t es-with-vector-scoring .```
and start the image with ```docker run -p 9200:9200 -p 9300:9300 es-with-vector-scoring```
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lastly, tell the user where to go back to, something like "Now that you've got Elasticsearch up and running, you can go back to step 3."

@lazloz92
Copy link
Author

lazloz92 commented May 9, 2018

@stevemart thanks your help I modified the README based on your suggestions. Please let me know if I missed something.

@stevemar stevemar requested a review from MLnick May 9, 2018 19:28
Copy link
Contributor

@MLnick MLnick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, nice idea to run ES in Docker. I left a few minor comments.

FROM docker.elastic.co/elasticsearch/elasticsearch:5.3.0

RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install https://github.com/MLnick/elasticsearch-vector-scoring/releases/download/v5.3.0/elasticsearch-vector-scoring-5.3.0.zip
RUN \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this required? Is it a licensing issue?

@@ -0,0 +1,29 @@
#### 2.0 Start Elasticsearch with docker
If you familier with docker you can use the [elasticsearch docker image](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html) with installed elasticsearch-vector-scoring plugin.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

familier -> familiar

@@ -0,0 +1,29 @@
#### 2.0 Start Elasticsearch with docker
If you familier with docker you can use the [elasticsearch docker image](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html) with installed elasticsearch-vector-scoring plugin.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"... with the elasticsearch-vector-scoring plugin installed"

@@ -0,0 +1,29 @@
#### 2.0 Start Elasticsearch with docker
If you familier with docker you can use the [elasticsearch docker image](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html) with installed elasticsearch-vector-scoring plugin.
Just go to docker/elasticsearch/ directory where you can find the ```Dockerfile``` and build the image with
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps use single backticks for Dockerfile?

```


If builds ended you can start the image with ```docker run -p 9200:9200 -p 9300:9300 es-with-vector-scoring``` command.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Once the image has been built, run the image using the following command:"

...
```

Now that you've got Elasticsearch up and running, you can go back to step 2.2.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Provide a link back to the relevant section of the main README

@@ -94,7 +99,7 @@ $ ./bin/elasticsearch
[2017-09-08T15:58:20,676][INFO ][o.e.n.Node ] initialized
...
```

#### 2.2 Elasticsearch python install
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Install the Elasticsearch Python client"

This Code Pattern currently depends on Elasticsearch 5.3.0.

#### 2.1 Install Elasticsearch on your machine
(You can skip this if you want to use prepared docker image see: ./docker/elasticsearch/README.md)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"use the prepared"



If builds ended you can start the image with ```docker run -p 9200:9200 -p 9300:9300 es-with-vector-scoring``` command.
Check that the `elasticsearch-vector-scoring-plugin` is successfully loaded and elasticsearch is started:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps put "Elasticsearch is started" first, i.e. "Check that Elasticsearch has started and the ... "

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants