File tree Expand file tree Collapse file tree 4 files changed +69
-0
lines changed Expand file tree Collapse file tree 4 files changed +69
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM centos:7
2
+ MAINTAINER Peter Ericson <
[email protected] >
3
+
4
+ # https://github.com/Yelp/dumb-init
5
+ RUN curl -fLsS -o /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.0.2/dumb-init_1.0.2_amd64 && chmod +x /usr/local/bin/dumb-init
6
+
7
+ RUN rpm -i http://repos.mesosphere.io/el/7/noarch/RPMS/mesosphere-el-repo-7-1.noarch.rpm && \
8
+ yum -y install mesos-0.24.1
9
+
10
+ CMD ["/usr/sbin/mesos-master" ]
11
+
12
+ ENV MESOS_WORK_DIR /tmp/mesos
13
+
14
+ VOLUME /tmp/mesos
15
+
16
+ COPY entrypoint.sh /
17
+
18
+ ENTRYPOINT ["/usr/local/bin/dumb-init" , "/entrypoint.sh" ]
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ PRINCIPAL=${PRINCIPAL:- root}
4
+
5
+ if [ -n " $SECRET " ]; then
6
+ export MESOS_AUTHENTICATE=true
7
+ export MESOS_AUTHENTICATE_SLAVES=true
8
+ touch /tmp/credentials
9
+ chmod 600 /tmp/credentials
10
+ printf ' %s %s' " $PRINCIPAL " " $SECRET " > /tmp/credentials
11
+ export MESOS_CREDENTIALS=/tmp/credentials
12
+ fi
13
+
14
+ exec " $@ "
Original file line number Diff line number Diff line change
1
+ FROM ubuntu:14.04
2
+ MAINTAINER Peter Ericson <
[email protected] >
3
+
4
+ RUN apt-get update && apt-get install --no-install-recommends -y ca-certificates curl && rm -rf /var/lib/apt/lists/*
5
+
6
+ # https://github.com/Yelp/dumb-init
7
+ RUN curl -fLsS -o /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.0.2/dumb-init_1.0.2_amd64 && chmod +x /usr/local/bin/dumb-init
8
+
9
+ RUN apt-key adv --keyserver keyserver.ubuntu.com --recv E56151BF && \
10
+ echo deb http://repos.mesosphere.io/ubuntu trusty main > /etc/apt/sources.list.d/mesosphere.list && \
11
+ apt-get update && \
12
+ apt-get --no-install-recommends -y install mesos=0.24.1-0.2.35.ubuntu1404 && \
13
+ rm -rf /var/lib/apt/lists/*
14
+
15
+ CMD ["/usr/sbin/mesos-master" ]
16
+
17
+ ENV MESOS_WORK_DIR /tmp/mesos
18
+
19
+ VOLUME /tmp/mesos
20
+
21
+ COPY entrypoint.sh /
22
+
23
+ ENTRYPOINT ["/usr/local/bin/dumb-init" , "/entrypoint.sh" ]
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ PRINCIPAL=${PRINCIPAL:- root}
4
+
5
+ if [ -n " $SECRET " ]; then
6
+ export MESOS_AUTHENTICATE=true
7
+ export MESOS_AUTHENTICATE_SLAVES=true
8
+ touch /tmp/credentials
9
+ chmod 600 /tmp/credentials
10
+ printf ' %s %s' " $PRINCIPAL " " $SECRET " > /tmp/credentials
11
+ export MESOS_CREDENTIALS=/tmp/credentials
12
+ fi
13
+
14
+ exec " $@ "
You can’t perform that action at this time.
0 commit comments