I'm a bit suspicious as to where the "FROM: maven:3.6.3-jdk-8" is coming
from - it looks as if the -rc3 branch is not entirely up to date with
https://github.com/apache/brooklyn/commits/master, which contains a tweak
to the base image version from about a week ago (
https://github.com/apache/brooklyn/commit/667083e648d52c0aba7f4da600ff17e5510d9b1b
).





On Wed, 19 Feb 2020 at 10:51, Paul Campbell <[email protected]>
wrote:

> Richard,
>
> I hadn't tried that. The image maintainer appears to have installed it 'by
> hand' rather than through apt-get.
>
> Commenting out that line allows me to build the image.
>
> However, building with this new image gives me this error, which is the
> same error I get when I try to build without using Docker:
>
> Tests run: 2371, Failures: 1, Errors: 0, Skipped: 39, Time elapsed: 146.302
> sec <<< FAILURE! - in TestSuite
>
> testInjectCertificateAuthority(org.apache.brooklyn.util.core.crypto.SecureKeysAndSignerTest)
>  Time elapsed: 0.319 sec  <<< FAILURE!
> java.lang.AssertionError: expected [true] but found [false]
> at
>
> org.apache.brooklyn.util.core.crypto.SecureKeysAndSignerTest.testInjectCertificateAuthority(SecureKeysAndSignerTest.java:89)
>
> 2020-02-19 10:48:50,747 INFO  - Brooklyn shutdown: stopping entities
> [TestEntityImpl{id=mkj2izoo11}, TestEntityImpl{id=jcq2uf7496},
> BlockingEntityImpl{id=xkfebswc0y}]
>
> Results :
>
> Failed tests:
>   SecureKeysAndSignerTest.testInjectCertificateAuthority:89 expected [true]
> but found [false]
>
> Tests run: 2367, Failures: 1, Errors: 0, Skipped: 35
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary for Brooklyn Root 1.0.0:
> [INFO]
> [INFO] Brooklyn Server Root ............................... SUCCESS [
>  0.701 s]
> [INFO] Brooklyn Parent Project ............................ SUCCESS [
>  1.791 s]
> [INFO] Brooklyn Test Support Utilities .................... SUCCESS [
>  3.579 s]
> [INFO] Brooklyn Logback Includable Configuration .......... SUCCESS [
>  0.429 s]
> [INFO] Brooklyn Common Utilities .......................... SUCCESS [
> 20.798 s]
> [INFO] Brooklyn API ....................................... SUCCESS [
>  1.419 s]
> [INFO] CAMP Server Parent Project ......................... SUCCESS [
>  0.138 s]
> [INFO] CAMP Base .......................................... SUCCESS [
>  2.046 s]
> [INFO] Brooklyn Test Support .............................. SUCCESS [
>  1.822 s]
> [INFO] Brooklyn REST Swagger Apidoc Utilities ............. SUCCESS [
>  0.826 s]
> [INFO] Brooklyn Logback Configuration ..................... SUCCESS [
>  0.179 s]
> [INFO] CAMP Server ........................................ SUCCESS [
>  3.680 s]
> [INFO] Brooklyn Felix Runtime ............................. SUCCESS [
>  2.057 s]
> [INFO] Brooklyn Groovy Utilities .......................... SUCCESS [
>  1.680 s]
> [INFO] Brooklyn Core ...................................... FAILURE [03:02
> min]
>
> I've tried four times, but keep hitting this error.
>
>
> Paul
>
> On Wed, 19 Feb 2020 at 10:28, Richard Downer <[email protected]> wrote:
>
> > Paul,
> >
> > Forgive me if I'm missing anything as I avoid Docker where I generally
> can.
> >
> > Bringing up a shell on that Docker image, I can see JDK 8 is already
> > installed:
> >
> > root@6ec502dbd5bb:/# which java
> > /usr/local/openjdk-8/bin/java
> > root@6ec502dbd5bb:/# java -version
> > openjdk version "1.8.0_242"
> > OpenJDK Runtime Environment (build 1.8.0_242-b08)
> > OpenJDK 64-Bit Server VM (build 25.242-b08, mixed mode)
> > root@6ec502dbd5bb:/# javac -version
> > javac 1.8.0_242
> >
> > Is the workaround to simply remove attempt to install JDK 8 from the
> > Dockerfile?
> >
> > I'd also consider the Dockerfile to be a non-core part of Brooklyn and
> > therefore this should not be a release blocker. Does anyone
> agree/disagree?
> >
> > Richard.
> >
> >
> > On Wed, 19 Feb 2020 at 10:09, Paul Campbell <[email protected]>
> > wrote:
> >
> > > Hi,
> > >
> > > When I try to create the brooklyn docker image for building (i.e.
> docker
> > > build -t brooklyn .) I get the following error:
> > >
> > > pcampbell@cloudsoft:~/Downloads/apache-brooklyn-1.0.0-src$ docker
> > > build -t brooklyn .
> > > Sending build context to Docker daemon  38.09MB
> > > Step 1/8 : FROM maven:3.6.3-jdk-8
> > > 3.6.3-jdk-8: Pulling from library/maven
> > > dc65f448a2e2: Pull complete
> > > 346ffb2b67d7: Pull complete
> > > dea4ecac934f: Pull complete
> > > 8ac92ddf84b3: Pull complete
> > > d8ef64070a18: Pull complete
> > > 6577248b0d6e: Pull complete
> > > 576c0a3a6af9: Pull complete
> > > b96f1ed3d8ce: Pull complete
> > > a42ee290f6d0: Pull complete
> > > b85c95a261d3: Pull complete
> > > Digest:
> > > sha256:c822fa30ca61b434f87f415be39357cbee36f3ef88f2d65445437ab055d1266b
> > > Status: Downloaded newer image for maven:3.6.3-jdk-8
> > >  ---> a4ae0fe55e86
> > > Step 2/8 : RUN apt-get update && apt-get install -y openjdk-8-jre
> > >  ---> Running in a27050aa0206
> > > Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
> > > Get:2 http://security.debian.org/debian-security buster/updates
> > > InRelease [65.4 kB]
> > > Get:3 http://deb.debian.org/debian buster-updates InRelease [49.3 kB]
> > > Get:4 http://security.debian.org/debian-security buster/updates/main
> > > amd64 Packages [177 kB]
> > > Get:5 http://deb.debian.org/debian buster/main amd64 Packages [7907
> kB]
> > > Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages
> > > [5792 B]
> > > Fetched 8326 kB in 3s (2504 kB/s)
> > > Reading package lists...
> > > Reading package lists...
> > > Building dependency tree...
> > > Reading state information...
> > > E: Unable to locate package openjdk-8-jre
> > > The command '/bin/sh -c apt-get update && apt-get install -y
> > > openjdk-8-jre' returned a non-zero code: 100
> > >
> > > This is because of a problem with the base maven image:
> > >
> > > pcampbell@cloudsoft:~/Downloads/apache-brooklyn-1.0.0-src$ docker run
> > > -it maven:3.6.3-jdk-8 /bin/bash
> > > root@ee5eb6fdf173:/# apt-get update
> > > Get:1 http://security.debian.org/debian-security buster/updates
> > > InRelease [65.4 kB]
> > > Get:2 http://deb.debian.org/debian buster InRelease [122 kB]
> > > Get:3 http://security.debian.org/debian-security buster/updates/main
> > > amd64 Packages [177 kB]
> > > Get:4 http://deb.debian.org/debian buster-updates InRelease [49.3 kB]
> > > Get:5 http://deb.debian.org/debian buster/main amd64 Packages [7907
> kB]
> > > Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages
> > > [5792 B]
> > > Fetched 8326 kB in 6s (1480 kB/s)
> > > Reading package lists... Done
> > > root@ee5eb6fdf173:/# apt-cache search openjdk|grep jre
> > > openjdk-11-jre - OpenJDK Java runtime, using Hotspot JIT
> > > openjdk-11-jre-headless - OpenJDK Java runtime, using Hotspot JIT
> > > (headless)
> > > openjdk-11-jre-zero - Alternative JVM for OpenJDK, using Zero
> > > openjdk-11-jre-dcevm - Alternative VM for OpenJDK 11 with enhanced
> > > class redefinition
> > >
> > > Despite being tagged as 'jdk-8' it doesn't have a JDK8 package
> available.
> > >
> > > Paul
> > >
> > >
> > > On Tue, 18 Feb 2020 at 23:37, Richard Downer <[email protected]>
> wrote:
> > >
> > > > This is to call for a vote for the release of Apache Brooklyn 1.0.0.
> > > >
> > > > This release comprises of a source code distribution, and a
> > corresponding
> > > > binary distribution, and Maven artifacts.
> > > >
> > > > The source and binary distributions, including signatures, digests,
> > etc.
> > > > can be found at:
> > > >
> > > >
> > > >
> > >
> >
> https://dist.apache.org/repos/dist/dev/brooklyn/apache-brooklyn-1.0.0-rc3
> > > >
> > > > The artifact SHA-256 checksums are as follows:
> > > >
> > > >   f6b199faadee7391a1a0509a853619aef37b0d3c1a6ecf01ecff2b07d729c42a
> > > > *apache-brooklyn-1.0.0-rc3-1.noarch.rpm
> > > >   7481b2c24949de9c29bfd1c5c9a32e1199c9fa0504af01d9a9bca764721def61
> > > > *apache-brooklyn-1.0.0-rc3-bin.tar.gz
> > > >   9e2d594021056fa3ecc76c87648609be6e0884222f4f921b8bad1f529896cd9c
> > > > *apache-brooklyn-1.0.0-rc3-bin.zip
> > > >   e0148e4bd5aa6be2979edda29609432f060cee60b36a79608de150f3263aa480
> > > > *apache-brooklyn-1.0.0-rc3-classic.tar.gz
> > > >   e0b26edd4d2e340513f06d8e089d2be12e1b882cb1dc4ffd27061fe53c72bc84
> > > > *apache-brooklyn-1.0.0-rc3-classic.zip
> > > >   3742424ce5a58813591c21ab556072915c20eb390eb0484e2650b8f8ed605494
> > > > *apache-brooklyn-1.0.0-rc3-client-cli-linux.tar.gz
> > > >   eafded3bfc5f8a63ddd543c98e142f928eae9f423ba8da68f7e062be2796a06d
> > > > *apache-brooklyn-1.0.0-rc3-client-cli-linux.zip
> > > >   13f025116cd9d3ffa40d328c522e50c9d18a6d3a1fc77238e3310a2098a92c82
> > > > *apache-brooklyn-1.0.0-rc3-client-cli-macosx.tar.gz
> > > >   f554fa5d95ce11f5f08d7b9f66e7be4a0219acdc3064067a44e4b1524d437d24
> > > > *apache-brooklyn-1.0.0-rc3-client-cli-macosx.zip
> > > >   8c41c4902004ad283f6e08a71256be82d5e747cc553d54e16f22b40214210cf5
> > > > *apache-brooklyn-1.0.0-rc3-client-cli-windows.tar.gz
> > > >   ffb1a7dd912d74968b2282b9a224dbc019f6fc81bec1c81d03fd17bf34b58277
> > > > *apache-brooklyn-1.0.0-rc3-client-cli-windows.zip
> > > >   9d6a7a04fe10f95a34b6167f2896a219f7863e16e66e107e4243ce32695d5b49
> > > > *apache-brooklyn-1.0.0-rc3-src.tar.gz
> > > >   a9e622854b2774790e0f7421b21b680a04983c18e09a086628c4360248670fa3
> > > > *apache-brooklyn-1.0.0-rc3-src.zip
> > > >   164898a211dea73397fb22faa7b8198ff4d63d0941e1c690a20c39515cfadbcc
> > > > *apache-brooklyn-1.0.0-rc3-vagrant.tar.gz
> > > >   ac81a3c07b4b59213362abc6ecbac3a57de500cee63a9793f06a42e8821ffce1
> > > > *apache-brooklyn-1.0.0-rc3-vagrant.zip
> > > >   9e45418d12edb0332dec8a3e93b991dcb0f9afa55d9f2fef4d5cd6c6c65b9a26
> > > > *apache-brooklyn-1.0.0-rc3.deb
> > > >
> > > > The Nexus staging repository for the Maven artifacts is located at:
> > > >
> > > >
> > > >
> > >
> >
> https://repository.apache.org/content/repositories/orgapachebrooklyn-1055
> > > >
> > > > All release artifacts are signed with the following key:
> > > >
> > > >     https://people.apache.org/keys/committer/richard.asc
> > > >
> > > > KEYS file available here:
> > > >
> > > >     https://dist.apache.org/repos/dist/release/brooklyn/KEYS
> > > >
> > > >
> > > > The artifacts were built from git commit IDs:
> > > >
> > > > brooklyn: d3ef75f26240bee38d288d507364616380e4d853
> > > > brooklyn-client: 52b5546a5434eb6ecae55233d134f6dc11ce617b
> > > > brooklyn-dist: d55424d0c5994d9bceb804bcf0ecc7c80560370e
> > > > brooklyn-docs: d142ba2e2a65801e5bebea9e48bdc476d0265b7a
> > > > brooklyn-library: cb57d7ff725e6b59ac8ec2a533696664c298e917
> > > > brooklyn-server: 029fa6d1723550b500483aac5144749c28b6d6b7
> > > > brooklyn-ui: c209d0b9e9612f39ea462c912bf58b121932e3d0
> > > > All of the above have been tagged as "apache-brooklyn-1.0.0-rc3"
> > > >
> > > > Please vote on releasing this package as Apache Brooklyn 1.0.0.
> > > >
> > > > The vote will be open for at least 72 hours.
> > > > [ ] +1 Release this package as Apache Brooklyn 1.0.0
> > > > [ ] +0 no opinion
> > > > [ ] -1 Do not release this package because ...
> > > >
> > > >
> > > > Thanks!
> > > >
> > >
> > >
> > > --
> > > Paul Campbell
> > > Software Engineer
> > > *Cloudsoft <https://cloudsoft.io/> *| Bringing Business to the Cloud
> > >
> > > E: [email protected]
> > > M: 07476981644 <+447476981644>
> > > T: kemitixcode <https://twitter.com/kemitixcode>
> > > L: https://www.linkedin.com/in/paulkcampbell/
> > >
> >
>
>
> --
> Paul Campbell
> Software Engineer
> *Cloudsoft <https://cloudsoft.io/> *| Bringing Business to the Cloud
>
> E: [email protected]
> M: 07476981644 <+447476981644>
> T: kemitixcode <https://twitter.com/kemitixcode>
> L: https://www.linkedin.com/in/paulkcampbell/
>

Reply via email to