Uptime-Kuma-Web-API icon indicating copy to clipboard operation
Uptime-Kuma-Web-API copied to clipboard

32 bit container image

Open alastaid opened this issue 2 years ago • 5 comments

Hi, firstly thanks for your work on this, just what I have been looking for. I want to use this to integrate Kuma with my Home Assistant image, to have HA pause and resume monitoring on devices it is turning on/off during the day. Unfortunately my HA instance is on 32 bit OS (as I suspect are quite a lot as they are running on early raspberry pis) and the docker compose fails when trying to add your image.

Thanks,

alastaid avatar Dec 17 '22 10:12 alastaid

I've tried it using arm32v7/python Sorry this isn't possible for now because some dependencies only work in 64bits OS like watchfiles and bcrypt

MedAziz11 avatar Dec 19 '22 14:12 MedAziz11

I would advise you to use Docker Buildx to solve this for yourself with the Dockerfile presented in the repo.

I tested it on a Pi, x86 and whatever weird arm soup M1/M2 macs run.

Try a variation of

docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7,linux/386 -t your-image-name:your-tag --push .

I think this issue can be closed upon your confirmation.

nstankov-bg avatar Apr 10 '23 00:04 nstankov-bg

@nstankov-bg i tried the command u gave me but it seems like its not working ( error in the requirements installation )

MedAziz11 avatar Apr 11 '23 13:04 MedAziz11

I think it'd be more like:

docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7,linux/386 . -t uptime-kuma-rest:1.0

(may need to run docker buildx create --use first)

jasonmadigan avatar Apr 12 '23 13:04 jasonmadigan

I confirm, this don't work on linux/386.

0 130.3 Collecting watchfiles==0.17.0
#0 130.3   Downloading watchfiles-0.17.0.tar.gz (39 kB)
#0 130.7   Installing build dependencies: started
#0 144.5   Installing build dependencies: finished with status 'done'
#0 144.5   Getting requirements to build wheel: started
#0 145.5   Getting requirements to build wheel: finished with status 'done'
#0 145.5   Preparing metadata (pyproject.toml): started
#0 146.4   Preparing metadata (pyproject.toml): finished with status 'error'
#0 146.5   error: subprocess-exited-with-error
#0 146.5   
#0 146.5   × Preparing metadata (pyproject.toml) did not run successfully.
#0 146.5   │ exit code: 1
#0 146.5   ╰─> [6 lines of output]
#0 146.5       Checking for Rust toolchain....
#0 146.5       
#0 146.5       Cargo, the Rust package manager, is not installed or is not on PATH.
#0 146.5       This package requires Rust and Cargo to compile extensions. Install it through
#0 146.5       the system's package manager or via https://rustup.rs/
#0 146.5       
#0 146.5       [end of output]
#0 146.5   
#0 146.5   note: This error originates from a subprocess, and is likely not a problem with pip.
#0 146.5 error: metadata-generation-failed
#0 146.5 
#0 146.5 × Encountered error while generating package metadata.
#0 146.5 ╰─> See above for output.
#0 146.5 
#0 146.5 note: This is an issue with the package mentioned above, not pip.
#0 146.5 hint: See above for details.
------
WARNING: No output specified with docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load
Dockerfile:24
--------------------
  23 |     
  24 | >>> RUN pip install --upgrade pip && \
  25 | >>>     pip install --no-cache-dir -r ./requirements.txt
  26 |            
--------------------
ERROR: failed to solve: process "/bin/sh -c pip install --upgrade pip &&     pip install --no-cache-dir -r ./requirements.txt" did not complete successfully: exit code: 1

Library: https://pypi.org/project/watchfiles/ Binary Release(s)

Binaries are available for:

    Linux: x86_64, aarch64, i686, armv7l, musl-x86_64 & musl-aarch64
    MacOS: x86_64 & arm64 (except python 3.7)
    Windows: amd64 & win32

nstankov-bg avatar Apr 12 '23 23:04 nstankov-bg