Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b22be823
Commit
b22be823
authored
Apr 25, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support more elasticsearch versions
parent
f9e833c4
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
5 deletions
+9
-5
.gitlab-ci.yml
.gitlab-ci.yml
+2
-2
changelogs/unreleased-ee/2253-support-more-es-versions.yml
changelogs/unreleased-ee/2253-support-more-es-versions.yml
+4
-0
doc/integration/elasticsearch.md
doc/integration/elasticsearch.md
+1
-1
lib/tasks/gitlab/check.rake
lib/tasks/gitlab/check.rake
+2
-2
No files found.
.gitlab-ci.yml
View file @
b22be823
...
...
@@ -55,13 +55,13 @@ stages:
services
:
-
postgres:latest
-
redis:alpine
-
elasticsearch:5.
1
-
elasticsearch:5.
3
.use-mysql
:
&use-mysql
services
:
-
mysql:latest
-
redis:alpine
-
elasticsearch:5.
1
-
elasticsearch:5.
3
.only-master-and-ee-or-mysql
:
&only-master-and-ee-or-mysql
only
:
...
...
changelogs/unreleased-ee/2253-support-more-es-versions.yml
0 → 100644
View file @
b22be823
---
title
:
Support more elasticsearch versions
merge_request
:
1716
author
:
doc/integration/elasticsearch.md
View file @
b22be823
...
...
@@ -33,7 +33,7 @@ service.
| GitLab version | Elasticsearch version |
| -------------- | --------------------- |
| GitLab Enterprise Edition 8.4 - 8.17 | Elasticsearch 2.4 with
[
Delete By Query Plugin
](
https://www.elastic.co/guide/en/elasticsearch/plugins/2.4/plugins-delete-by-query.html
)
installed |
| GitLab Enterprise Edition 9.0+ | Elasticsearch 5.1 |
| GitLab Enterprise Edition 9.0+ | Elasticsearch 5.1
- 5.3
|
## Install Elasticsearch
...
...
lib/tasks/gitlab/check.rake
View file @
b22be823
...
...
@@ -1078,11 +1078,11 @@ namespace :gitlab do
def
check_elasticsearch
client
=
Gitlab
::
Elastic
::
Client
.
build
(
current_application_settings
.
elasticsearch_config
)
print
"Elasticsearch version 5.1
.x
? ... "
print
"Elasticsearch version 5.1
- 5.3
? ... "
version
=
Gitlab
::
VersionInfo
.
parse
(
client
.
info
[
"version"
][
"number"
])
if
version
.
major
==
5
&&
version
.
minor
==
1
if
version
.
major
==
5
&&
(
1
..
3
).
cover?
(
version
.
minor
)
puts
"yes (
#{
version
}
)"
.
color
(
:green
)
else
puts
"no, you have
#{
version
}
"
.
color
(
:red
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment