Skip to content

Instantly share code, notes, and snippets.

@tylerjl tylerjl/Dockerfile
Created Feb 24, 2019

What would you like to do?
ARM-compatible Kibana Dockerfile for use in
# This Dockerfile was generated from the template at templates/Dockerfile.j2
FROM node:8.11.4
# Add Reporting dependencies.
RUN apt update && apt install -y fontconfig && rm -rf /var/lib/apt/lists/*
WORKDIR /usr/share/kibana
# Set gid to 0 for kibana and make group permission similar to that of user
# This is needed, for example, for Openshift Open:
# and allows Kibana to run with an uid
RUN curl -Ls | tar --strip-components=1 -zxf - && \
ln -s /usr/share/kibana /opt/kibana && \
rm -rf /usr/share/kibana/node && \
chown -R 1001:0 . && \
chmod -R g=u /usr/share/kibana && \
find /usr/share/kibana -type d -exec chmod g+s {} \;
ENV PATH=/usr/share/kibana/bin:$PATH
# Set some Kibana configuration defaults.
COPY --chown=1001:0 config/kibana-oss.yml /usr/share/kibana/config/kibana.yml
# Add the launcher/wrapper script. It knows how to interpret environment
# variables and translate them to Kibana CLI options.
COPY --chown=1001:0 bin/kibana-docker /usr/local/bin/
# Add a self-signed SSL certificate for use in examples.
COPY --chown=1001:0 ssl/* /usr/share/kibana/config/
# Ensure gid 0 write permissions for Openshift.
RUN find /usr/share/kibana -gid 0 -and -not -perm /g+w -exec chmod g+w {} \;
# Provide a non-root user to run the process.
RUN groupadd --gid 1001 kibana && \
useradd --uid 1001 --gid 1001 \
--home-dir /usr/share/kibana --no-create-home \
USER 1001
LABEL org.label-schema.schema-version="1.0" \
org.label-schema.vendor="Elastic" \"kibana" \
org.label-schema.version="6.5.1" \
org.label-schema.url="" \
org.label-schema.vcs-url="" \
CMD ["/usr/local/bin/kibana-docker"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.