Update docker.rst
I don't know if the old way works, but this new way works for me.
Thanks @yingshaoxo, I have no objection to this (but made a small wording change). I'll defer to @AndreMiras as the docker expert though.
Thanks @yingshaoxo for the pull request.
I would rather not rely on a repo that's not under the kivy organisation.
So I think it would be better if the method were more generic and not relying on yingshaoxo/kivy-diary.
If I understood correctly, the method you're presenting is about postponing the one-liner we have to getting a shell to the container in --interactive mode to later run the p4a command within it. Or is it something else?
If it's the case, then I think adding a note saying so should be enough.
Also we could add to clarify that all p4a commands are then available within this shell e.g p4a apk --private ...
@AndreMiras
Yeah, you're right. One line of docker command won't be enough, often we need to get into the container to do more stuff to make things done.
I use yingshaoxo/kivy-diary there is because when I write that tutorial, I suddenly realize that I couldn't make clear explanations without an existing compilable kivy repository. (I have to show them how to set the right Env variables and how to use p4a.) You guys could use your own if you have one. It's not a problem.
The initial purpose for me to write that tutorial is :
-
I think the traditional way of installation for compiling kivy app is too complicate to make. A simple point would be you have to install JDK-8 to use p4a. But it's out of date. And it definitely would conflict with modern software in Linux. The only reasonable way for compiling kivy is to use Docker.
-
For those people in China, they're facing a big problem from the GFW. So it can be very difficult for them to install the whole SDK and NDK within the docker image. Meanwhile, the docker container is cheap, it can be messed up or destroyed easily. That's why local SDK and NDK with Android Studio matters.
In the end, I'm just a contributor, I do want I can to make things simpler, as for whether you take it, it depends on you. But if Python wants to exceed from the competition of JavaScript, it must be a more friendly cross-platfrom programming language.