8000 V3 image migration by LongLiveCHIEF · Pull Request #142 · OctoPrint/octoprint-docker · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

V3 image migration #142

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

Merged
merged 12 commits into from
Dec 13, 2020
Merged

V3 image migration #142

merged 12 commits into from
Dec 13, 2020

Conversation

LongLiveCHIEF
Copy link
Member

Instead of creating a migration strategy guide in the release docs, I went the route of detecting when a v3 container was being started with a v2 file structure, and then auto-migrate the file structures for them during container initialization.

This would potentially be a breaking release, in the event that two octoprint containers are using the same volume and the second container is added while the first (which is a v2 container) is running.

However, I've decided against classifying this as a breaking change (and thereby requiring a v4 release), because the current design of octoprint and octoprint in docker does not really support horizontal scaling due to the requirements to bind a host device.

@LongLiveCHIEF
Copy link
Member Author

I'm also slightly worried about the potential of breaking symlinks for wheel libs, but I haven't found a way to test for that yet. I'd probably need to tweak this script to look for symlinks on the sys.path for wheels and update them to point to PYTHONUSERBASE/lib/. 🤔

@LongLiveCHIEF
Copy link
Member Author

Before I pull this, i want to run the following test just to make sure this doesn't break anything:

  • check out and build a v2 version of the image locally
  • install some plugins
  • destroy the container
  • start up the new v3 container with this proposed hotfix, using the volumes from the old container
  • verify plugins are operational and no errors pop up

@LongLiveCHIEF LongLiveCHIEF changed the title V3 image migration [DRAFT] V3 image migration Dec 12, 2020
@LongLiveCHIEF LongLiveCHIEF changed the title [DRAFT] V3 image migration V3 image migration Dec 13, 2020
@LongLiveCHIEF LongLiveCHIEF merged commit d735263 into master Dec 13, 2020
@LongLiveCHIEF LongLiveCHIEF deleted the v3-image-migration branch December 13, 2020 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add $PYTHONUSERBASE/bin to $PATH Add migration notes for using the 3.0.0 image
1 participant
0