Skip to content
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

dockerfile + wrapper script #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

dockerfile + wrapper script #3

wants to merge 1 commit into from

Conversation

yacn
Copy link

@yacn yacn commented Aug 12, 2019

Addresses #2

changes

  • Updates build_json.py to take in as a commandline argument the path to write the JSON update file. This is useful for the running the project within a container.

  • Updates write_to_plex.py to take in the path to the JSON update file as an argument.

  • Adds Dockerfile for building a containerized version of this project.

  • Adds a wrapper script run-in-docker.py that wraps building the container from the Dockerfile as well as running the two scripts inside the container

testing

I've verified that docker image building and running build_json.py work successfully. As I myself do not need this info in the movie descriptions and have a rather large library who's DB I don't have backed up, I did not test out write_to_plex.py.

todo

However I will look into running a copy of my plex server's DB in a local testing container to test write_to_plex.py against. This might even be able to be extracted into a generic integration test that the project could run against in Travis or the like.

also wanted to say i really like the idea of making this a plex metadata agent but i'd be hesitant investing time and effort into doing so since it seems like plex is phasing out that ability: https://www.reddit.com/r/PleX/comments/9n9qjl/subzero_the_future/ . As niche as it is, jellyfin might be a better target for that effort, though that would require a re-write in a dot Net language or verifying this works under IronPython so who knows.

if use_memcache:
try:
from config import memcache_address, memcache_port, invalidation_time
from .config import memcache_address, memcache_port, invalidation_time
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just noticed these changes were left in. I cannot remember off the top of my head if they were needed or not. I will test with and without them this evening.

@valknight
Copy link
Owner

Hi,

I would be hesitant about merging this until I can have write_to_plex verified working within Docker. If someone can test this and report back, that would be fabulous.

@valknight valknight assigned valknight and unassigned valknight Aug 26, 2019
@valknight valknight self-requested a review August 26, 2019 14:55
@valknight valknight self-assigned this Aug 26, 2019
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.

None yet

2 participants