|
1 |
| -FROM travisci/travis-jvm |
| 1 | +FROM quay.io/travisci/travis-jvm |
2 | 2 | MAINTAINER Clojure-Science / Clojure-Aided Enrichment Center <https://github.com/clojusc>
|
3 | 3 |
|
| 4 | +ENV DEBIAN_FRONTEND noninteractive |
| 5 | + |
| 6 | +# Work around upstart in a docker image |
| 7 | +RUN dpkg-divert --local --rename --add /sbin/initctl |
| 8 | +RUN ln -s /bin/true /sbin/initctl |
| 9 | + |
| 10 | +# Work around this bug (won't be fixed in 14.04): |
| 11 | +# * https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1325142 |
| 12 | +RUN dpkg-divert --local --add /etc/init.d/systemd-logind |
| 13 | +RUN ln -s /bin/true /etc/init.d/systemd-logind |
| 14 | + |
| 15 | +RUN add-apt-repository ppa:ubuntu-toolchain-r/test -y |
| 16 | +RUN apt-get update -y |
| 17 | + |
| 18 | +# Remove problematic software that prevents fully-automated upgrade |
| 19 | +RUN apt-get remove \ |
| 20 | + postgresql-9.1 postgresql-9.1-postgis-2.2-scripts postgresql-9.1-postgis-scripts postgresql-client-9.1 \ |
| 21 | + postgresql-9.2 postgresql-9.2-postgis-2.1 postgresql-9.2-postgis-2.2-scripts postgresql-9.2-postgis-2.3 postgresql-9.2-postgis-2.3-scripts postgresql-9.2-postgis-scripts postgresql-client-9.2 \ |
| 22 | + postgresql-9.3 postgresql-9.3-postgis-2.1 postgresql-9.3-postgis-2.3 postgresql-9.3-postgis-2.3-scripts postgresql-9.3-postgis-scripts postgresql-client-9.3 |
| 23 | +RUN apt-get remove sudo policykit-1 colord |
| 24 | +RUN apt-get autoremove |
| 25 | +RUN apt-get install -y g++-4.6 libstdc++6-4.6-dev |
| 26 | +#RUN apt-get dist-upgrade -y |
| 27 | +#RUN apt-get install --only-upgrade -y libstdc++6 libc6 libgcc1 |
| 28 | + |
| 29 | +# Mesos needs libs that aren in 14.04 but not in 12.04, so upgrade the release |
| 30 | +RUN apt-cache policy update-manager-core |
| 31 | +RUN apt-get install update-manager-core |
| 32 | +RUN do-release-upgrade -f DistUpgradeViewNonInteractive && \ |
| 33 | + echo "Successfully upgraded to 14.04." || \ |
| 34 | + echo "There were issues upgrading to 14.04." ; \ |
| 35 | + echo "Manual intervention may be needed." |
| 36 | + |
| 37 | +# Install Mesos |
4 | 38 | RUN git clone https://github.com/clojusc/meson.git
|
5 | 39 | RUN cd meson && \
|
6 | 40 | bash test/install_deps.sh && \
|
7 | 41 | bash test/start_mesos.sh && \
|
8 |
| - cd ../ |
| 42 | + cd ../ |
9 | 43 |
|
10 | 44 | CMD ["make", "local-travis-check"]
|
0 commit comments