Created
February 24, 2019 20:40
-
-
Save tylerjl/c3f6383885e44e3a37d4ce85291cee9b to your computer and use it in GitHub Desktop.
ARM-compatible Kibana Dockerfile for use in https://github.com/elastic/kibana-docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This Dockerfile was generated from the template at templates/Dockerfile.j2 | |
FROM node:8.11.4 | |
EXPOSE 5601 | |
# 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: | |
# https://docs.openshift.org/latest/creating_images/guidelines.html | |
# and allows Kibana to run with an uid | |
RUN curl -Ls https://artifacts.elastic.co/downloads/kibana/kibana-oss-6.5.1-linux-x86_64.tar.gz | 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 ELASTIC_CONTAINER true | |
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/kibana.example.org.* /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 \ | |
kibana | |
USER 1001 | |
LABEL org.label-schema.schema-version="1.0" \ | |
org.label-schema.vendor="Elastic" \ | |
org.label-schema.name="kibana" \ | |
org.label-schema.version="6.5.1" \ | |
org.label-schema.url="https://www.elastic.co/products/kibana" \ | |
org.label-schema.vcs-url="https://github.com/elastic/kibana-docker" \ | |
license="Apache-2.0" | |
CMD ["/usr/local/bin/kibana-docker"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment