From a2cfc2d3f545ddb9bed72e001bd23565ce2bb2ec Mon Sep 17 00:00:00 2001 From: sparklyballs Date: Sat, 25 Aug 2018 10:28:11 +0100 Subject: [PATCH] use global install to simplify adding users --- Dockerfile | 6 +++--- README.md | 3 ++- root/etc/services.d/thelounge/run | 3 +-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index e21df43..3c0459a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,14 +14,14 @@ RUN \ echo "**** install runtime packages ****" && \ apk add --no-cache \ nodejs-npm && \ - echo "**** install shout-irc ****" && \ + echo "**** install the lounge irc ****" && \ mkdir -p \ /app && \ cd /app && \ - npm install \ + npm install -g \ thelounge && \ echo "**** ensure public true on startup aka no users ****" && \ - sed -i "s/public: false,/public: true,/g" /app/node_modules/thelounge/defaults/config.js && \ + sed -i "s/public: false,/public: true,/g" /usr/lib/node_modules/thelounge/defaults/config.js && \ echo "**** cleanup ****" && \ rm -rf \ /root && \ diff --git a/README.md b/README.md index 72daa12..d25a324 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ To setup user account(s) + edit /config/config.json changing the value `public: true,` to `public: false,` restart the container and enter the following from the command line of the host. -+ `docker exec -it thelounge node /app/node_modules/thelounge/index.js --home /config add ` ++ `docker exec -it thelounge thelounge add ` + Enter a password when prompted, refresh your browser. @@ -97,6 +97,7 @@ To setup user account(s) ## Versions ++ **25.08.18:** Use global install, simplifies adding users. + **20.08.18:** Rebase to alpine 3.8. + **06.01.18:** Rebase to alpine 3.7. + **26.05.17:** Rebase to alpine 3.6. diff --git a/root/etc/services.d/thelounge/run b/root/etc/services.d/thelounge/run index 2d584e1..f436230 100644 --- a/root/etc/services.d/thelounge/run +++ b/root/etc/services.d/thelounge/run @@ -1,6 +1,5 @@ #!/usr/bin/with-contenv bash -cd /app/node_modules/thelounge || exit exec \ - s6-setuidgid abc node index.js start + s6-setuidgid abc thelounge start