initial commit
This commit is contained in:
commit
1e326a68a9
|
@ -0,0 +1,17 @@
|
|||
FROM ubuntu:trusty
|
||||
|
||||
RUN apt-get update ;\
|
||||
apt-get install -y curl openjdk-7-jre-headless supervisor ;\
|
||||
mkdir /opt/kibana ;\
|
||||
curl -o /tmp/kibana4.tar.gz https://download.elastic.co/kibana/kibana/kibana-4.1.2-linux-x64.tar.gz ;\
|
||||
tar -C /opt/kibana/ -zxvf /tmp/kibana4.tar.gz --strip-components=1 ;\
|
||||
rm /tmp/kibana4.tar.gz ;\
|
||||
useradd kibana ;\
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ADD start /start
|
||||
ADD kibana.conf /etc/supervisor/conf.d/kibana.conf
|
||||
ADD supervisor.conf /etc/supervisor/conf.d/supervisor.conf
|
||||
|
||||
ENTRYPOINT ["/start"]
|
||||
EXPOSE 5601
|
|
@ -0,0 +1,14 @@
|
|||
docker-kibana
|
||||
=============
|
||||
|
||||
Container for running [Kibana](https://www.elastic.co/products/kibana).
|
||||
|
||||
*Usage:*
|
||||
|
||||
* Build: `docker build -t kibana .`
|
||||
* Run: `docker run -d -p 5601:5601 kibana`
|
||||
|
||||
*Extras:*
|
||||
|
||||
* Set elasticsearch hostname: `-e ELASTICSEARCH_HOSTNAME="192.168.31.11:9200"`
|
||||
* Set kibana port: `-e KIBANA_PORT="1234"`
|
|
@ -0,0 +1,5 @@
|
|||
[program:kibana]
|
||||
command=/opt/kibana/bin/kibana
|
||||
user=kibana
|
||||
redirect_stderr=true
|
||||
directory=/opt/kibana
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Cleanly kill supervisor when container is stopped
|
||||
trap 'kill $(jobs -p)' EXIT
|
||||
|
||||
if [ "$ELASTICSEARCH_HOSTNAME" != "" ]; then
|
||||
sed -i -r "s/^elasticsearch_url: .+/elasticsearch_url: \"http:\/\/${ELASTICSEARCH_HOSTNAME}\/\"/" /opt/kibana/config/kibana.yml
|
||||
fi
|
||||
|
||||
if [ "$KIBANA_PORT" != "" ]; then
|
||||
sed -i -r "s/^port: .+/port: $KIBANA_PORT/" /opt/kibana/config/kibana.yml
|
||||
fi
|
||||
|
||||
supervisord
|
|
@ -0,0 +1,2 @@
|
|||
[supervisord]
|
||||
nodaemon=true
|
Loading…
Reference in New Issue