diff --git a/hack/dockerbuild/build b/hack/dockerbuild/build old mode 100644 new mode 100755 index f763647c..6f60192a --- a/hack/dockerbuild/build +++ b/hack/dockerbuild/build @@ -1,7 +1,15 @@ +#!/bin/bash + docker build -t kubernetes-mesos:build-base . docker tag kubernetes-mesos:build-base jdef/kubernetes-mesos:build-base -for i in mesos-0.20.1-compat mesos-0.21.0-compat; do +versions=( + mesos-0.20.1-compat + mesos-0.21.0-compat + mesos-0.21.1-compat +) + +for i in "${versions[@]}"; do test -d $i && docker build -t kubernetes-mesos:build-$i $i && docker tag kubernetes-mesos:build-$i kubernetes-mesos:build-latest docker tag kubernetes-mesos:build-$i jdef/kubernetes-mesos:build-$i docker tag kubernetes-mesos:build-$i jdef/kubernetes-mesos:build-latest diff --git a/hack/dockerbuild/mesos-0.21.1-compat/Dockerfile b/hack/dockerbuild/mesos-0.21.1-compat/Dockerfile new file mode 100644 index 00000000..db3eddb5 --- /dev/null +++ b/hack/dockerbuild/mesos-0.21.1-compat/Dockerfile @@ -0,0 +1,10 @@ +FROM jdef/kubernetes-mesos:build-base +MAINTAINER James DeFelice + +ENV DEB_VERSION_MESOS 0.21.1-1.1.debian77 + +RUN apt-key adv --keyserver keyserver.ubuntu.com --recv E56151BF && \ + echo "deb http://repos.mesosphere.io/debian wheezy main" | \ + tee /etc/apt/sources.list.d/mesosphere.list && \ + apt-get -y update && \ + apt-get -y install mesos=$DEB_VERSION_MESOS