-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (25 loc) · 1.41 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM phusion/baseimage:0.9.19
MAINTAINER Daniel Covello
# Use baseimage-docker's init system
CMD ["/sbin/my_init"]
RUN apt-get update && apt-get install -y wget ca-certificates libfontconfig libfreetype6 apt-transport-https
RUN echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee /etc/apt/sources.list.d/webupd8team-java.list && \
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
# Preemptively accept the Oracle License
RUN echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 boolean true" > /tmp/oracle-license-debconf && \
/usr/bin/debconf-set-selections /tmp/oracle-license-debconf && \
rm /tmp/oracle-license-debconf && \
apt-get update && \
apt-get install -y oracle-java8-installer oracle-java8-set-default
RUN set -x && \
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add - && \
echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | tee -a /etc/apt/sources.list.d/elastic-5.x.list && \
apt-get update && \
apt-get install -y --no-install-recommends kibana=5.3.2
ENV PATH /usr/share/kibana/bin:$PATH
RUN mkdir -p /var/log/kibana
RUN mkdir -p /etc/service/kibana
ADD start-kibana.sh /etc/service/kibana/run
RUN chmod +x /etc/service/kibana/run
EXPOSE 5601