victor-rds / docker-etebase

Docker image files for Etebase server
GNU Affero General Public License v3.0
95 stars 28 forks source link

Alpine ARM build failing #181

Closed victor-rds closed 4 months ago

victor-rds commented 1 year ago

ARMv7 builds fail with the log below, seems easy to fix by adding cargo/rust to the dependencies

#8 223.5 Collecting watchfiles==0.18.1
#8 223.5   Downloading watchfiles-0.18.1.tar.gz (35 kB)
#8 223.6   Installing build dependencies: started
#8 231.2   Installing build dependencies: finished with status 'done'
#8 231.2   Getting requirements to build wheel: started
#8 231.8   Getting requirements to build wheel: finished with status 'done'
#8 231.8   Preparing metadata (pyproject.toml): started
#8 232.3   Preparing metadata (pyproject.toml): finished with status 'error'
#8 232.4   error: subprocess-exited-with-error
#8 232.4
#8 232.4   × Preparing metadata (pyproject.toml) did not run successfully.
#8 232.4   │ exit code: 1
#8 232.4   ╰─> [6 lines of output]
#8 232.4
#8 232.4       Cargo, the Rust package manager, is not installed or is not on PATH.
#8 232.4       This package requires Rust and Cargo to compile extensions. Install it through
#8 232.4       the system's package manager or via https://rustup.rs/
#8 232.4
#8 232.4       Checking for Rust toolchain....
#8 232.4       [end of output]
#8 232.4
#8 232.4   note: This error originates from a subprocess, and is likely not a problem with pip.
#8 232.4 error: metadata-generation-failed
#8 232.4
#8 232.4 × Encountered error while generating package metadata.
#8 232.4 ╰─> See above for output.
#8 232.4
#8 232.4 note: This is an issue with the package mentioned above, not pip.
#8 232.4 hint: See above for details.
victor-rds commented 1 year ago
#8 220.2 Collecting watchfiles==0.18.1
#8 220.2   Downloading watchfiles-0.18.1.tar.gz (35 kB)
#8 220.3   Installing build dependencies: started
#8 227.5   Installing build dependencies: finished with status 'done'
#8 227.5   Getting requirements to build wheel: started
#8 228.1   Getting requirements to build wheel: finished with status 'done'
#8 228.1   Preparing metadata (pyproject.toml): started
#8 316.3   Preparing metadata (pyproject.toml): still running...
#8 316.4   Preparing metadata (pyproject.toml): finished with status 'error'
#8 316.4   error: subprocess-exited-with-error
#8 316.4
#8 316.4   × Preparing metadata (pyproject.toml) did not run successfully.
#8 316.4   │ exit code: 1
#8 316.4   ╰─> [13 lines of output]
#8 316.4       💥 maturin failed
#8 316.4         Caused by: Cargo metadata failed. Does your crate compile with `cargo build`?
#8 316.4         Caused by: `cargo metadata` exited with an error:     Updating crates.io index
#8 316.4       error: Unable to update registry `crates-io`
#8 316.4
#8 316.4       Caused by:
#8 316.4         failed to fetch `https://github.com/rust-lang/crates.io-index`
#8 316.4
#8 316.4       Caused by:
#8 316.4         unexpected data at the end of the pack; class=Indexer (15)
#8 316.4       Error running maturin: Command '['maturin', 'pep517', 'write-dist-info', '--metadata-directory', '/tmp/pip-modern-metadata-5l4_4zwi', '--interpreter', '/usr/local/bin/python']' returned non-zero exit status 1.
#8 316.4       Checking for Rust toolchain....
#8 316.4       Running `maturin pep517 write-dist-info --metadata-directory /tmp/pip-modern-metadata-5l4_4zwi --interpreter /usr/local/bin/python`
#8 316.4       [end of output]
#8 316.4
#8 316.4   note: This error originates from a subprocess, and is likely not a problem with pip.
#8 316.4 error: metadata-generation-failed
#8 316.4
#8 316.4 × Encountered error while generating package metadata.
#8 316.4 ╰─> See above for output.
#8 316.4
#8 316.4 note: This is an issue with the package mentioned above, not pip.
#8 316.4 hint: See above for details.
victor-rds commented 1 year ago

AFAIK the is no ARMv7 binary for Python 3.11, and the build is failing locally and on GH servers (see errors above), until this is fixed please use slim variant for ARMv7.

victor-rds commented 4 months ago

As of version 0.14.0, I have deprecated the support for arm/v7 Docker images for the Etebase Server. This means that new versions and updates will no longer be provided for the arm/v7 architecture.

Many dependencies required by the Etebase Server have become increasingly difficult or impossible to build on the arm/v7 architecture using the default base Python images.