Skip to content

Commit c563ed5

Browse files
committed
Copy 0.24.1 to 0.24.2
1 parent 1dd7da8 commit c563ed5

File tree

4 files changed

+69
-0
lines changed

4 files changed

+69
-0
lines changed

0.24.2/centos/7/Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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"]

0.24.2/centos/7/entrypoint.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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 "$@"

0.24.2/ubuntu/14.04/Dockerfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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"]

0.24.2/ubuntu/14.04/entrypoint.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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 "$@"

0 commit comments

Comments
 (0)