-
Notifications
You must be signed in to change notification settings - Fork 263
docker image for elasticsearch #39
base: master
Are you sure you want to change the base?
Changes from 5 commits
afc6ff8
959e808
d47eb5c
7f334ec
d0a5229
8c0df47
4fd9705
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -57,7 +57,12 @@ $ git clone https://github.com/IBM/elasticsearch-spark-recommender.git | |
|
|
||
| ### 2. Set up Elasticsearch | ||
|
|
||
| This Code Pattern currently depends on Elasticsearch 5.3.0. Go to the [downloads page](https://www.elastic.co/downloads/past-releases/elasticsearch-5-3-0) and download the appropriate package for your system. | ||
| 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) | ||
|
|
||
| Go to the [downloads page](https://www.elastic.co/downloads/past-releases/elasticsearch-5-3-0) and download the appropriate package for your system. | ||
|
|
||
| For example on Linux / Mac you can download the [TAR archive](https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.3.0.tar.gz) and unzip it using the commands: | ||
|
|
||
|
|
@@ -94,7 +99,7 @@ $ ./bin/elasticsearch | |
| [2017-09-08T15:58:20,676][INFO ][o.e.n.Node ] initialized | ||
| ... | ||
| ``` | ||
|
|
||
| #### 2.2 Elasticsearch python install | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "Install the Elasticsearch Python client" |
||
| Finally, you will need to install the Elasticsearch Python client. You can do this by running the following command (you should do this in a separate terminal window to the one running Elasticsearch): | ||
|
|
||
| ``` | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| FROM docker.elastic.co/elasticsearch/elasticsearch:5.3.0 | ||
| MAINTAINER ApertusIT <[email protected]> | ||
|
|
||
| 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 \ | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this required? Is it a licensing issue? |
||
| mv /usr/share/elasticsearch/plugins/x-pack /usr/share/elasticsearch/plugins/.removing-x-pack && \ | ||
| mv /usr/share/elasticsearch/plugins/.removing-x-pack /usr/share/elasticsearch/plugins/x-pack && \ | ||
| /usr/share/elasticsearch/bin/elasticsearch-plugin remove x-pack | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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. | ||
|
||
| 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``` | ||
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"use the prepared"