Last active
August 29, 2015 14:10
-
-
Save nikos/bc16fc6156871ef0eebc to your computer and use it in GitHub Desktop.
MarkLogic Server 8 EA Dockerfile
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
# 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 <[email protected]> | |
# 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 |
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
For a ML 7 Dockerfile please take a look at: https://gist.github.com/rlouapre/39f3cf793f27895ae8d2