From 23b261a2168d63e5571d0b12c0ec2ba084d59d6d Mon Sep 17 00:00:00 2001 From: Ayush Sharma Date: Mon, 24 Sep 2018 17:52:54 +0530 Subject: [PATCH] Adding instructions for Docker container. --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 3c8ed68..851f7ca 100755 --- a/README.md +++ b/README.md @@ -47,6 +47,21 @@ Tweet-Toot | 2018-09-06 22:59:11 _info > __main__ => Tooting less is tooting mor ``` +## Running with Docker +I've added a `Dockerfile` with this repo so you can get up and running quickly. + +1. Update the `config.json` with the Twitter account you want to relay. +2. Leave the `toots.app_secure_token` blank. +3. Build your container with the command below: + + +```bash +docker build --build-arg mastodon_token= --build-arg papertrail_token= -t : . +``` + +The container has support for sending logs to Papertrail. Just add your authentication token. You can get it from your Papertrail client installation command. + + ## Things to remember - The script is designed to toot once per invokation. I recommend timing your cron jobs according to the post frequency that you need instead of modifying the code. - Mastodon instance admins are people too. Don't toot-blast your instance and make life harder for them.