contrib: hashserv: Dockerfile: Remove non-existent lib/codegen.py
PATCH 1/2 contrib: hashserv: Dockerfile: Remove non-existent lib/codegen.py
From: Frieder Schrempf <[email protected]>
This file has been removed and is not required anymore. Fix the Docker image build accordingly.
--- contrib/hashserv/Dockerfile | 1 - 1 file changed, 1 deletion(-)
contrib/hashserv/Dockerfile +0 -1
@@ -16,7 +16,6 @@ RUN apk add --no-cache python3 libgcc COPY bin/bitbake-hashserv /opt/bbhashserv/bin/ COPY lib/hashserv /opt/bbhashserv/lib/hashserv/ COPY lib/bb /opt/bbhashserv/lib/bb/ -COPY lib/codegen.py /opt/bbhashserv/lib/codegen.py COPY lib/ply /opt/bbhashserv/lib/ply/ COPY lib/bs4 /opt/bbhashserv/lib/bs4/
Signature · 1 line
2.54.0
PATCH 2/2 contrib: hashserv: Dockerfile: Update base image
From: Frieder Schrempf <[email protected]>
Alpine 3.13 is out-of-date and doesn't provide a Python version that is comaptible with the current version of bitbake master. Fix this by upgrading the alpine base image and installing the missing websockets module.
--- contrib/hashserv/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
contrib/hashserv/Dockerfile +2 -2
@@ -9,9 +9,9 @@ # docker build -f contrib/hashserv/Dockerfile . # -FROM alpine:3.13.1 +FROM alpine:3.23 -RUN apk add --no-cache python3 libgcc +RUN apk add --no-cache python3 py3-websockets libgcc COPY bin/bitbake-hashserv /opt/bbhashserv/bin/ COPY lib/hashserv /opt/bbhashserv/lib/hashserv/
Signature · 1 line
2.54.0
Re: [PATCH 2/2] contrib: hashserv: Dockerfile: Update base image
Quoted 18 lines · Frieder Schrempf
From: Frieder Schrempf <[email protected]>
Alpine 3.13 is out-of-date and doesn't provide a Python version that is comaptible with the current version of bitbake master. Fix this by upgrading the alpine base image and installing the missing websockets module.
Signed-off-by Frieder Schrempf <[email protected]>--- contrib/hashserv/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)contrib/hashserv/Dockerfile +0
-0@@ -9,9 +9,9 @@ # docker build -f contrib/hashserv/Dockerfile .
contrib/hashserv/Dockerfile line 17
Quoted 10 lines
contrib/hashserv/Dockerfile +2
-2# -FROM alpine:3.13.1 +FROM alpine:3.23 -RUN apk add --no-cache python3 libgcc +RUN apk add --no-cache python3 py3-websockets libgcc COPY bin/bitbake-hashserv /opt/bbhashserv/bin/ COPY lib/hashserv /opt/bbhashserv/lib/hashserv/
Thanks for sending this! Alpine 3.13 was end-of-life 3.5 years ago [1]...
We also need to update the Dockerfile for prserv. I wonder if we should just use alpine:latest in both of them.
[1]: https://endoflife.date/alpine-linux
Best regards,
Signature · 1 line
Paul Barker
Re: [PATCH 2/2] contrib: hashserv: Dockerfile: Update base image
Quoted 33 lines · Paul Barker
Quoted 18 lines · Frieder Schrempf
From: Frieder Schrempf <[email protected]>
Alpine 3.13 is out-of-date and doesn't provide a Python version that is comaptible with the current version of bitbake master. Fix this by upgrading the alpine base image and installing the missing websockets module.
Signed-off-by Frieder Schrempf <[email protected]>--- contrib/hashserv/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)contrib/hashserv/Dockerfile +0
-0@@ -9,9 +9,9 @@ # docker build -f contrib/hashserv/Dockerfile .contrib/hashserv/Dockerfile line 17
Quoted 10 lines
contrib/hashserv/Dockerfile +2
-2# -FROM alpine:3.13.1 +FROM alpine:3.23 -RUN apk add --no-cache python3 libgcc +RUN apk add --no-cache python3 py3-websockets libgcc COPY bin/bitbake-hashserv /opt/bbhashserv/bin/ COPY lib/hashserv /opt/bbhashserv/lib/hashserv/Thanks for sending this! Alpine 3.13 was end-of-life 3.5 years ago [1]...
Quoted 4 lines
We also need to update the Dockerfile for prserv. I wonder if we should just use alpine:latest in both of them.
Yes, alpine:latest would also work for me. The downside would be that image builds could break silently if compatibility issues between bitbake and the latest alpine release occur.
The more stable solution would be to pin the alpine version and have CI builds and tests for the image.
Anyway, for me this was just a drive-by fix while I was building a hashserv image from the official Dockerfile and I don't have any strong opinions here.
Re: [PATCH 2/2] contrib: hashserv: Dockerfile: Update base image
Quoted 42 lines · Frieder Schrempf
Quoted 33 lines · Paul Barker
Quoted 18 lines · Frieder Schrempf
From: Frieder Schrempf <[email protected]>
Alpine 3.13 is out-of-date and doesn't provide a Python version that is comaptible with the current version of bitbake master. Fix this by upgrading the alpine base image and installing the missing websockets module.
Signed-off-by Frieder Schrempf <[email protected]>--- contrib/hashserv/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)contrib/hashserv/Dockerfile +0
-0@@ -9,9 +9,9 @@ # docker build -f contrib/hashserv/Dockerfile .contrib/hashserv/Dockerfile line 17
Quoted 10 lines
contrib/hashserv/Dockerfile +2
-2# -FROM alpine:3.13.1 +FROM alpine:3.23 -RUN apk add --no-cache python3 libgcc +RUN apk add --no-cache python3 py3-websockets libgcc COPY bin/bitbake-hashserv /opt/bbhashserv/bin/ COPY lib/hashserv /opt/bbhashserv/lib/hashserv/Thanks for sending this! Alpine 3.13 was end-of-life 3.5 years ago [1]...
Quoted 4 lines
We also need to update the Dockerfile for prserv. I wonder if we should just use alpine:latest in both of them.
Yes, alpine:latest would also work for me. The downside would be that image builds could break silently if compatibility issues between bitbake and the latest alpine release occur.
Quoted 6 lines
The more stable solution would be to pin the alpine version and have CI builds and tests for the image.
Anyway, for me this was just a drive-by fix while I was building a hashserv image from the official Dockerfile and I don't have any strong opinions here.
Ok, it would be better to use a fixed Alpine Linux release and update this regularly instead of using 'latest'. So we should take this patch. I'll send a separate patch to update the prserv Dockerfile.
Best regards,
Signature · 1 line
Paul Barker