-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
38 lines (31 loc) · 1.29 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
# 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 \
&& 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 /opt/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/
COPY entrypoint.sh /opt/
RUN chmod 755 /opt/entrypoint.sh
ENV PATH /opt/kibi/kibi/bin:$PATH
# Expose Default Port
EXPOSE 5601 5606
EXPOSE 9200
EXPOSE 9300
EXPOSE 8899
# Exec on start
ENTRYPOINT ["/dumb-init", "--"]
CMD ["/opt/entrypoint.sh"]