InvenTree: "arm/v7" architecture missing in current docker builds?

Please verify that this bug has NOT been raised before.

  • I checked and didn’t find a similar issue

Describe the bug*

During a docker pull a minute ago I got the following error:

$ docker-compose pull
Pulling inventree-db     ... done
Pulling inventree-server ... pulling from inventree/inventree
Pulling inventree-worker ... pulling from inventree/inventree
Pulling inventree-proxy  ... done

ERROR: for inventree-server  no matching manifest for linux/arm/v7 in the manifest list entries

ERROR: for inventree-worker  no matching manifest for linux/arm/v7 in the manifest list entries
ERROR: no matching manifest for linux/arm/v7 in the manifest list entries

Looking at docker hub I do indeed see no arm/v7 OS/ARCH listed for latest and stable - has this to do with ongoing Dockerfile refactoring?

Steps to Reproduce

$ docker-compose pull

Expected behaviour

find a suitable docker image I guess 😉

Deployment Method

  • Docker
  • Bare metal

Version Information

Hardware is a Raspberry Pi 4 - my last update was 3 months ago:

$ docker image ls inventree/inventree
REPOSITORY            TAG       IMAGE ID       CREATED        SIZE
inventree/inventree   latest    b304aa931b5c   3 months ago   850MB

Please verify if you can reproduce this bug on the demo site.

  • I can reproduce this bug on the demo site.

Relevant log output

[none]

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 35 (33 by maintainers)

Most upvoted comments

What about installing the 64 bit raspberry pi os version? Most modern raspberry pis >= 3 should support that. That way arm64 docker images should run fine.

Thanks for the hints - I have updated my upgrade routine to building myself with

$ docker build --tag inventree/inventree:latest . --target production

integrates neatly into the existing setup just like pulled from docker hub, sweet!

Oh, i see - sure, I will give that a try right away. Here is the output:

$ docker build . --target production
[+] Building 1264.2s (16/16) FINISHED                                                                                                                        docker:default
 => [internal] load build definition from Dockerfile                                                                                                                   0.1s
 => => transferring dockerfile: 4.79kB                                                                                                                                 0.0s
 => [internal] load .dockerignore                                                                                                                                      0.2s
 => => transferring context: 2B                                                                                                                                        0.0s
 => [internal] load metadata for docker.io/library/python:3.10-alpine3.18                                                                                              2.2s
 => [inventree_base  1/10] FROM docker.io/library/python:3.10-alpine3.18@sha256:a578a0d69e5df6a9d7af73699553dc80717b2871a24cc9536130a40512b41295                      24.5s
 => => resolve docker.io/library/python:3.10-alpine3.18@sha256:a578a0d69e5df6a9d7af73699553dc80717b2871a24cc9536130a40512b41295                                        0.2s
 => => sha256:a578a0d69e5df6a9d7af73699553dc80717b2871a24cc9536130a40512b41295 1.65kB / 1.65kB                                                                         0.0s
 => => sha256:dea0af8d19fa394b2f379ea1a34e05868ee10d0d2e0ac192543577e836e8bbc3 1.37kB / 1.37kB                                                                         0.0s
 => => sha256:b905d9f061ee99a4a2f70ae543d39534d0ebd5a2a3160586d8040e33b46ab236 6.28kB / 6.28kB                                                                         0.0s
 => => sha256:633ba29fd335042456b6e2c073636f6fa30de56f1331c442914739b92a479974 2.90MB / 2.90MB                                                                        11.5s
 => => sha256:1236e9bf79acbf88e15dcaae128ebaf83d42568946907850955a6b758231acc3 621.77kB / 621.77kB                                                                     0.5s
 => => sha256:7fbdde676e3feacce6fa851256b1c686302870b25e3046b4cda73470341f7fb9 11.27MB / 11.27MB                                                                      11.6s
 => => sha256:d20359761b99a9b8ca0aa6e49e6a5ebb2afdaa26bd813c5855a5cd100367ee9e 240B / 240B                                                                             2.2s
 => => extracting sha256:633ba29fd335042456b6e2c073636f6fa30de56f1331c442914739b92a479974                                                                              0.3s
 => => sha256:952f0aa3a3458a9764847c257a30239d349daf74974307382e367148f6512e5b 3.08MB / 3.08MB                                                                        13.3s
 => => extracting sha256:1236e9bf79acbf88e15dcaae128ebaf83d42568946907850955a6b758231acc3                                                                              0.6s
 => => extracting sha256:7fbdde676e3feacce6fa851256b1c686302870b25e3046b4cda73470341f7fb9                                                                              1.5s
 => => extracting sha256:d20359761b99a9b8ca0aa6e49e6a5ebb2afdaa26bd813c5855a5cd100367ee9e                                                                              0.0s
 => => extracting sha256:952f0aa3a3458a9764847c257a30239d349daf74974307382e367148f6512e5b                                                                              0.8s
 => [internal] load build context                                                                                                                                     11.8s
 => => transferring context: 50.80MB                                                                                                                                  10.8s
 => [inventree_base  2/10] RUN apk add --no-cache     git gettext py-cryptography     libjpeg libwebp zlib     py3-pip py3-pillow py3-cffi py3-brotli pango poppler-  51.7s
 => [inventree_base  3/10] RUN mkdir -p /home/inventree                                                                                                                1.0s
 => [inventree_base  4/10] WORKDIR /home/inventree                                                                                                                     0.2s 
 => [inventree_base  5/10] COPY ./docker/requirements.txt base_requirements.txt                                                                                        0.6s 
 => [inventree_base  6/10] COPY ./requirements.txt ./                                                                                                                  0.3s 
 => [inventree_base  7/10] RUN if [ `apk --print-arch` = "armv7" ]; then     printf "[global]\nextra-index-url=https://www.piwheels.org/simple\n" > /etc/pip.conf ;    0.8s 
 => [inventree_base  8/10] RUN apk add --no-cache --virtual .build-deps     gcc g++ musl-dev openssl-dev libffi-dev cargo python3-dev     jpeg-dev openjpeg-dev li  1149.2s 
 => [inventree_base  9/10] COPY tasks.py docker/gunicorn.conf.py docker/init.sh ./                                                                                     1.8s 
 => [inventree_base 10/10] RUN chmod +x init.sh                                                                                                                        1.0s 
 => [production 1/1] COPY InvenTree ./InvenTree                                                                                                                       16.6s 
 => exporting to image                                                                                                                                                13.8s 
 => => exporting layers                                                                                                                                               13.8s 
 => => writing image sha256:a3b9caff980f60f6b3b92dd4ee9464a74389b5a5864839316f7b0c14f1923db6   

Seems to have run without issues…