Skip to content

Conversation

@tcely
Copy link
Contributor

@tcely tcely commented Dec 27, 2025

Tip

Start the server inside an already running container with:

/command/s6-rc start bgutil-ytdlp-pot-provider

Using deno for node compatibility, we can run the POT web service inside the container.

This adds hundreds of megabytes (~240 MB) in extra storage, so I don't want to bundle it for everyone.

The end goal is, that anyone who wants this configuration, would only need to add one file to the user bundle.

$ touch "${HOME}/empty"

Add the following to your docker run arguments:

-v "${HOME}/empty:/etc/s6-overlay/s6-rc.d/user/contents.d/bgutil-ytdlp-pot-provider:ro"

This is likely a win in the common case where you only have one TubeSync container.

It also plays nicely for anyone who wants to modify the Dockerfile so that the extra files can live in the image once instead of the overlay of each container.

On the other hand, if you have a pool of bgutil-ytdlp-pot-provider containers that all your TubeSync containers access over HTTP, then it is wasted space in the image with no benefit.

Screenshot_20251227-132420

@tcely tcely moved this to In Progress in Status Dec 27, 2025
- `tubesync-init` changed the permissions of `node` before us
- `npm` really likes to write to "${HOME}"
- use the correct way to run `typescript/tsc`
@tcely tcely marked this pull request as ready for review December 27, 2025 13:16
@tcely tcely moved this from In Progress to Ready in Status Dec 27, 2025
@tcely tcely force-pushed the tcely-bgutil-ytdlp-pot-provider branch 2 times, most recently from a5f783c to ef312be Compare December 27, 2025 15:53
When `node` has no arguments, it uses a read-execute-print loop so copy
that behavior.

Only require that HOME must be set for shell, then let the cryptic error
from `deno` handle a foolishly empty/null HOME variable.
@tcely tcely force-pushed the tcely-bgutil-ytdlp-pot-provider branch from 47919b0 to e6e24df Compare December 30, 2025 10:51
@meeb meeb merged commit 20372b1 into meeb:main Dec 30, 2025
6 checks passed
@github-project-automation github-project-automation bot moved this from Ready to Done in Status Dec 30, 2025
@tcely tcely deleted the tcely-bgutil-ytdlp-pot-provider branch December 30, 2025 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants