TychoTheTaco / Twitch-Drops-Bot

A Node.js bot that will automatically watch Twitch streams and claim drop rewards.
MIT License
279 stars 36 forks source link

[Feature Request] how-to-run Twitch-Drops-Bot in Portainer #158

Open BulldozerPete opened 2 years ago

BulldozerPete commented 2 years ago

A how-to-run for Twitch-Drops-Bot in Portainer would be nice. Installing docker is easy and portainter too, but I am struggling to set up a docker container in portainer that will restart after each reboot an can be easily updated via redeploy.

BulldozerPete commented 2 years ago

I was able to deploy an always restart container. But I am struggling to translate the mentioned linux command: docker run --rm -v ${PWD}:/app/data -i -t --sig-proxy=false ghcr.io/tychothetaco/twitch-drops-bot:latest-release into a portainer setup.

Especially: --rm -v and -i -t --sig-proxy=false.

TychoTheTaco commented 2 years ago

I have never used Portainer so unfortunately can't help you with that, but if you (or anyone else) figures it out and wants to add a section about it in the readme I would be happy to accept a PR.

BulldozerPete commented 2 years ago

How-to:

  1. login to portainer
  2. go to: containers
  3. click add container pic1
  4. type in: pic2
  5. edit volumes: pic3 (in my case config files will be stored in "/home/lab/Twitch-Drops-Bot")
  6. choose restart policy "always" pic4
BulldozerPete commented 2 years ago

I don't know where to edit "--sig-proxy=false" and what this will do.

BulldozerPete commented 2 years ago

But can be edited here: pic5

WrayOfSunshine commented 2 years ago

Don't forget that your container has to be flagged as interactive and TTY.

I'm actually using Portainer for this myself.

BulldozerPete commented 2 years ago

@dethmourne How do I do that?

WrayOfSunshine commented 2 years ago

Bottom of the container create/edit screen - see screenshot.

image