Skip to content

Commit

Permalink
Merged jre installation into base image. mesos#347 will eventually re…
Browse files Browse the repository at this point in the history
…place that
  • Loading branch information
mwl committed Oct 6, 2015
1 parent 84b1d6b commit caaba13
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 62 deletions.
31 changes: 31 additions & 0 deletions commons/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
FROM mesosphere/mesos:0.22.1-1.0.ubuntu1404

RUN apt-get update && apt-get install -y software-properties-common

RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
add-apt-repository -y ppa:webupd8team/java && \
apt-get update && \
apt-get install -y oracle-java8-installer && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/cache/oracle-jdk8-installer && \
rm -rf \
/usr/lib/jvm/java-8-oracle/*src.zip \
/usr/lib/jvm/java-8-oracle/lib/missioncontrol \
/usr/lib/jvm/java-8-oracle/lib/visualvm \
/usr/lib/jvm/java-8-oracle/lib/*javafx* \
/usr/lib/jvm/java-8-oracle/jre/lib/plugin.jar \
/usr/lib/jvm/java-8-oracle/jre/lib/ext/jfxrt.jar \
/usr/lib/jvm/java-8-oracle/jre/bin/javaws \
/usr/lib/jvm/java-8-oracle/jre/lib/javaws.jar \
/usr/lib/jvm/java-8-oracle/jre/lib/desktop \
/usr/lib/jvm/java-8-oracle/jre/plugin \
/usr/lib/jvm/java-8-oracle/jre/lib/deploy* \
/usr/lib/jvm/java-8-oracle/jre/lib/*javafx* \
/usr/lib/jvm/java-8-oracle/jre/lib/*jfx* \
/usr/lib/jvm/java-8-oracle/jre/lib/amd64/libdecora_sse.so \
/usr/lib/jvm/java-8-oracle/jre/lib/amd64/libprism_*.so \
/usr/lib/jvm/java-8-oracle/jre/lib/amd64/libfxplugins.so \
/usr/lib/jvm/java-8-oracle/jre/lib/amd64/libglass.so \
/usr/lib/jvm/java-8-oracle/jre/lib/amd64/libgstreamer-lite.so \
/usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjavafx*.so \
/usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjfx*.so
9 changes: 9 additions & 0 deletions commons/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
apply plugin: 'java'

ext {
imageName = imagePrefix + '/elasticsearch-base'
}

task taskCopyFilesForDocker(type: Copy) {
// Nothing to copy, but required by docker build
}


dependencies {
compile "com.beust:jcommander:1.48"
}
32 changes: 1 addition & 31 deletions executor/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,34 +1,4 @@
FROM mesosphere/mesos-slave:0.22.1-1.0.ubuntu1404

RUN apt-get update && apt-get install -y software-properties-common

RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
add-apt-repository -y ppa:webupd8team/java && \
apt-get update && \
apt-get install -y oracle-java8-installer && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/cache/oracle-jdk8-installer && \
rm -rf \
/usr/lib/jvm/java-8-oracle/*src.zip \
/usr/lib/jvm/java-8-oracle/lib/missioncontrol \
/usr/lib/jvm/java-8-oracle/lib/visualvm \
/usr/lib/jvm/java-8-oracle/lib/*javafx* \
/usr/lib/jvm/java-8-oracle/jre/lib/plugin.jar \
/usr/lib/jvm/java-8-oracle/jre/lib/ext/jfxrt.jar \
/usr/lib/jvm/java-8-oracle/jre/bin/javaws \
/usr/lib/jvm/java-8-oracle/jre/lib/javaws.jar \
/usr/lib/jvm/java-8-oracle/jre/lib/desktop \
/usr/lib/jvm/java-8-oracle/jre/plugin \
/usr/lib/jvm/java-8-oracle/jre/lib/deploy* \
/usr/lib/jvm/java-8-oracle/jre/lib/*javafx* \
/usr/lib/jvm/java-8-oracle/jre/lib/*jfx* \
/usr/lib/jvm/java-8-oracle/jre/lib/amd64/libdecora_sse.so \
/usr/lib/jvm/java-8-oracle/jre/lib/amd64/libprism_*.so \
/usr/lib/jvm/java-8-oracle/jre/lib/amd64/libfxplugins.so \
/usr/lib/jvm/java-8-oracle/jre/lib/amd64/libglass.so \
/usr/lib/jvm/java-8-oracle/jre/lib/amd64/libgstreamer-lite.so \
/usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjavafx*.so \
/usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjfx*.so
FROM mesos/elasticsearch-base:latest

ADD ./build/docker/elasticsearch-mesos-executor.jar /tmp/elasticsearch-mesos-executor.jar
ADD ./build/docker/start-executor.sh /tmp/start-executor.sh
Expand Down
32 changes: 1 addition & 31 deletions scheduler/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,34 +1,4 @@
FROM mesosphere/mesos:0.22.1-1.0.ubuntu1404

RUN apt-get update && apt-get install -y software-properties-common

RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
add-apt-repository -y ppa:webupd8team/java && \
apt-get update && \
apt-get install -y oracle-java8-installer && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/cache/oracle-jdk8-installer && \
rm -rf \
/usr/lib/jvm/java-8-oracle/*src.zip \
/usr/lib/jvm/java-8-oracle/lib/missioncontrol \
/usr/lib/jvm/java-8-oracle/lib/visualvm \
/usr/lib/jvm/java-8-oracle/lib/*javafx* \
/usr/lib/jvm/java-8-oracle/jre/lib/plugin.jar \
/usr/lib/jvm/java-8-oracle/jre/lib/ext/jfxrt.jar \
/usr/lib/jvm/java-8-oracle/jre/bin/javaws \
/usr/lib/jvm/java-8-oracle/jre/lib/javaws.jar \
/usr/lib/jvm/java-8-oracle/jre/lib/desktop \
/usr/lib/jvm/java-8-oracle/jre/plugin \
/usr/lib/jvm/java-8-oracle/jre/lib/deploy* \
/usr/lib/jvm/java-8-oracle/jre/lib/*javafx* \
/usr/lib/jvm/java-8-oracle/jre/lib/*jfx* \
/usr/lib/jvm/java-8-oracle/jre/lib/amd64/libdecora_sse.so \
/usr/lib/jvm/java-8-oracle/jre/lib/amd64/libprism_*.so \
/usr/lib/jvm/java-8-oracle/jre/lib/amd64/libfxplugins.so \
/usr/lib/jvm/java-8-oracle/jre/lib/amd64/libglass.so \
/usr/lib/jvm/java-8-oracle/jre/lib/amd64/libgstreamer-lite.so \
/usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjavafx*.so \
/usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjfx*.so
FROM mesos/elasticsearch-base:latest

ADD ./build/docker/elasticsearch-mesos-scheduler.jar /tmp/elasticsearch-mesos-scheduler.jar
ADD ./build/docker/start-scheduler.sh /tmp/start-scheduler.sh
Expand Down

0 comments on commit caaba13

Please sign in to comment.