jmacdotorg / sweat

Sweat - A chatty, distracting, and flexible workout timer.
MIT License
11 stars 2 forks source link

Provider a Docker image #6

Open ad-si opened 4 years ago

ad-si commented 4 years ago

The installation with Perl is a little cumbersome if you're not already in the Perl ecosystem. A Docker image would be awesome because then you can simply run docker run --rm jmacdotorg/sweat, without having to install anything

ad-si commented 4 years ago

This already comes pretty close. I just couldn't figure out how to expose espeak output to the host. 😕 Maybe you can figure it out …

 from perl

 run apt-get update && \
   apt-get install -y \
     espeak \
     fortune-mod \
     fortunes

 run ln -s /usr/games/fortune /bin/fortune

 run cpanm Sweat

 entrypoint ["sweat"]
jmacdotorg commented 4 years ago

Thank you for this work!

I am afraid that don't know anything about Docker, so I can't be of much help with this question. In the meantime, have you tried one of the binaries at https://jmac.org/sweat/ ? (Yes, the README should link to that...)

ad-si commented 4 years ago

Oh, there are binaries. That's great, because I wasn't able to install it on macOS from source. I guess no more excuses tomorrow morning for the workout 😅.

And yeah, you should definitely link to them in the readme 😉. Thanks for building this tool, really great idea!