Fix ubuntu marathon container
When we install mesos if it(or some deps) doesn't find java it installs gcj(java5) which generate cacerts, so later in marathon we have situation that openjdk8 can't access(discover as broken) to it because of different format. Additionaly this third-party openjdk8 has in dependencies ca-certificates-java which need java to generate cacerts file. Change-Id: Ic4467529a842ffc4bdd99ac1e23abbdee3a82422 Closes-bug: #1552626
This commit is contained in:
parent
67c71ff551
commit
46ba928f64
@ -33,9 +33,16 @@ RUN equivs-build java8-runtime-headless \
|
||||
&& dpkg -i java8-runtime-headless_42_all.deb \
|
||||
&& rm java8-runtime-headless java8-runtime-headless_42_all.deb
|
||||
|
||||
# NOTE(ajafo) Installation of Marathon/OpenJDK breaks cacerts file,
|
||||
# so the ca-certificates-java package is purged
|
||||
# and installed again as a workaround for this problem.
|
||||
|
||||
RUN apt-get install -y --no-install-recommends \
|
||||
marathon \
|
||||
openjdk-8-jre-headless \
|
||||
&& dpkg --purge --force-depends ca-certificates-java \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
ca-certificates-java \
|
||||
&& apt-get clean
|
||||
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user