Skip to content

Instantly share code, notes, and snippets.

@rasputnik
Created June 12, 2014 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rasputnik/155aa11277147178fe8f to your computer and use it in GitHub Desktop.
Save rasputnik/155aa11277147178fe8f to your computer and use it in GitHub Desktop.
marathon 0.5.1 Dockerfile
# run marathon 0.5.1 against mesos 0.18.2
#
# docker build -t 'your/marathon051' <directory-holding-this-file>
#
# then run with:
# docker run -name marathon -d your/marathon051 ..... command line args ....
#
# logs via : docker logs -f marathon
FROM centos
MAINTAINER Dick Davies <dick@hellooperator.net>
# install jdk
RUN yum install -y java-1.7.0-openjdk
# install mesos 0.18.2 (just for libmesos)
RUN yum install -y http://downloads.mesosphere.io/master/centos/6/mesos_0.18.2_x86_64.rpm
# extract marathon tarball to /opt/
RUN yum install -y tar curl
RUN cd /opt && curl -s http://downloads.mesosphere.io/marathon/marathon-0.5.1/marathon-0.5.1.tgz | tar zxv
EXPOSE 8080
WORKDIR /opt/marathon-0.5.1
CMD ["--help"]
ENTRYPOINT ["/opt/marathon-0.5.1/bin/start"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment