Open Nitrousoxide opened 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
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/
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.
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.
Connect Your Wallet:
Eligibility Check:
Interact with the Contract:
connect
method on the Chainlink network to secure your participation.
Engage for Extra Rewards:
Community Assistance:
Stay Informed:
Patience Pays Off:
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
I swear to god if i get one more of these drop scams
Any thoughts on creating a dockerfile or containerfile to install/setup all these instructions into one container to make it portable and replicatable?