xirixiz / dsmr-reader-docker

DSMR Reader in Docker.
https://hub.docker.com/r/xirixiz/dsmr-reader-docker
112 stars 33 forks source link

Update dsmrreader #344

Closed goegol closed 4 months ago

goegol commented 4 months ago

Update dsmrreader to 5.11 Also update some dependencies

xirixiz commented 4 months ago

Hey thanks @goegol! Did you already build and validate the changes? I've had some issues with Alpine 3.19 in the past (python) and also with the QEMU > v2.

If validated, I`m happy to merge this.

xirixiz commented 4 months ago

Just validated, and the build doesn't work out currently. The Qemu package is at a different location, and also it has breaking changes between v2 and v3. Let me know if you would like to investigate/fix this. If not, I`ll stick to the old Qemu version.

[2/2] STEP 14/19: RUN echo "**** install s6 overlay ****"   &&  case "${TARGETARCH}/${TARGETVARIANT}" in   "amd64/")  S6_ARCH=amd64  ;;   "arm64/")  S6_ARCH=aarch64  ;;   "arm/v7")  S6_ARCH=arm  ;;   "arm/v6")  S6_ARCH=armhf  ;;   esac   && curl "https://github.com/just-containers/s6-overlay/releases/download/v${S6_VERSION}/s6-overlay-${S6_ARCH}.tar.gz" -L -s --output /tmp/s6-overlay-${S6_ARCH}.tar.gz   && tar -C / -xf /tmp/s6-overlay-${S6_ARCH}.tar.gz
**** install s6 overlay ****
tar: This does not look like a tar archive
gzip: invalid magic
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Error: error building at STEP "RUN echo "**** install s6 overlay ****"   &&  case "${TARGETARCH}/${TARGETVARIANT}" in   "amd64/")  S6_ARCH=amd64  ;;   "arm64/")  S6_ARCH=aarch64  ;;   "arm/v7")  S6_ARCH=arm  ;;   "arm/v6")  S6_ARCH=armhf  ;;   esac   && curl "https://github.com/just-containers/s6-overlay/releases/download/v${S6_VERSION}/s6-overlay-${S6_ARCH}.tar.gz" -L -s --output /tmp/s6-overlay-${S6_ARCH}.tar.gz   && tar -C / -xf /tmp/s6-overlay-${S6_ARCH}.tar.gz": error while running runtime: exit status 2

I`m able to validate Alpine 19, no worries on that, I'll be able to solve issues easily (most probably)

goegol commented 4 months ago

Hi! i was trying to setup local dev environment, but got some issues. I revert the build to 2.2.0.3 for now.

xirixiz commented 4 months ago

I`ll validate it later today if the build is able to finalize. This is at least a part that needs to be added/modified:

# add s6 overlay
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_VERSION}/s6-overlay-noarch.tar.xz /tmp
RUN tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_VERSION}/s6-overlay-${S6_ARCH}.tar.xz /tmp
RUN tar -C / -Jxpf /tmp/s6-overlay-${S6_ARCH}.tar.xz

# add s6 optional symlinks
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_VERSION}/s6-overlay-symlinks-noarch.tar.xz /tmp
RUN tar -C / -Jxpf /tmp/s6-overlay-symlinks-noarch.tar.xz
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_VERSION}/s6-overlay-symlinks-arch.tar.xz /tmp
RUN tar -C / -Jxpf /tmp/s6-overlay-symlinks-arch.tar.xz

Sample: https://github.com/linuxserver/docker-baseimage-alpine/blob/master/Dockerfile