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