-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (32 loc) · 1.87 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
36
37
38
39
40
41
42
FROM ubuntu
MAINTAINER kuenstner@gmail.com
RUN apt-get update && apt-get -y install wget zsh unzip vim curl git
RUN git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh && \
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
# ES
RUN wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - && \
echo "deb http://packages.elastic.co/elasticsearch/2.x/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-2.x.list && \
echo "deb http://packages.elastic.co/logstash/2.1/debian stable main" | sudo tee -a /etc/apt/sources.list
RUN apt-get update && apt-get -y install elasticsearch openjdk-7-jre logstash redis-server nginx
RUN /usr/share/elasticsearch/bin/plugin install license
RUN /usr/share/elasticsearch/bin/plugin install marvel-agent
# Kibana
RUN wget https://download.elastic.co/kibana/kibana/kibana-4.3.1-linux-x64.tar.gz && \
tar -xvf kibana-4.3.1-linux-x64.tar.gz && \
rm kibana-4.3.1-linux-x64.tar.gz && \
mv kibana-4.3.1-linux-x64 kibana
RUN service elasticsearch start && \
/kibana/bin/kibana plugin --install elasticsearch/marvel/latest && \
/kibana/bin/kibana plugin --install elastic/sense
# Populate Nginx
RUN wget https://github.com/IronSummitMedia/startbootstrap-stylish-portfolio/archive/v1.0.2.zip && \
unzip v1.0.2.zip && rm -rf /usr/share/nginx/html/* && \
mv startbootstrap-stylish-portfolio-1.0.2/* /usr/share/nginx/html/ && \
rm -rf /startbootstrap-stylish-portfolio-1.0.2
ADD logstash/syslog_shipper.conf /etc/logstash/conf.d/syslog_shipper.conf
ADD logstash/syslog_indexer.conf /etc/logstash/conf.d/syslog_indexer.conf
ADD elasticsearch/elasticsearch.yml /etc/elasticsearch/elasticsearch.yml
ADD logstash/nginx /opt/logstash/patterns/nginx
RUN chown logstash:logstash /opt/logstash/patterns/nginx
ADD startup.sh /usr/bin/startup.sh
CMD bash -C '/usr/bin/startup.sh';'zsh'