From d5fb07ebf3739bcbe54b1164ccd0f5d4467100f3 Mon Sep 17 00:00:00 2001 From: Geo Date: Sat, 17 Dec 2016 15:09:43 -0500 Subject: [PATCH 1/2] Add mount option for scripts directory --- eggdrop/content.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/eggdrop/content.md b/eggdrop/content.md index 5d909e372..cb1cc7d59 100644 --- a/eggdrop/content.md +++ b/eggdrop/content.md @@ -28,6 +28,14 @@ $ docker run -i -e NICK=FooBot -e SERVER=irc.freenode.net -v /path/to/eggdrop/fi Please note that, even in daemon mode, the -i flag for docker run is required. +## Adding scripts + +An easy way to add scripts would be to create a scripts directory on the host and mount it to /home/eggdrop/eggdrop/data. This would be accomplished by adding an option similar to + + -v /path/to/host/scripts:/home/eggdrop/eggdrop/scripts + +to your docker run command line (and of course, don't forget to edit your configuration file to actually load it!) + ## Exposing network ports If you want to expose network connections for your bot, you'll also want to use the -p flag to expose whichever port you specified in the config as the listen port (default is 3333). For example, to expose port 3333, add From 06906eea9dad8d29d0e1eb64c6562766cb142c59 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Mon, 19 Dec 2016 09:12:40 -0800 Subject: [PATCH 2/2] Minor whitespace/formatting fixes --- eggdrop/content.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eggdrop/content.md b/eggdrop/content.md index cb1cc7d59..735580db6 100644 --- a/eggdrop/content.md +++ b/eggdrop/content.md @@ -26,14 +26,14 @@ After running the eggdrop container for the first time, the configuration file, $ docker run -i -e NICK=FooBot -e SERVER=irc.freenode.net -v /path/to/eggdrop/files:/home/eggdrop/eggdrop/data -d eggdrop ``` -Please note that, even in daemon mode, the -i flag for docker run is required. +Please note that, even in daemon mode, the `-i` flag for `docker run` is required. ## Adding scripts -An easy way to add scripts would be to create a scripts directory on the host and mount it to /home/eggdrop/eggdrop/data. This would be accomplished by adding an option similar to +An easy way to add scripts would be to create a scripts directory on the host and mount it to `/home/eggdrop/eggdrop/data`. This would be accomplished by adding an option similar to -v /path/to/host/scripts:/home/eggdrop/eggdrop/scripts - + to your docker run command line (and of course, don't forget to edit your configuration file to actually load it!) ## Exposing network ports