-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (22 loc) · 1.01 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM mesosphere/mesos-master:1.3.0
MAINTAINER Patrick Kleindienst <[email protected]>
ARG AURORA_VERSION=0.17.0
ARG MESOS_REPLICATED_LOG_PATH=/var/lib/aurora/scheduler/db
ENV USER=aurora
RUN apt-get update && \
apt-get install -y software-properties-common && \
add-apt-repository -y ppa:openjdk-r/ppa && \
apt-get update && \
apt-get install -y openjdk-8-jre-headless wget && \
update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
RUN wget -c https://apache.bintray.com/aurora/ubuntu-trusty/aurora-scheduler_${AURORA_VERSION}_amd64.deb && \
dpkg -i aurora-scheduler_${AURORA_VERSION}_amd64.deb
RUN service aurora-scheduler stop && \
sudo -u aurora mkdir -p $MESOS_REPLICATED_LOG_PATH && \
sudo -u aurora mesos-log initialize --path=$MESOS_REPLICATED_LOG_PATH
COPY scheduler.sh /home/aurora/scheduler.sh
RUN chown $USER:$USER /home/$USER/scheduler.sh && \
chmod 500 /home/$USER/scheduler.sh
USER aurora
WORKDIR /home/$USER
ENTRYPOINT ["./scheduler.sh"]