Skip to content

Commit d24f6a6

Browse files
authored
Merge pull request circleci#486 from circleci/li3n3-update-elasticsearch
updating elasticsearch download links & version
2 parents 29949df + b9579e7 commit d24f6a6

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

jekyll/_docs/installing-elasticsearch.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,41 +4,41 @@ title: Install a custom version of Elasticsearch
44
description: Installing a custom version of Elasticsearch
55
---
66

7-
To enable Elasticsearch, add the following to your circle.yml:
7+
To enable Elasticsearch, add the following to your `circle.yml`:
88

99
```
1010
machine:
1111
services:
1212
- elasticsearch
1313
```
1414

15-
The default version of elasticsearch is {{ site.data.precise.versions.elasticsearch }}.
16-
If you need a custom version, you can download and start it from your build. To install 1.0.1, add the following to your circle.yml:
15+
The default version of Elasticsearch is {{ site.data.trusty.versions.elasticsearch }}.
16+
If you need a custom version, you can download and start it from your build. To install 2.4.3, add the following to your `circle.yml`:
1717

1818
```
1919
dependencies:
2020
post:
21-
- wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.0.1.tar.gz
22-
- tar -xvf elasticsearch-1.0.1.tar.gz
23-
- elasticsearch-1.0.1/bin/elasticsearch: {background: true}
21+
- wget https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.4.3/elasticsearch-2.4.3.tar.gz
22+
- tar -xvf elasticsearch-2.4.3.tar.gz
23+
- elasticsearch-2.4.3/bin/elasticsearch: {background: true}
2424
# Make sure that Elasticsearch is up before running tests:
2525
- sleep 10 && wget --waitretry=5 --retry-connrefused -v http://127.0.0.1:9200/
2626
```
2727

2828
<span class='label label-info'>Note:</span>
29-
remember to remove elasticsearch from machine.services if you install it manually.
29+
remember to remove elasticsearch from [`machine: services:`]({{site.baseurl}}/configuration/#services) if you install it manually.
3030

3131
## Install an Elasticsearch plugin
3232

33-
It's easy to install a plugin from a url, just add a command to install the plugin before you start elasticsearch:
33+
It's simple to install a plugin from a URL! Just add a command to install the plugin before you start Elasticsearch:
3434

3535
```
3636
dependencies:
3737
post:
38-
- wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.0.1.tar.gz
39-
- tar -xvf elasticsearch-1.0.1.tar.gz
40-
- elasticsearch-1.0.1/bin/plugin --url https://example.com/plugin.zip --install example-plugin
41-
- elasticsearch-1.0.1/bin/elasticsearch: {background: true}
38+
- wget https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.4.3/elasticsearch-2.4.3.tar.gz
39+
- tar -xvf elasticsearch-2.4.3.tar.gz
40+
- elasticsearch-2.4.3/bin/plugin --url https://example.com/plugin.zip --install example-plugin
41+
- elasticsearch-2.4.3/bin/elasticsearch: {background: true}
4242
- sleep 10 && wget --waitretry=5 --retry-connrefused -v http://127.0.0.1:9200/
4343
```
4444

@@ -50,14 +50,14 @@ You can add arbitrary directories to the cache, allowing you to avoid the overhe
5050

5151
Tell CircleCI to save a cached copy using the
5252
[`cache_directories` settings in your `circle.yml` file](/docs/configuration/#cache-directories).
53-
Then check for the directory before you download elasticsearch:
53+
Then check for the directory before you download Elasticsearch:
5454

5555
```
5656
dependencies:
5757
cache_directories:
58-
- elasticsearch-1.0.1 # relative to the build directory
58+
- elasticsearch-2.4.3 # relative to the build directory
5959
post:
60-
- if [[ ! -e elasticsearch-1.0.1 ]]; then wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.0.1.tar.gz && tar -xvf elasticsearch-1.0.1.tar.gz; fi
61-
- elasticsearch-1.0.1/bin/elasticsearch: {background: true}
60+
- if [[ ! -e elasticsearch-2.4.3 ]]; then wget https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.4.3/elasticsearch-2.4.3.tar.gz && tar -xvf elasticsearch-2.4.3.tar.gz; fi
61+
- elasticsearch-2.4.3/bin/elasticsearch: {background: true}
6262
- sleep 10 && wget --waitretry=5 --retry-connrefused -v http://127.0.0.1:9200/
6363
```

0 commit comments

Comments
 (0)