-
Notifications
You must be signed in to change notification settings - Fork 706
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
Docker Support #79
Comments
Great idea! Docket It's always a good choice for every project. I don't have too much experience, usually the docker-compose It's useful when we have more than one container to merge or not? For this project a simple Docker It's not enough? Currently, I've very busy with a lot of things and I want just to complete the current work-in-progress feature. I'll start to work on this asap But If you have free time and experience you can work on it and submit a PR 🥳 |
Ahh yeah, you're right. I personally just prefer to make a It's not unheard of to do this though, for example looking at the docs for two projects I also run via Docker:
These both include a |
I've written this little note about docker-compose only for personal doubt. |
@SethFalco you think It's wrong link the |
The So basically to build the base image without the Ideally, I think the This is why I thought it might be nice if settings could be done via environment variables first, before making a Dockerfile. Example version: "3.8"
services:
miner:
build: ./
restart: "unless-stopped"
volumes:
- ./logs/:/logs/
environment:
twitch_miner_username: "USERNAME"
twitch_miner_password: "PASSWORD"
twitch_miner_claim_drops_startup: false
twitch_miner_logger_settings_save: true
twitch_miner_logger_settings_console_level: "INFO"
twitch_miner_logger_settings_file_level: "DEBUG"
twitch_miner_logger_settings_emoji: true
twitch_miner_logger_settings_less: false
twitch_miner_streamer_settings_make_predictions: false
twitch_miner_streamer_settings_follow_raid: true
twitch_miner_streamer_settings_claim_drops: false
twitch_miner_streamer_settings_watch_streak: true
twitch_miner_mine_streamers: "streamer1,streamer2,streamer3,streamer4,streamer5"
twitch_miner_mine_followers: true
|
We obviously could be migrating all the settings via env variable, but we will lose the ability to create custom settings for each streamer 🤔 |
This is subjective, what I've described is just what I think would be a nice Docker setup. You're welcome to disagree if you think there is a better way to go for this project. That's why I suggested that this could be done in stages, rather than trying to achieve Docker support immediately. This could be achieved already by making Weblate is a great example of what I'm referring to, they make common settings that can be represented by key/value pairs as environment variables, and require volumes just for any advanced settings. Normal settings: https://docs.weblate.org/en/latest/admin/install/docker.html?#docker-environment-variables
|
Maybe the work done on #75 can help us to parse some settings from ENV to my script. I'll see :) |
Hello, I can help out with this. Doing it for the current configuration model doesn't seem too bad, but is #75 the plan moving forward? |
Any updates on this? Would love to get this working on Docker! |
+1 ! |
Just as info, I personally do run it inside docker with https://github.com/RakSrinaNa/Twitch-Miner . From the docker-compose it can be run as a docker-compose stack or a service ( |
Thanks! I'll give it a try! |
…s/docker/build-push-action-3.2.0 Bump docker/build-push-action from 3.1.1 to 3.2.0
Is your feature request related to a problem? Please describe.
It would be great to be able to run this without having to worry about having the correct version of Python / pip on my environment, and isolated from other system resources.
Describe the solution you'd like
To be able to run the script through Docker. I'm willing to contribute towards anything Docker related myself, however before it'd be easier if the script had:
./cookies/
folder as a volumeWhen or if that's done, a
Dockerfile
anddocker-compose.yml
can be created which can be configured via environment variables.The following should work for a starting point:
.dockerignore
docker-compose.yml
Dockerfile
The text was updated successfully, but these errors were encountered: