Lynnesbian / mstdn-ebooks

NO LONGER BEING UPDATED, NOT GUARANTEED TO WORK AT ALL
Mozilla Public License 2.0
34 stars 28 forks source link

Add a Dockerfile. #3

Closed BenLubar closed 5 years ago

BenLubar commented 5 years ago

Maintainer instructions (for @Lynnesbian)

  1. Add this repository as an automated Docker build at https://hub.docker.com/add/automated-build/lynnesbian/
  2. There is no step 2. You will never need to touch this again unless you change the architecture of the bot, and even then, you can probably get away with just changing the crontab.

Usage instructions

  1. Set up the bot account as usual. Stop following the original instructions when you get to the part that runs on your own machine.
  2. docker run -ti --name my_ebooks_bot -e ebooks_site=https://botsin.space -v "$HOME/my_ebooks_bot_data_folder:/ebooks/data" --restart unless-stopped lynnesbian/mstdn-ebooks
    • The -e option can be skipped if your bot is on botsin.space.
    • The -v option can be skipped to leave the data volume unnamed.
  3. Follow the prompts. The container will automatically die and restart when it is ready to run without input.
  4. Congratulations, you now have a fully-working ebooks bot.

Upgrade instructions

  1. docker pull lynnesbian/mstdn-ebooks
  2. docker stop my_ebooks_bot
  3. docker rename my_ebooks_bot my_ebooks_bot_temp
  4. docker run -d --name my_ebooks_bot -e ebooks_site=https://botsin.space --volumes-from my_ebooks_bot_temp --restart unless-stopped lynnesbian/mstdn-ebooks
  5. docker rm my_ebooks_bot_temp