Skip to content

Commit c7b0686

Browse files
author
Aleksandr Guljajev
committed
Updating run commands
1 parent e6f25a0 commit c7b0686

File tree

3 files changed

+28
-32
lines changed

3 files changed

+28
-32
lines changed

Dockerfile

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@ MAINTAINER Container Solutions BV <info@container-solutions.com>
44
ENV VERSION "0.25.0-0.2.70.ubuntu1404"
55

66
RUN echo "deb http://ppa.launchpad.net/openjdk-r/ppa/ubuntu trusty main" > /etc/apt/sources.list.d/openjdk.list && \
7-
apt-key adv --keyserver keyserver.ubuntu.com --recv 86F44E2A && \
8-
apt-get update && \
9-
apt-get -y install openjdk-8-jre-headless && \
10-
rm -rf /var/lib/apt/lists/*
7+
apt-key adv --keyserver keyserver.ubuntu.com --recv 86F44E2A && \
8+
apt-get update && \
9+
apt-get -y install openjdk-8-jre-headless && \
10+
rm -rf /var/lib/apt/lists/*
1111

12-
RUN echo "deb http://repos.mesosphere.io/ubuntu/ trusty main" > /etc/apt/sources.list.d/mesosphere.list
13-
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv E56151BF
14-
RUN apt-get -y update
15-
RUN apt-get -y install mesos=${VERSION}
16-
17-
RUN rm -rf /var/lib/apt/lists/*
12+
RUN echo "deb http://repos.mesosphere.io/ubuntu/ trusty main" > /etc/apt/sources.list.d/mesosphere.list \
13+
apt-key adv --keyserver keyserver.ubuntu.com --recv E56151BF \
14+
apt-get -y update \
15+
apt-get -y install mesos=${VERSION} \
16+
rm -rf /var/lib/apt/lists/*

agent/Dockerfile

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
FROM ubuntu:14.04
2+
MAINTAINER Container Solutions BV <info@container-solutions.com>
23

34
ENV VERSION "0.25.0-0.2.70.ubuntu1404"
45

5-
MAINTAINER Container Solutions BV <info@container-solutions.com>
6-
76
RUN echo "deb http://ppa.launchpad.net/openjdk-r/ppa/ubuntu trusty main" > /etc/apt/sources.list.d/openjdk.list && \
8-
apt-key adv --keyserver keyserver.ubuntu.com --recv 86F44E2A && \
9-
apt-get update && \
10-
apt-get -y install openjdk-8-jre-headless && \
11-
rm -rf /var/lib/apt/lists/*
12-
13-
RUN echo "deb http://repos.mesosphere.io/ubuntu/ trusty main" > /etc/apt/sources.list.d/mesosphere.list
14-
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv E56151BF
15-
RUN apt-get -y update
16-
RUN apt-get -y install mesos=${VERSION}
7+
apt-key adv --keyserver keyserver.ubuntu.com --recv 86F44E2A && \
8+
apt-get update && \
9+
apt-get -y --no-install-recommends install openjdk-8-jre-headless && \
10+
rm -rf /var/lib/apt/lists/*
1711

18-
RUN rm -rf /var/lib/apt/lists/*
12+
RUN echo "deb http://repos.mesosphere.io/ubuntu/ trusty main" > /etc/apt/sources.list.d/mesosphere.list \
13+
apt-key adv --keyserver keyserver.ubuntu.com --recv E56151BF \
14+
apt-get -y update \
15+
apt-get -y --no-install-recommends install mesos=${VERSION} \
16+
rm -rf /var/lib/apt/lists/*
1917

2018

2119
ENTRYPOINT ["mesos-slave"]

master/Dockerfile

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,16 @@ MAINTAINER Container Solutions BV <info@container-solutions.com>
44
ENV VERSION "0.25.0-0.2.70.ubuntu1404"
55

66
RUN echo "deb http://ppa.launchpad.net/openjdk-r/ppa/ubuntu trusty main" > /etc/apt/sources.list.d/openjdk.list && \
7-
apt-key adv --keyserver keyserver.ubuntu.com --recv 86F44E2A && \
8-
apt-get update && \
9-
apt-get -y install openjdk-8-jre-headless && \
10-
rm -rf /var/lib/apt/lists/*
7+
apt-key adv --keyserver keyserver.ubuntu.com --recv 86F44E2A && \
8+
apt-get update && \
9+
apt-get -y --no-install-recommends install openjdk-8-jre-headless && \
10+
rm -rf /var/lib/apt/lists/*
1111

12-
RUN echo "deb http://repos.mesosphere.io/ubuntu/ trusty main" > /etc/apt/sources.list.d/mesosphere.list
13-
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv E56151BF
14-
RUN apt-get -y update
15-
RUN apt-get -y install mesos=${VERSION}
16-
17-
RUN rm -rf /var/lib/apt/lists/*
12+
RUN echo "deb http://repos.mesosphere.io/ubuntu/ trusty main" > /etc/apt/sources.list.d/mesosphere.list \
13+
apt-key adv --keyserver keyserver.ubuntu.com --recv E56151BF \
14+
apt-get -y update \
15+
apt-get -y --no-install-recommends install mesos=${VERSION} \
16+
rm -rf /var/lib/apt/lists/*
1817

1918
CMD ["--registry=in_memory"]
2019
ENTRYPOINT ["mesos-master"]

0 commit comments

Comments
 (0)