Re: Docker build is broken for 4.16.4

2024-04-08 Thread Enrico Olivelli
Il Mar 2 Apr 2024, 15:49 Lari Hotari  ha scritto:

> Does this work for 4.16.5 ?
>
> I fixed outdated Dockerfile issues in PR
> https://github.com/apache/bookkeeper/pull/4197 / (branch-4.16:
> https://github.com/apache/bookkeeper/pull/4206).
> Diff:
> https://github.com/apache/bookkeeper/pull/4206/files#diff-f34da55ca08f1a30591d8b0b3e885bcc678537b2a9a4aadea4f190806b374ddcL20
>
> ubuntu-22.10 is no longer supported and that's the source of the error
> message "The repository 'http://archive.ubuntu.com/ubuntu
> kinetic-updates Release' does not have a Release file."
> In the PR, I replaced it with ubuntu-22.04 (LTS version, support
> continues).
>


With your patch the docker images should work.
Maybe we should add an integration test that uses the docker images in CI

Enrico


> -Lari
>
>
> On Tue, 2 Apr 2024 at 16:06, Enrico Olivelli  wrote:
> >
> > Hello Bookkeepers,
> > it seems that docker hub is no more able to build our docker images
> >
> > You can find below the error
> >
> > Any ideas?
> >
> > Enrico
> >
> > Link to the build
> >
> https://hub.docker.com/repository/registry-1.docker.io/apache/bookkeeper/builds/114a5d41-f061-47d4-b9f4-744aafaaa665
> >
> > Full logs
> >
> > 2024-04-02T12:08:33Z Building in Docker Cloud's infrastructure...
> > 2024-04-02T12:08:34Z Cloning into '.'...
> > 2024-04-02T12:08:34Z Warning: Permanently added the RSA host key for
> > IP address '140.82.114.3' to the list of known hosts.
> > 2024-04-02T12:09:14Z Switched to a new branch 'release-4.16.4-docker'
> > 2024-04-02T12:09:14Z Executing build hook...
> > 2024-04-02T12:09:14Z + [[ 4.16.4 = \l\a\t\e\s\t ]]
> > 2024-04-02T12:09:14Z + docker build --build-arg BK_VERSION=4.16.4 -t
> > index.docker.io/apache/bookkeeper:4.16.4 .
> > 2024-04-02T12:09:20Z #1 [internal] load build definition from Dockerfile
> > 2024-04-02T12:09:20Z #1 transferring dockerfile:
> > 2024-04-02T12:09:20Z #1 transferring dockerfile: 2.71kB done
> > 2024-04-02T12:09:20Z #1 DONE 0.1s
> > 2024-04-02T12:09:20Z
> > 2024-04-02T12:09:20Z #2 [internal] load .dockerignore
> > 2024-04-02T12:09:20Z #2 transferring context: 2B done
> > 2024-04-02T12:09:20Z #2 DONE 0.0s
> > 2024-04-02T12:09:20Z
> > 2024-04-02T12:09:20Z #3 [internal] load metadata for
> > docker.io/library/ubuntu:22.10
> > 2024-04-02T12:09:21Z #3 ...
> > 2024-04-02T12:09:21Z
> > 2024-04-02T12:09:21Z #4 [auth] library/ubuntu:pull token for
> > registry-1.docker.io
> > 2024-04-02T12:09:21Z #4 DONE 0.0s
> > 2024-04-02T12:09:21Z
> > 2024-04-02T12:09:21Z #3 [internal] load metadata for
> > docker.io/library/ubuntu:22.10
> > 2024-04-02T12:09:21Z #3 DONE 0.6s
> > 2024-04-02T12:09:21Z
> > 2024-04-02T12:09:21Z #5 [1/5] FROM
> >
> docker.io/library/ubuntu:22.10@sha256:e322f4808315c387868a9135beeb11435b5b83130a8599fd7d0014452c34f489
> > 2024-04-02T12:09:21Z #5 resolve
> >
> docker.io/library/ubuntu:22.10@sha256:e322f4808315c387868a9135beeb11435b5b83130a8599fd7d0014452c34f489
> > 0.1s done
> > 2024-04-02T12:09:21Z #5 ...
> > 2024-04-02T12:09:21Z
> > 2024-04-02T12:09:21Z #6 [internal] load build context
> > 2024-04-02T12:09:21Z #6 transferring context: 18.21kB done
> > 2024-04-02T12:09:21Z #6 DONE 0.0s
> > 2024-04-02T12:09:21Z
> > 2024-04-02T12:09:21Z #5 [1/5] FROM
> >
> docker.io/library/ubuntu:22.10@sha256:e322f4808315c387868a9135beeb11435b5b83130a8599fd7d0014452c34f489
> > 2024-04-02T12:09:21Z #5
> > sha256:d36481db487c935436420cc4b705db8c81eec3872085ebd27963b775695fbe24
> > 424B / 424B done
> > 2024-04-02T12:09:21Z #5
> > sha256:692eb4a905c074054e0a35d647671f0e32ed150d15b23fd7bc745cfb2fdeddbd
> > 2.30kB / 2.30kB done
> > 2024-04-02T12:09:21Z #5
> > sha256:3ad6ea492c35ef48892b4587449510d372516d5969073eeaa6601a380e861c57
> > 0B / 26.70MB 0.1s
> > 2024-04-02T12:09:21Z #5
> > sha256:e322f4808315c387868a9135beeb11435b5b83130a8599fd7d0014452c34f489
> > 1.13kB / 1.13kB done
> > 2024-04-02T12:09:21Z #5
> > sha256:3ad6ea492c35ef48892b4587449510d372516d5969073eeaa6601a380e861c57
> > 22.02MB / 26.70MB 0.3s
> > 2024-04-02T12:09:21Z #5
> > sha256:3ad6ea492c35ef48892b4587449510d372516d5969073eeaa6601a380e861c57
> > 26.70MB / 26.70MB 0.4s
> > 2024-04-02T12:09:22Z #5
> > sha256:3ad6ea492c35ef48892b4587449510d372516d5969073eeaa6601a380e861c57
> > 26.70MB / 26.70MB 0.6s done
> > 2024-04-02T12:09:22Z #5 extracting
> > sha256:3ad6ea492c35ef48892b4587449510d372516d5969073eeaa6601a380e861c57
> > 2024-04-02T12:09:25Z #5 extracting
> > sha256:3ad6ea492c35ef48892b4587449510d372516d5969073eeaa6601a380e861c57
> > 3.3s done
> > 2024-04-02T12:09:26Z #5 DONE 4.5s
> > 2024-04-02T12:09:26Z
> > 2024-04-02T12:09:26Z #7 [2/5] RUN set -x && adduser "bookkeeper" &&
> > apt-get update && apt-get install -y --no-install-recommends
> > openjdk-17-jdk && apt-get install -y --no-install-recommends python3
> > pip && ln -s /usr/bin/python3 /usr/bin/python && apt-get install -y
> > --no-install-recommends gpg gpg-agent wget sudo && apt-get -y --purge
> > autoremove && apt-get autoclean && apt-get clean && rm -rf
> > /var/lib/apt/lists/* && mkdir -pv

Re: Docker build is broken for 4.16.4

2024-04-02 Thread Lari Hotari
Does this work for 4.16.5 ?

I fixed outdated Dockerfile issues in PR
https://github.com/apache/bookkeeper/pull/4197 / (branch-4.16:
https://github.com/apache/bookkeeper/pull/4206).
Diff: 
https://github.com/apache/bookkeeper/pull/4206/files#diff-f34da55ca08f1a30591d8b0b3e885bcc678537b2a9a4aadea4f190806b374ddcL20

ubuntu-22.10 is no longer supported and that's the source of the error
message "The repository 'http://archive.ubuntu.com/ubuntu
kinetic-updates Release' does not have a Release file."
In the PR, I replaced it with ubuntu-22.04 (LTS version, support continues).

-Lari


On Tue, 2 Apr 2024 at 16:06, Enrico Olivelli  wrote:
>
> Hello Bookkeepers,
> it seems that docker hub is no more able to build our docker images
>
> You can find below the error
>
> Any ideas?
>
> Enrico
>
> Link to the build
> https://hub.docker.com/repository/registry-1.docker.io/apache/bookkeeper/builds/114a5d41-f061-47d4-b9f4-744aafaaa665
>
> Full logs
>
> 2024-04-02T12:08:33Z Building in Docker Cloud's infrastructure...
> 2024-04-02T12:08:34Z Cloning into '.'...
> 2024-04-02T12:08:34Z Warning: Permanently added the RSA host key for
> IP address '140.82.114.3' to the list of known hosts.
> 2024-04-02T12:09:14Z Switched to a new branch 'release-4.16.4-docker'
> 2024-04-02T12:09:14Z Executing build hook...
> 2024-04-02T12:09:14Z + [[ 4.16.4 = \l\a\t\e\s\t ]]
> 2024-04-02T12:09:14Z + docker build --build-arg BK_VERSION=4.16.4 -t
> index.docker.io/apache/bookkeeper:4.16.4 .
> 2024-04-02T12:09:20Z #1 [internal] load build definition from Dockerfile
> 2024-04-02T12:09:20Z #1 transferring dockerfile:
> 2024-04-02T12:09:20Z #1 transferring dockerfile: 2.71kB done
> 2024-04-02T12:09:20Z #1 DONE 0.1s
> 2024-04-02T12:09:20Z
> 2024-04-02T12:09:20Z #2 [internal] load .dockerignore
> 2024-04-02T12:09:20Z #2 transferring context: 2B done
> 2024-04-02T12:09:20Z #2 DONE 0.0s
> 2024-04-02T12:09:20Z
> 2024-04-02T12:09:20Z #3 [internal] load metadata for
> docker.io/library/ubuntu:22.10
> 2024-04-02T12:09:21Z #3 ...
> 2024-04-02T12:09:21Z
> 2024-04-02T12:09:21Z #4 [auth] library/ubuntu:pull token for
> registry-1.docker.io
> 2024-04-02T12:09:21Z #4 DONE 0.0s
> 2024-04-02T12:09:21Z
> 2024-04-02T12:09:21Z #3 [internal] load metadata for
> docker.io/library/ubuntu:22.10
> 2024-04-02T12:09:21Z #3 DONE 0.6s
> 2024-04-02T12:09:21Z
> 2024-04-02T12:09:21Z #5 [1/5] FROM
> docker.io/library/ubuntu:22.10@sha256:e322f4808315c387868a9135beeb11435b5b83130a8599fd7d0014452c34f489
> 2024-04-02T12:09:21Z #5 resolve
> docker.io/library/ubuntu:22.10@sha256:e322f4808315c387868a9135beeb11435b5b83130a8599fd7d0014452c34f489
> 0.1s done
> 2024-04-02T12:09:21Z #5 ...
> 2024-04-02T12:09:21Z
> 2024-04-02T12:09:21Z #6 [internal] load build context
> 2024-04-02T12:09:21Z #6 transferring context: 18.21kB done
> 2024-04-02T12:09:21Z #6 DONE 0.0s
> 2024-04-02T12:09:21Z
> 2024-04-02T12:09:21Z #5 [1/5] FROM
> docker.io/library/ubuntu:22.10@sha256:e322f4808315c387868a9135beeb11435b5b83130a8599fd7d0014452c34f489
> 2024-04-02T12:09:21Z #5
> sha256:d36481db487c935436420cc4b705db8c81eec3872085ebd27963b775695fbe24
> 424B / 424B done
> 2024-04-02T12:09:21Z #5
> sha256:692eb4a905c074054e0a35d647671f0e32ed150d15b23fd7bc745cfb2fdeddbd
> 2.30kB / 2.30kB done
> 2024-04-02T12:09:21Z #5
> sha256:3ad6ea492c35ef48892b4587449510d372516d5969073eeaa6601a380e861c57
> 0B / 26.70MB 0.1s
> 2024-04-02T12:09:21Z #5
> sha256:e322f4808315c387868a9135beeb11435b5b83130a8599fd7d0014452c34f489
> 1.13kB / 1.13kB done
> 2024-04-02T12:09:21Z #5
> sha256:3ad6ea492c35ef48892b4587449510d372516d5969073eeaa6601a380e861c57
> 22.02MB / 26.70MB 0.3s
> 2024-04-02T12:09:21Z #5
> sha256:3ad6ea492c35ef48892b4587449510d372516d5969073eeaa6601a380e861c57
> 26.70MB / 26.70MB 0.4s
> 2024-04-02T12:09:22Z #5
> sha256:3ad6ea492c35ef48892b4587449510d372516d5969073eeaa6601a380e861c57
> 26.70MB / 26.70MB 0.6s done
> 2024-04-02T12:09:22Z #5 extracting
> sha256:3ad6ea492c35ef48892b4587449510d372516d5969073eeaa6601a380e861c57
> 2024-04-02T12:09:25Z #5 extracting
> sha256:3ad6ea492c35ef48892b4587449510d372516d5969073eeaa6601a380e861c57
> 3.3s done
> 2024-04-02T12:09:26Z #5 DONE 4.5s
> 2024-04-02T12:09:26Z
> 2024-04-02T12:09:26Z #7 [2/5] RUN set -x && adduser "bookkeeper" &&
> apt-get update && apt-get install -y --no-install-recommends
> openjdk-17-jdk && apt-get install -y --no-install-recommends python3
> pip && ln -s /usr/bin/python3 /usr/bin/python && apt-get install -y
> --no-install-recommends gpg gpg-agent wget sudo && apt-get -y --purge
> autoremove && apt-get autoclean && apt-get clean && rm -rf
> /var/lib/apt/lists/* && mkdir -pv /opt && cd /opt && wget -q
> "https://archive.apache.org/dist/bookkeeper/bookkeeper-4.16.4/bookkeeper-server-4.16.4-bin.tar.gz";
> && wget -q 
> "https://archive.apache.org/dist/bookkeeper/bookkeeper-4.16.4/bookkeeper-server-4.16.4-bin.tar.gz.asc";
> && wget -q 
> "https://archive.apache.org/dist/bookkeeper/bookkeeper-4.16.4/bookkeeper-server-4.16.4-bin.tar.gz.sha512";
> && sha512sum -c bookkeeper-server