Merge "Install Elasticsearch and Kibana packages using yum/apt-get"
This commit is contained in:
commit
db0de9b7af
@ -21,6 +21,9 @@ ENV KOLLA_INSTALL_METATYPE {{ install_metatype }}
|
|||||||
# Turns on Elasticsearch repos
|
# Turns on Elasticsearch repos
|
||||||
COPY elasticsearch.yum.repo /etc/yum.repos.d/elasticsearch.repo
|
COPY elasticsearch.yum.repo /etc/yum.repos.d/elasticsearch.repo
|
||||||
|
|
||||||
|
# Turns on Kibana repo
|
||||||
|
COPY kibana.yum.repo /etc/yum.repos.d/kibana.yum.repo
|
||||||
|
|
||||||
# Turns on MariaDB repos throughout the RPM build
|
# Turns on MariaDB repos throughout the RPM build
|
||||||
COPY mariadb.yum.repo /etc/yum.repos.d/MariaDB.repo
|
COPY mariadb.yum.repo /etc/yum.repos.d/MariaDB.repo
|
||||||
|
|
||||||
|
6
docker/base/kibana.yum.repo
Normal file
6
docker/base/kibana.yum.repo
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[kibana-4.4]
|
||||||
|
name=Kibana repository for 4.4.x packages
|
||||||
|
baseurl=http://packages.elastic.co/kibana/4.4/centos
|
||||||
|
gpgcheck=1
|
||||||
|
gpgkey=http://packages.elastic.co/GPG-KEY-elasticsearch
|
||||||
|
enabled=1
|
@ -21,3 +21,6 @@ deb http://download.ceph.com/debian-hammer/ trusty main
|
|||||||
|
|
||||||
# Elastic repo
|
# Elastic repo
|
||||||
deb http://packages.elastic.co/elasticsearch/2.x/debian stable main
|
deb http://packages.elastic.co/elasticsearch/2.x/debian stable main
|
||||||
|
|
||||||
|
# Kibana repo
|
||||||
|
deb http://packages.elastic.co/kibana/4.4/debian stable main
|
||||||
|
@ -8,7 +8,7 @@ ENV JAVA_HOME /usr/lib/jvm/jre-1.7.0-openjdk/
|
|||||||
|
|
||||||
RUN yum -y install \
|
RUN yum -y install \
|
||||||
java-1.7.0-openjdk \
|
java-1.7.0-openjdk \
|
||||||
elasticsearch-2.1.1 \
|
elasticsearch \
|
||||||
&& yum clean all
|
&& yum clean all
|
||||||
|
|
||||||
{% elif base_distro in ['ubuntu', 'debian'] %}
|
{% elif base_distro in ['ubuntu', 'debian'] %}
|
||||||
@ -17,7 +17,7 @@ ENV JAVA_HOME /usr/lib/jvm/java-1.7.0-openjdk-amd64/
|
|||||||
|
|
||||||
RUN apt-get install -y --no-install-recommends \
|
RUN apt-get install -y --no-install-recommends \
|
||||||
openjdk-7-jre \
|
openjdk-7-jre \
|
||||||
elasticsearch=2.1.1 \
|
elasticsearch \
|
||||||
&& apt-get clean
|
&& apt-get clean
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -1,18 +1,22 @@
|
|||||||
FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }}
|
FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }}
|
||||||
MAINTAINER {{ maintainer }}
|
MAINTAINER {{ maintainer }}
|
||||||
|
|
||||||
ENV KIBANA_VERSION 4.3.1
|
|
||||||
ENV KIBANA_DIR /opt/kibana/
|
|
||||||
ENV KIBANA_ARCHIVE kibana-${KIBANA_VERSION}-linux-x64.tar.gz
|
|
||||||
|
|
||||||
RUN useradd -r -m --user-group kibana \
|
RUN useradd -r -m --user-group kibana \
|
||||||
&& usermod -a -G kolla kibana
|
&& usermod -a -G kolla kibana
|
||||||
|
|
||||||
RUN curl "https://download.elastic.co/kibana/kibana/$KIBANA_ARCHIVE" -o $KIBANA_ARCHIVE \
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
||||||
&& mkdir -p $KIBANA_DIR \
|
|
||||||
&& tar -xz --strip-components=1 -f $KIBANA_ARCHIVE -C $KIBANA_DIR \
|
RUN yum -y install \
|
||||||
&& chown -R kibana:kibana $KIBANA_DIR \
|
kibana \
|
||||||
&& rm -f $KIBANA_ARCHIVE
|
&& yum clean all
|
||||||
|
|
||||||
|
{% elif base_distro in ['ubuntu', 'debian'] %}
|
||||||
|
|
||||||
|
RUN apt-get install -y --no-install-recommends \
|
||||||
|
kibana \
|
||||||
|
&& apt-get clean
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{{ include_footer }}
|
{{ include_footer }}
|
||||||
|
|
||||||
|
@ -32,6 +32,7 @@ deb http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.0/ubuntu trusty main
|
|||||||
deb http://repo.percona.com/apt trusty main
|
deb http://repo.percona.com/apt trusty main
|
||||||
deb http://download.ceph.com/debian-hammer/ trusty main
|
deb http://download.ceph.com/debian-hammer/ trusty main
|
||||||
deb http://packages.elastic.co/elasticsearch/2.x/debian stable main
|
deb http://packages.elastic.co/elasticsearch/2.x/debian stable main
|
||||||
|
deb http://packages.elastic.co/kibana/4.4/debian stable main
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user