-
Notifications
You must be signed in to change notification settings - Fork 215
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
Make it easier to run Openverse from an offline media #4484
Conversation
@dhruvkb Is this paused/blocked into something? What is it missing to be ready? |
@krysal it's moving pretty slowly. I'd like to keep it open for a couple more weeks, if that's okay. |
I have marked this as ready for review but one of the issues with this is I cannot test it between two computer. There isn't a USB file format that'll natively support both Mac and Linux, which are the two computers I have. If anyone has two Macs or two Linux computers, please create a USB drive (with APFS or ext4 file system respectively) and try it out. |
exFAT should be the one to use here, it's the portable filesystem to use these days, what prevents it from being used? |
Yes, I personally have two usb drives formatted exFAT that I use to transfer files between multiple machines. I'll test this! |
exFAT does not support UNIX-like permissions so I've seen in the past that copying files over it can cause permission issues. So it's probably better to use a format that's native to the OS. |
This seems like an error in using exFAT? Are there file permissions that need to be maintained from the machine that generated the images onto the new machine? That seems highly unlikely considering these are images meant to be shared? KDE and GNOME both mount exFAT devices with the user and group options set to the logged in user, so I'm not sure when this would be relevant unless mounting the device via Are you suggesting that we would need to have at least two USBs, potentially three (if we allow for someone arriving relying on WSL), all with different filesystems native to the OS being used? |
We have determined that this is not a complete solution because of compatibility issues affecting Docker images, compiled Python and Node packages and USB drive file systems. A comprehensive solution would be overengineered, unnecessary and unused except for 2-3 days a year. |
We also talked about looking into github.dev again, and seeing if we can make it work, perhaps building on the foundation of |
Fixes
Fixes #4478 by @dhruvkb
Description
This PR makes Openverse easier to install from an offline media. It does so by providing recipes that can
just unenv
.tar.gz
files:just docker/dump-3p && just docker/dump-lint && just docker/dump-ov
just docker/load
.Testing Instructions
docker image prune -a
.Checklist
Update index.md
).main
) or a parent feature branch.just catalog/generate-docs
for catalogPRs) or the media properties generator (
just catalog/generate-docs media-props
for the catalog or
just api/generate-docs
for the API) where applicable.Developer Certificate of Origin
Developer Certificate of Origin