Skip to content

Instantly share code, notes, and snippets.

@nikos
Last active August 29, 2015 14:10
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nikos/bc16fc6156871ef0eebc to your computer and use it in GitHub Desktop.
Save nikos/bc16fc6156871ef0eebc to your computer and use it in GitHub Desktop.
MarkLogic Server 8 EA Dockerfile
# Requirements:
# - download MarkLogic EA 8 (MarkLogic-8.0-20141124.x86_64.rpm) into
# same directory like this Dockerfile
#
# Build your own image:
# docker build -t centos-marklogic8 .
#
# Start a new container with this image:
# docker run -p 8000:8000 -p 8001:8001 centos-marklogic8
FROM centos:centos6
MAINTAINER Niko Schmuck <niko.auto@nava.de>
# Install MarkLogic
WORKDIR /tmp
ADD MarkLogic-8.0-20141124.x86_64.rpm /tmp/MarkLogic-8.0-20141124.x86_64.rpm
RUN yum -y install /tmp/MarkLogic-8.0-20141124.x86_64.rpm
ENV MARKLOGIC_INSTALL_DIR /opt/MarkLogic
ENV MARKLOGIC_DATA_DIR /data
ENV MARKLOGIC_FSTYPE ext4
ENV MARKLOGIC_USER daemon
ENV MARKLOGIC_PID_FILE /var/run/MarkLogic.pid
ENV MARKLOGIC_MLCMD_PID_FILE /var/run/mlcmd.pid
ENV MARKLOGIC_UMASK 022
ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/MarkLogic/mlcmd/bin
ENV LD_PRELOAD /opt/MarkLogic/lib/libjemalloc.so.1
ENV LD_LIBRARY_PATH /opt/MarkLogic/lib:/data/Lib
# Define mountable directory
VOLUME ["/data"]
# Define working directory
WORKDIR /data
# Define default command (avoid immediate shutdown)
CMD /opt/MarkLogic/bin/MarkLogic && tail -F /data/Logs/ErrorLog.txt
# Expose MarkLogic Server ports
EXPOSE 7997 7999 8000 8001 8002
@nikos
Copy link
Author

nikos commented Nov 21, 2014

For a ML 7 Dockerfile please take a look at: https://gist.github.com/rlouapre/39f3cf793f27895ae8d2

@nikos
Copy link
Author

nikos commented Jun 16, 2015

I have updated the Dockerfile to 8.0-3 and included the download, so it is even more straight forward to create an image: https://gist.github.com/nikos/eb27dce271f00cba2bb7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment