Skip to contentSkip to conversation

contrib: hashserv: Dockerfile: Remove non-existent lib/codegen.py

PATCH In review Frieder Schrempf 3 participants 5 messages May 11 – May 18

lore
Share & tools
lore
#0 lore raw

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
index aec1f86fc..fe7e091ec 100644
@@ -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
#1 lore raw

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
index fe7e091ec..5c8b8dd11 100644
@@ -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
#2 lore raw

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.

---
 contrib/hashserv/Dockerfile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
contrib/hashserv/Dockerfile +0 -0
index fe7e091ec..5c8b8dd11 100644
@@ -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
#3 lore raw

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.

---
 contrib/hashserv/Dockerfile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
contrib/hashserv/Dockerfile +0 -0
index fe7e091ec..5c8b8dd11 100644
@@ -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.

[1]: https://endoflife.date/alpine-linux

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.

#4 lore raw

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.

---
 contrib/hashserv/Dockerfile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
contrib/hashserv/Dockerfile +0 -0
index fe7e091ec..5c8b8dd11 100644
@@ -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.

[1]: https://endoflife.date/alpine-linux

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