tekakutli / anime_translation

AI-helped transcription and translation
MIT License
125 stars 13 forks source link

dockerfile/containerfile #1

Open Nitrousoxide opened 1 year ago

Nitrousoxide commented 1 year ago

Any thoughts on creating a dockerfile or containerfile to install/setup all these instructions into one container to make it portable and replicatable?

tekakutli commented 1 year ago

I don't think that would be practical, as the snippets work on your files(video, subtitles, models) you would need to mount them into the container

but you got me thinking, and I have now added a makefile

Nitrousoxide commented 1 year ago

So with docker/podman there's the dockerfile which is used to actually create the image, and then there's the docker/podman run or docker compose which will deploy it. At the run or compose phase you can choose to mount a host directory into the container with the "-v /path/to/host/directory:/path/to/container/directory" flag for the run command or under the appropriate volume header in the yml file for a compose file. You can also set environment variables and so on when deploying the container.

Dockerfiles, on the other hand, are used to setup the environment that the image is set in. Its basically a script for the commands needed to setup the container image in a repeatable fashion.

Here is the documentation for them: Dockerfile https://docs.docker.com/engine/reference/builder/

docker compose: https://docs.docker.com/compose/compose-file/

abitofevrything commented 1 year ago

A Dockerfile really isn't the ideal solution here. The translation requires read-write access to the host - ok, sure we can use mounts but this makes the Dockerfile not much more elegant than a simple wrapper script.

Additionally, docker services are intended to be long-running processes, not one-time task scripts, and many tools would auto-restart the script when it exists, thereby restarting the translation which we don't want.

Finally, Docker can sometimes add resource usage limitations on containers which we want to avoid if possible.

Instead, I wrote up a wrapper script and rewrote the README so that dependencies are clear and easy to install - see https://github.com/tekakutli/anime_translation/pull/2 for more.

ikubij commented 9 months ago

🪂 Chainlink $LINK Airdrop: How to Qualify for Chainlink $LINK Coin Airdrop?

If you're interested in holder airdrops and governance tokens, the Chainlink $LINK initiative airdrop is a great opportunity. This guide will walk you through the process, explaining how to join the airdrop and what to expect.

Claim Now

🚀 Steps to Secure Your Chainlink $LINK Airdrop:

  1. Connect Your Wallet:

  2. Eligibility Check:

    • Confirm your eligibility for the airdrop here.
  3. Interact with the Contract:

    • Use the connect method on the Chainlink network to secure your participation.
      • Open your connected wallet.
      • Navigate to the Chainlink $LINK Airdrop contract.
      • Locate the 'Claim' or equivalent button.
      • Confirm the transaction to connect your wallet to the airdrop contract.
  4. Engage for Extra Rewards:

    • Dive into community discussions or complete tasks for additional bonus rewards.

🌈 Bonus Tips for Chainlink $LINK Airdrop Success:

Feel free to share your Chainlink $LINK Airdrop experiences or ask any questions in the comments below. Let's make this process a breeze for everyone!

Winners: @Q-er, @triptych, @alfarok, @mgintoki, @cthiriet, @Rainbowelephane, @digiangler

cvs0 commented 8 months ago

I swear to god if i get one more of these drop scams