Yetibot on Docker in 𝓧 minutes or less
Yetibot Source Code, January 2016

Yetibot on Docker in 𝓧 minutes or less

Yetibot is now on Docker! This is the fastest way to get up and running. To demonstrate, let’s run it with Docker using the most minimal configuration possible: an in-memory (non-durable) Datomic configuration and a single IRC adapter config. (I’m assuming your local Docker is installed.)

mkdir -p ~/tmp/config

cat << EOF > ~/tmp/config/config.edn
 {:db {:datomic-url "datomic:mem://yetibot"}
  [{:name "freenode-irc",
    :type :irc,
    :host "",
    :port "6665",
    :username "yetibot-docker"
    :rooms #{"#yetibot"}}]}}

docker run --name yetibot \
  -d -p 3000:3000 \
  -v ~/tmp/config:/usr/src/app/config \

docker logs -f yetibot

N.B. I chose ~/tmp/config because:

If you are using Docker Machine on Mac or Windows, your Docker daemon has only limited access to your OS X or Windows filesystem. Docker Machine tries to auto-share your /Users (OS X) or C:\Users (Windows) directory. — Mount a host directory as a data volume

If you’re not using Docker Machine feel free to put it wherever you like.

Hop on Freenode and join the #yetibot channel. Once yetibot-docker joins, try it out!

!list yetibot on docker | xargs echo ⚡️⚡️⚡️ %s ⚡️⚡️⚡️

When you’re done, clean up with:

docker rm -f yetibot

To get the most out of Yetibot you’ll want to configure some of the optional services. See the full config sample and check out for more info on the cool things you can do with Yetibot!

where 𝓧 ≈ somewhere between 1 and 3.5 minutes

Trevor Hartman

Written by on

Automate or die