-
-
Notifications
You must be signed in to change notification settings - Fork 508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
proposed PR: automate dockerbuild and push to dockerhub #920
Comments
for anyone who wants to try my completed solution and comment here see my forked instructions https://github.com/scyto/tuya-convert/blob/master/README.md#use-prebuilt-image |
Hi @scyto Thanks for sharing your thoughts. I'm not familiar with Docker but happy to accept community contributions to improve the experience for everyone. I'm including @Cyber1000 @ohadlevy @aravindkoneru on this discussion as they too have thoughts on the Docker approach. I defer to the experts, please let me know when you reach a consensus on the best approach and I'll be happy to merge. |
@scyto sounds nice, had a look on your sources
I don't know exactly for now, the install_prereq.sh was here before and has nothing to do with docker itself - I just used the existing install_prereq.sh, maybe @kueblc can elaborate a little bit more on this (why python3-dev is in like you asked). I can't remember if I tried to remove some of the dependencies in it, it's too long since. ad 4:
exactly the same as the GATEWAY-variable in config.txt, so no docker specific part here too (except that it actually replaces the GATEWAY-variable in config.txt within the docker container) One thing to consider: But all in all well done |
@Cyber1000 sure i can try alpine, many of my other containers use it and it is often my starting point. Can't recall why I did it here (did i just default to debian slim or did i hit an alpine roadblock); ah just checked your PR. Oh I think it was because i couldn't be bothered to chase all the req's on alpine - its always a PITA :-) - that was likely my root of the question about reqs too! (alpine is esp annoying if one has something that needs glibc). I actually ran these tests on my pi - everything I do is multiarchitecture :-) - i haven't tested on the more obscure platforms, the pull and no issues raised is my indicator if there are issues. What size is your image coming out at? |
probably better for me to wait for your move to alpine to be merged, then i can rebase and then re-do the github build actions if folks want |
Have to admit I had a starting point for alpine from an other-users-issue and had still some dependencies to add. Worked on a x86_64 and a user reported that at least the Dockerfile worked on his rpi4 (he used his own docker-compose.yml, since my branch wasn't ready at this time) Well I think you got me with the size, it is ~50MB bigger than yours, though alpine itself is smaller :-) I would take my branch with alpine as base, we may reduce dependencies lateron (think I'll have some time this or next weekend) |
yes, its good to remove git and other items once not needed and yes -dev is generally not needed for just runtime. also don't need bash as the built in ash is fine for most purposes (unless some hard core bash scripting going on with syntax issues wrt ash?) If i have time at weekend i will take a look. |
as far as I've seen:
|
@scyto Thank you! This version finally worked for my raspi4 docker version
|
Funny that it worked on my machine, no pi4 but that shouldn't matter with docker, maybe another alpine-version available there (which misses something) Anyway, many thanks for the information! tput seems to be a part of ncurses, I'll have a look at it within the next few days. Notice to myself:
|
@Cyber1000 I use the 64bit version of raspberry OS |
Hi,
When I find a project like this i tend to fork, make my own multi-architecture containers using github workflows and push to dockerhub as that then becomes easy for me to use down the line.
I am in middle of doing this, i saw you like discussing things before a PR is raised (and that i need to raise it against the development branch).
(nice project, looking forward to converting 4 devices i have)
Scyto
The text was updated successfully, but these errors were encountered: