kivy / buildozer

Generic Python packager for Android and iOS
https://buildozer.readthedocs.io
MIT License
1.64k stars 482 forks source link

Dockerfile is buggy #1798

Open unton83 opened 1 month ago

unton83 commented 1 month ago

Description

Please, refer to https://buildozer.readthedocs.io/en/latest/installation.html for installation tips for Dockerfile.

  1. We need to use stable LTS, not latest one. FROM ubuntu:22.04
  2. Additional packages to install: libltdl-dev, wget, vim.
  3. We don't need to do COPY --chown=user:user . ${SRC_DIR}, because we run container with --volume "$PWD":/home/user/hostcwd.
  4. We need to install dependencies and buildozer (it is missing in current Dockerfile) running:
    RUN pip3 install --user --upgrade Cython==0.29.33 virtualenv   # without dir
    RUN pip3 install --user --upgrade buildozer
    RUN echo "export PATH=$PATH:~/.local/bin/" >> ~/.bashrc
  5. I think, entrypoint can be ["/bin/bash"] not ["buildozer"], because, when we run container with --volume "$HOME/.buildozer":/home/user/.buildozer and -it, we can edit some code with vim, or do buildozer appclean or something else.
manatlan commented 2 weeks ago

Yes I confirm ;-)

the DockerFile doesn't work AS IS with ubuntu:latest (which is now a 24.04) ... but it works as expected with ubuntu:22.04 !

Here is a fork : https://github.com/manatlan/buildozer

and here is a simple PR : https://github.com/kivy/buildozer/pull/1804 ;-)

misl6 commented 1 week ago

1804 merged, anything else we should fix?

unton83 commented 6 days ago

I'm new in github issues tracker. Do i need to do something with awaiting-reply label? Do i need to close the issue?

misl6 commented 6 days ago

If the issue got fixed via #1804, please close the issue. If you think we should fix something else, feel free to propose changes via a PR or here.

awaiting-reply is an automated label used to close issues after a period of inactivity.

unton83 commented 6 days ago

No, my issue is wider, not just ubuntu version. Nothing else, but only things, that i mentioned.