forked from elastic/beats
-
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.
Updated snapshot-2x environment for the 1.2.2 release testing (elasti…
…c#1445) Also fixed the LS deb URL for alpha1
- Loading branch information
Showing
4 changed files
with
81 additions
and
3 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
testing/environments/docker/elasticsearch/Dockerfile-2.3.2
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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
FROM java:8-jre | ||
|
||
# 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 apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys 46095ACC8548582C1A2699A9D27D666CD88E42B4 | ||
|
||
ENV ELASTICSEARCH_MAJOR 2.3 | ||
ENV ELASTICSEARCH_VERSION 2.3.2 | ||
|
||
RUN wget https://download.elasticsearch.org/elasticsearch/staging/2.3.2-9fb8bc6/org/elasticsearch/distribution/deb/elasticsearch/2.3.2/elasticsearch-2.3.2.deb | ||
|
||
RUN dpkg -i elasticsearch-${ELASTICSEARCH_VERSION}.deb | ||
|
||
ENV PATH /usr/share/elasticsearch/bin:$PATH | ||
|
||
RUN set -ex \ | ||
&& for path in \ | ||
/usr/share/elasticsearch/data \ | ||
/usr/share/elasticsearch/logs \ | ||
/usr/share/elasticsearch/config \ | ||
/usr/share/elasticsearch/config/scripts \ | ||
; do \ | ||
mkdir -p "$path"; \ | ||
chown -R elasticsearch:elasticsearch "$path"; \ | ||
done | ||
|
||
COPY config /usr/share/elasticsearch/config | ||
|
||
VOLUME /usr/share/elasticsearch/data | ||
|
||
COPY docker-entrypoint.sh / | ||
|
||
ENTRYPOINT ["/docker-entrypoint.sh"] | ||
|
||
EXPOSE 9200 9300 | ||
|
||
CMD ["elasticsearch"] | ||
|
||
|
||
ENTRYPOINT ["/docker-entrypoint.sh"] |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
FROM java:8-jre | ||
|
||
ENV LS_VERSION 2 | ||
|
||
ENV DEB_URL https://download.elastic.co/logstash/logstash/logstash-2.3.2.snapshot1_all.deb?c=20160421 | ||
|
||
ENV PATH $PATH:/opt/logstash/bin:/opt/logstash/vendor/jruby/bin | ||
|
||
# install logstash | ||
RUN set -x && \ | ||
mkdir -p /var/tmp && \ | ||
wget -qO /var/tmp/logstash.deb $DEB_URL && \ | ||
apt-get update -y && \ | ||
apt-get install -y logrotate git && \ | ||
dpkg -i /var/tmp/logstash.deb && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN plugin install logstash-input-beats | ||
|
||
COPY logstash.conf.2.tmpl /logstash.conf.2.tmpl | ||
COPY docker-entrypoint.sh /entrypoint.sh | ||
|
||
COPY pki /etc/pki | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] | ||
|
||
CMD logstash agent -f /logstash.conf | ||
|
||
|
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