forked from ruflin/Elastica
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove fielddata fields and fix Fix Set fielddata=true (ruflin#1209)
* fielddata_fields has been deprecated in ES5, use parameter docvalue_fields instead (ruflin#1184) * Fix Set fielddata=true on [answer] (ruflin#1184) Change to official docker image (ruflin#1210) * Switch test environment to official docker image. * Disable tests with multiple elasticsearch instances. Update PHPUnit to the most recent version (ruflin#1211) Prepare release 5.0.0-beta1 (ruflin#1212) updated CompletionTest, payload and output are removed from completion suggester (ruflin#1184) (ruflin#1213) store_fields it will no longer extract values from the _source, use mapping 'store' (ruflin#1184) (ruflin#1215) update tests : use text or keyword instead of string and use boolean for store instaed yes/no (ruflin#1184) (ruflin#1218) remove shutdown Node|Cluster as _shutdown has been removed (ruflin#1184) (ruflin#1220) Squashed commits - Changed "text" field to "prefix" in suggestions - changed in ElasticSearch 5.0 - Changed "text" field to "prefix" in suggestions - changed in ElasticSearch 5.0
- Loading branch information
Showing
37 changed files
with
247 additions
and
329 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ | |
}, | ||
"extra": { | ||
"branch-alias": { | ||
"dev-master": "3.2.x-dev" | ||
"dev-master": "5.0.x-dev" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,12 @@ | ||
FROM java:8-jre | ||
FROM docker.elastic.co/elasticsearch/elasticsearch:latest | ||
MAINTAINER Nicolas Ruflin <[email protected]> | ||
|
||
ENV VERSION 5.0.0 | ||
|
||
ENV URL https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${VERSION}.tar.gz | ||
|
||
# Cache variable can be set during building to invalidate the build cache with `--build-arg CACHE=$(date +%s) .` | ||
ARG CACHE=1 | ||
|
||
ENV ESHOME /opt/elasticsearch-${VERSION} | ||
ENV ES_PLUGIN_BIN ${ESHOME}/bin/elasticsearch-plugin | ||
|
||
# grab gosu for easy step-down from root | ||
RUN gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 | ||
RUN arch="$(dpkg --print-architecture)" \ | ||
&& set -x \ | ||
&& curl -o /usr/local/bin/gosu -fSL "https://github.com/tianon/gosu/releases/download/1.3/gosu-$arch" \ | ||
&& curl -o /usr/local/bin/gosu.asc -fSL "https://github.com/tianon/gosu/releases/download/1.3/gosu-$arch.asc" \ | ||
&& gpg --verify /usr/local/bin/gosu.asc \ | ||
&& rm /usr/local/bin/gosu.asc \ | ||
&& chmod +x /usr/local/bin/gosu | ||
|
||
RUN groupadd -r elasticsearch && useradd -r -m -g elasticsearch elasticsearch | ||
|
||
RUN set -x && \ | ||
cd /opt && \ | ||
wget -qO elasticsearch.tar.gz "$URL?${CACHE}" && \ | ||
tar xzvf elasticsearch.tar.gz && \ | ||
chown -R elasticsearch:elasticsearch ${ESHOME} | ||
|
||
ENV PATH ${ESHOME}/bin:$PATH | ||
|
||
VOLUME ${ESHOME}/data | ||
|
||
ENV ES_JAVA_OPTS="-Xms512m -Xmx512m" | ||
|
||
RUN ${ES_PLUGIN_BIN} install mapper-attachments | ||
RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install mapper-attachments | ||
|
||
# Copy config files | ||
COPY elasticsearch.yml /opt/elasticsearch-${VERSION}/config/elasticsearch.yml | ||
COPY scripts/* /opt/elasticsearch-${VERSION}/config/scripts/ | ||
|
||
COPY docker-entrypoint.sh / | ||
|
||
ENTRYPOINT ["/docker-entrypoint.sh"] | ||
COPY elasticsearch.yml /usr/share/elasticsearch/config/elasticsearch.yml | ||
COPY scripts/* /usr/share/elasticsearch/config/scripts/ | ||
|
||
|
||
RUN mkdir -p /tmp/backups/backup1 | ||
RUN mkdir -p /tmp/backups/backup2 | ||
|
||
EXPOSE 9200 9300 | ||
|
||
CMD ["elasticsearch"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.