-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from gerardorochin/update_4_5_0
Update to 4.5.0
- Loading branch information
Showing
4 changed files
with
83 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ language: bash | |
services: docker | ||
|
||
env: | ||
- VERSION=4.5 | ||
- VERSION=4.4 | ||
- VERSION=4.3 | ||
- VERSION=4.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,56 @@ | ||
FROM debian:jessie | ||
|
||
# add our user and group first to make sure their IDs get assigned consistently | ||
RUN groupadd -r kibana && useradd -r -m -g kibana kibana | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
ca-certificates \ | ||
wget \ | ||
--no-install-recommends && rm -rf /var/lib/apt/lists/* | ||
|
||
# grab gosu for easy step-down from root | ||
ENV GOSU_VERSION 1.7 | ||
RUN set -x \ | ||
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" \ | ||
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" \ | ||
&& export GNUPGHOME="$(mktemp -d)" \ | ||
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 \ | ||
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \ | ||
&& rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc \ | ||
&& chmod +x /usr/local/bin/gosu \ | ||
&& gosu nobody true | ||
|
||
# grab tini for signal processing and zombie killing | ||
ENV TINI_VERSION v0.9.0 | ||
RUN set -x \ | ||
&& wget -O /usr/local/bin/tini "https://github.com/krallin/tini/releases/download/$TINI_VERSION/tini" \ | ||
&& wget -O /usr/local/bin/tini.asc "https://github.com/krallin/tini/releases/download/$TINI_VERSION/tini.asc" \ | ||
&& export GNUPGHOME="$(mktemp -d)" \ | ||
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 6380DC428747F6C393FEACA59A84159D7001A4E5 \ | ||
&& gpg --batch --verify /usr/local/bin/tini.asc /usr/local/bin/tini \ | ||
&& rm -r "$GNUPGHOME" /usr/local/bin/tini.asc \ | ||
&& chmod +x /usr/local/bin/tini \ | ||
&& tini -h | ||
|
||
# https://www.elastic.co/guide/en/kibana/4.4/setup.html#kibana-apt | ||
# https://packages.elasticsearch.org/GPG-KEY-elasticsearch | ||
RUN apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys 46095ACC8548582C1A2699A9D27D666CD88E42B4 | ||
|
||
ENV KIBANA_MAJOR 4.5 | ||
ENV KIBANA_VERSION 4.5.0 | ||
|
||
RUN echo "deb http://packages.elastic.co/kibana/${KIBANA_MAJOR}/debian stable main" > /etc/apt/sources.list.d/kibana.list | ||
|
||
RUN set -x \ | ||
&& apt-get update \ | ||
&& apt-get install -y --no-install-recommends kibana=$KIBANA_VERSION \ | ||
&& chown -R kibana:kibana /opt/kibana \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
ENV PATH /opt/kibana/bin:$PATH | ||
|
||
COPY docker-entrypoint.sh / | ||
|
||
EXPOSE 5601 | ||
ENTRYPOINT ["/docker-entrypoint.sh"] | ||
CMD ["kibana"] |
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,25 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# Add kibana as command if needed | ||
if [[ "$1" == -* ]]; then | ||
set -- kibana "$@" | ||
fi | ||
|
||
# Run as user "kibana" if the command is "kibana" | ||
if [ "$1" = 'kibana' ]; then | ||
if [ "$ELASTICSEARCH_URL" -o "$ELASTICSEARCH_PORT_9200_TCP" ]; then | ||
: ${ELASTICSEARCH_URL:='http://elasticsearch:9200'} | ||
sed -ri "s!^(\#\s*)?(elasticsearch\.url:).*!\2 '$ELASTICSEARCH_URL'!" /opt/kibana/config/kibana.yml | ||
else | ||
echo >&2 'warning: missing ELASTICSEARCH_PORT_9200_TCP or ELASTICSEARCH_URL' | ||
echo >&2 ' Did you forget to --link some-elasticsearch:elasticsearch' | ||
echo >&2 ' or -e ELASTICSEARCH_URL=http://some-elasticsearch:9200 ?' | ||
echo >&2 | ||
fi | ||
|
||
set -- gosu kibana tini -- "$@" | ||
fi | ||
|
||
exec "$@" |
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