blob: fcfe6259adc51f58371559933ea74eb8ae6caa10 [file] [log] [blame]
Tony Mackb9959142016-03-12 14:13:24 +00001FROM ubuntu:14.04.2
2
3ENV KIBANA_VERSION kibana-4.0.1-linux-x64
4ENV KIBANA_SECURE true
5ENV KIBANA_USER kibana
6ENV KIBANA_PASSWORD kibana
7
8RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \
9 wget \
10 nginx-full \
11 apache2-utils \
12 supervisor
13
14WORKDIR /opt
15
16RUN wget --no-check-certificate -O- https://download.elasticsearch.org/kibana/kibana/${KIBANA_VERSION}.tar.gz | tar xvfz -
17
18RUN mkdir /etc/kibana # This is where the htpasswd file is placed by the run script
19
20ADD conf/kibana /etc/nginx/sites-available/kibana
21
22ADD conf/kibana-secure /etc/nginx/sites-available/kibana-secure
23
24RUN rm /etc/nginx/sites-enabled/*
25
26RUN echo "daemon off;" >> /etc/nginx/nginx.conf
27
28ADD conf/supervisord.conf /etc/supervisor/conf.d/kibana.conf
29
30ADD run_kibana /opt/${KIBANA_VERSION}/run_kibana
31
32RUN chmod +x /opt/${KIBANA_VERSION}/run_kibana
33
34EXPOSE 80
35EXPOSE 5601
36
37CMD /opt/${KIBANA_VERSION}/run_kibana