-
Notifications
You must be signed in to change notification settings - Fork 44
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
Update Dockerfile for Python 3 and latest Balena and OctoPrint changes #5
Update Dockerfile for Python 3 and latest Balena and OctoPrint changes #5
Conversation
fba442d
to
481cd4b
Compare
481cd4b
to
193e065
Compare
This information belongs here just as much, if not more?, than in the other PR: |
Still missing is the ability to restart the octoprint server without restarting the container. Using the |
Since https://github.com/foosel/OctoPrint.git was previously moved to https://github.com/OctoPrint/OctoPrint.git redirects still work here but this is more correct.
@RyanBalfanz why don't we branch this into a different project? Would be more than happy to help maintain it, too |
Hi, I actually had recently been thinking to just keep my personal fork as
my main repo, rather than wait for merges here and then pull back to into
mine.
What did you have in mind?
On Thu, May 14, 2020 at 6:54 PM Andrew E. Rhyne ***@***.***> wrote:
@RyanBalfanz <https://github.com/RyanBalfanz> why don't we branch this
into a different project? Would be more than happy to help maintain it, too
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABARHX2UNHM7GHNVM67DSLRRSOEDANCNFSM4MM67FVQ>
.
--
Sent from Gmail Mobile
|
@thebigredgeek: Just to follow up from my previous message, wanted to pass along these other projects as well. As for (1), it seems pretty good. The only downside that I think exists is that multi-container support is a paid feature with Balena.io. I beleive it should be possible to create a complete solution (e.g. OctoPrint, webcam support, etc.) using Supervisor, for example, in single container if need be. As for (2), @LongLiveCHIEF can speak more to it than I can. |
@thebigredgeek, @LongLiveCHIEF Following up from my last comment–I just created an example showing how to use Supervisor with Balena. In this example the web port 80 is dedicated to the Supervisor internet interface, but can be swapped for OctoPrint instead. Supervisor only needs to be used to run (a) OctoPrint, (b, c…) auxiliary applications such as those to support the webcam. The code is at https://github.com/RyanBalfanz/balena-supervisor. |
I would actually prefer to see this merged on |
@RyanBalfanz sorry for the long time it took to notice your PR, but it's still marked as WIP :P Is this ready for review? Also, I'm looking within the Balena team for a maintainer to promote this project from experiment playground (as it is now under the |
@RyanBalfanz @brainstorm @thebigredgeek I was pointed by colleagues that there is already a well-maintained community project here https://github.com/MatthewCroughan/octobalena that is actually a fork of this one. I am considering deprecating this project and directing people towards octobalena. Fun fact: Matthew, the maintainer, was also our guest in our IoT Happy Hour EP9 |
I've updated this project and kept it as a barebones version, but octobalena linked above is still a great option for a more fully featured version. There are definitely still some nice ideas in this PR we could implement in a basic version though. Just to clarify though, you can still run multicontainer applications on the free tier of balenaCloud - that's exactly what octobalena is doing :) |
These changes enable installed plugin persistence to the data directory, as well as the OctoPrint
config.yaml
.In addition, it focuses on Python 3. The latest OctoPrint (v.14.0) adds Python 3 support as Python 2 is EOL.
Requirements?
Note that restarting the application via a container restart is available but not the target in the UI because the is not equivalent to a reboot of the device. A "restart" in the UI is really a reboot for this reason. You can restart the application using the
balenactl restart
if you really want to start with a fresh container. This has implications with how theconfig.yaml
file is currently managed during the first run. The config option to restart is defined for the convenience offered (e.g. easy "restart" via post-plugin install popup button).Nice to have:
Various Balena application and device Actions
CC: @curcuz