use global install to simplify adding users

This commit is contained in:
sparklyballs 2018-08-25 10:28:11 +01:00
parent d5e0b5ff79
commit a2cfc2d3f5
3 changed files with 6 additions and 6 deletions

View File

@ -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 && \

View File

@ -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 <user>`
+ `docker exec -it thelounge thelounge add <user>`
+ 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.

View File

@ -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