From c0f41f60ee8827b49fe981f69c638a059270f98e Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Thu, 6 Aug 2015 08:11:19 +0000 Subject: [PATCH] Update to shuo --- net/shout/Dockerfile | 15 ---------- net/shuo/Dockerfile | 15 ++++++++++ net/{shout => shuo}/config.js | 53 ++++++++++++++++++++++++++++++++++- net/shuo/shuo.service | 13 +++++++++ 4 files changed, 80 insertions(+), 16 deletions(-) delete mode 100644 net/shout/Dockerfile create mode 100644 net/shuo/Dockerfile rename net/{shout => shuo}/config.js (83%) create mode 100644 net/shuo/shuo.service diff --git a/net/shout/Dockerfile b/net/shout/Dockerfile deleted file mode 100644 index cbd9a5d..0000000 --- a/net/shout/Dockerfile +++ /dev/null @@ -1,15 +0,0 @@ -FROM node:0 - -RUN useradd --create-home shout - -RUN npm install -g shout - -ENV HOME /home/shout - -EXPOSE 9000 - -USER shout - -ADD . /home/shout/.shout - -CMD shout diff --git a/net/shuo/Dockerfile b/net/shuo/Dockerfile new file mode 100644 index 0000000..ecfc4bf --- /dev/null +++ b/net/shuo/Dockerfile @@ -0,0 +1,15 @@ +FROM node:0 + +RUN useradd --create-home shuo + +RUN npm install -g shuo + +ENV HOME /home/shuo + +EXPOSE 9000 + +USER shuo + +ADD . /home/shuo/.shuo + +CMD shuo diff --git a/net/shout/config.js b/net/shuo/config.js similarity index 83% rename from net/shout/config.js rename to net/shuo/config.js index 5364b29..fe1a819 100644 --- a/net/shout/config.js +++ b/net/shuo/config.js @@ -73,7 +73,7 @@ module.exports = { // @type boolean // @default true // - displayNetwork: false, + displayNetwork: true, // // Log settings @@ -247,4 +247,55 @@ module.exports = { // port: 113 } + + // + // Themes + // + // @type array + // + themes: [ + // + // A theme + // + // @type object + // + { + // + // Name + // + // @type string + // @default "Default" + // + "name": "Default", + // + // Path to the theme CSS + // + // @type string + // @default "" + // + "path": "", + // + // Set the theme as default + // + // @type boolean + // @default false + // + "default": true + }, + { + "name": "Morning", + "path": "themes/morning.css", + "default": false + }, + { + "name": "Zenburn", + "path": "themes/zenburn.css", + "default": false + }, + { + "name": "Crypto", + "path": "themes/crypto.css", + "default": false + } + ], }; diff --git a/net/shuo/shuo.service b/net/shuo/shuo.service new file mode 100644 index 0000000..1241941 --- /dev/null +++ b/net/shuo/shuo.service @@ -0,0 +1,13 @@ +[Unit] +Description=Shout IRC +Requires=docker.service +After=network.target + +[Service] +ExecStartPre=-/usr/bin/docker kill shuo +ExecStartPre=-/usr/bin/docker rm shuo +ExecStart=/usr/bin/docker run --name shuo -v /data/sda/shout/users:/home/shuo/.shuo/users -v /data/sda/shout/logs:/home/shuo/.shuo/logs -e VIRTUAL_HOST=shuo.xeserv.us xena/shuo +ExecStop=/usr/bin/docker stop shuo + +[Install] +WantedBy=multi-user.target