As noted in PR #91, we have a couple of manual modifications that are necessary when changing the mesos version:
pom.xml's mesos.version property needs to be updated so that the package's included mesos dependency is correct.
(only applicable when using Docker image) we need to update the version of mesos in the Dockerfile.
Update pom.xml's mesos.version
We should consider some mechanism for updating the mesos.version property without resorting to something like sed. e.g., maybe one of these Maven plugins:
properties
versions
replacer
(DONE)Update Dockerfile's mesos version:
Ideally we would just use a vanilla ubuntu Docker image as the FROM, and then install the mesos package for the chosen mesos version. Unfortunately, the mesos packages published by Mesosphere have an unpredictable superfluous identifier in the names, which prevents simply doing something like this:
FROM ubuntu:14.04
...
RUN apt-get install -y mesos=0.26.0-0.2.145.ubuntu1404
So instead of this we can resort to using sed to update the base image in the Dockerfile, using a lookup-table from bin/build-release.sh to choose the appropriate base image for each supported mesos version.
As noted in PR #91, we have a couple of manual modifications that are necessary when changing the mesos version:
pom.xml
'smesos.version
property needs to be updated so that the package's included mesos dependency is correct.Dockerfile
.Update
pom.xml
'smesos.version
We should consider some mechanism for updating the
mesos.version
property without resorting to something likesed
. e.g., maybe one of these Maven plugins:(DONE)
UpdateDockerfile
's mesos version:Ideally we would just use a vanilla ubuntu Docker image as the
FROM
, and then install the mesos package for the chosen mesos version. Unfortunately, the mesos packages published by Mesosphere have an unpredictable superfluous identifier in the names, which prevents simply doing something like this:So instead of this we can resort to using
sed
to update the base image in theDockerfile
, using a lookup-table frombin/build-release.sh
to choose the appropriate base image for each supported mesos version.