Forceu / barcodebuddy-docker

Docker image for BarcodeBuddy
MIT License
28 stars 16 forks source link

Not possible to install the docker image in HA #26

Closed Panoramiac closed 1 year ago

Panoramiac commented 1 year ago

It is currently not possible without modifications to install the current docker image

arm64v8-v1.8.1.5

as addon in Homeassistant. I figured out, that it seems to be conected to the used OS/ARCH plattform on Docker hub:


1.8.1.5 uses: linux/arm/v7

1.8.1.3 uses: linux/arm

my suggestion is to use linux/arm64 as used for the HA docker container.

HA logs the error:

23-03-09 15:09:09 ERROR (SyncWorker_2) [supervisor.docker.addon] Can't build 61bf1443/aarch64-addon-bbuddy-grocy:dev-docker-based: no matching manifest for linux/arm64 in the manifest list entries
23-03-09 15:09:09 ERROR (SyncWorker_2) [supervisor.docker.addon] Build log: 
Step 1/13 : ARG BUILD_FROM
Step 2/13 : FROM ${BUILD_FROM}

I played around with a fork and could get it working by modifing the build.json to (which I know is wrong but then HA uses then the docker image):

"arm64": "f0rc3/barcodebuddy-docker:arm64v8:latest", (exchanged aarch64 with arm64)

HA is logging the following:

23-03-09 15:27:06 CRITICAL (SyncWorker_5) [supervisor.utils.common] Can't parse /data/addons/git/61bf1443/build.json: extra keys not allowed @ data['build_from']['arm64']. Got 'f0rc3/barcodebuddy-docker:arm64v8:latest'

1.8.1.5 can now start on HA (with init:false in the config.json), but I can not connect to it. With 1.8.1.3 I can connect to it and I will strick to it for now (using my fork).

Forceu commented 1 year ago

Fixed in fc8bc152c76c92830c6abb91e2c3fe7aef879d61