-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
55 lines (46 loc) · 2.28 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
43
44
45
46
47
48
49
50
51
52
53
54
55
# Linux OS
FROM elasticsearch:2.4.1
# Maintainer
MAINTAINER lmangani <[email protected]>
RUN groupadd -r kibi && useradd -r -m -g kibi kibi
# Setup Packages & Permissions
RUN apt-get update && apt-get clean \
&& wget -O /dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.1.3/dumb-init_1.1.3_amd64 \
&& chmod +x /dumb-init \
&& curl -sL https://deb.nodesource.com/setup_4.x | bash - \
&& apt-get install -y nodejs \
&& /usr/share/elasticsearch/bin/plugin install solutions.siren/siren-join/2.4.1 \
&& npm install phantomjs-prebuilt -g \
&& apt-get autoremove \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN cd /opt && wget https://download.support.siren.solutions/kibi/community?file=kibi-community-standalone-4.6.4-1-linux-x64.zip -O kibi-community-standalone-4.6.4-1-linux-x64.zip \
&& unzip kibi-community-standalone-4.6.4-1-linux-x64.zip \
&& rm -rf kibi-community-standalone-4.6.4-1-linux-x64.zip \
&& mv kibi-community-standalone-4.6.4-1-linux-x64 kibi \
&& chown -R kibi:kibi /opt/kibi \
&& chown -R elasticsearch:elasticsearch /var/lib/elasticsearch/
RUN cd /opt/kibi \
&& ./bin/kibi plugin --install sentinl -u https://github.com/sirensolutions/sentinl/releases/download/tag-4.6.4-2/sentinl-latest.tar.gz \
&& ./bin/kibi plugin --install kibana-auth-plugin -u https://github.com/elasticfence/kibana-auth-elasticfence/releases/download/snapshot/kauth-latest.tar.gz \
&& ./bin/kibi plugin --install kibrand -u https://github.com/elasticfence/kibrand/archive/0.4.5.zip \
&& ./bin/kibi plugin --install kibana-time-plugin -u https://github.com/nreese/kibana-time-plugin/archive/4.x.zip \
&& ./bin/kibi plugin --install elastic/timelion \
&& ./bin/kibi plugin --install elastic/sense \
&& chown -R kibi:kibi /opt/kibi \
&& cd /usr/share/elasticsearch \
&& ./bin/plugin install https://raw.githubusercontent.com/elasticfence/elasticsearch-http-user-auth/2.4.1/jar/elasticfence-2.4.1-SNAPSHOT.zip
COPY entrypoint.sh /opt/
RUN chmod 755 /opt/entrypoint.sh
ENV PATH /opt/kibi/kibi/bin:$PATH
# Kibi init files
COPY etc/default/kibi /etc/default/kibi
COPY etc/init.d/kibi /etc/init.d/kibi
RUN chmod +x /etc/init.d/kibi
# Expose Default Port
EXPOSE 5601 5606
EXPOSE 9200
EXPOSE 9300
EXPOSE 8899
# Exec on start
ENTRYPOINT ["/dumb-init", "--"]
CMD ["/opt/entrypoint.sh"]