From cc09d5b1522ca370cd13042b5be4dbf546b02c6c Mon Sep 17 00:00:00 2001 From: Deon George Date: Fri, 14 Sep 2018 15:27:24 +1000 Subject: [PATCH] Added xq-qrcode v1.0 and xq-moon --- Dockerfile | 31 +++++++++++++++++++++++++++++-- README.md | 2 ++ 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d3d6f14..031940d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,9 @@ # NAME leenooks/mysticbbs # VERSION 1.12a39-armv7l-extras +# NOTE: ** WHEN UPDATING ** there may be missing files in your data directory +# that are present in the data.tar.gz file. + FROM registry.leenooks.net/leenooks/mysticbbs:1.12a39-armv7l # Makenl 3.4.6 @@ -17,7 +20,7 @@ RUN SOURCE_URL=https://chinwag.leenooks.net/mods && FILE=DBLUP10.ZIP && \ cd /mystic/ && \ chmod 644 /tmp/*.txt /tmp/*.mps && mv /tmp/sysop.txt docs/mod-dblup-1.0-sysop.txt && \ mv /tmp/doubleup.mps scripts/ && cd scripts && ./mplc doubleup.mps && \ - rm -rf /tmp/** + rm -rf /tmp/* # Utility BLAM - BBS List Admin Manager v2.1 RUN SOURCE_URL=https://chinwag.leenooks.net/mods && FILE=GYBLAM21.ZIP && \ @@ -28,7 +31,31 @@ RUN SOURCE_URL=https://chinwag.leenooks.net/mods && FILE=GYBLAM21.ZIP && \ chmod 644 /tmp/*.txt /tmp/*.ini /tmp/*.mps && mv /tmp/sysop.txt docs/mod-blam-2.1-sysop.txt && \ mv /tmp/gy-blam.ini docs/mod-blam-2.1-gy-blam.ini && \ mv /tmp/gy-blam.mps scripts/ && cd scripts && ./mplc gy-blam.mps && \ - rm -rf /tmp/** + rm -rf /tmp/* + +# Utility QRCODE - QR Code for Mystic BBS v1.0 +RUN SOURCE_URL=https://chinwag.leenooks.net/mods && FILE=xq-qrcode.zip && \ + cd /tmp && \ + apt-get update && \ + apt-get install --no-install-recommends -yqq qrencode && \ + curl -O ${SOURCE_URL}/${FILE} && \ + unzip ${FILE} && \ + cd /mystic/ && \ + chmod 644 /tmp/*.txt /tmp/*.mps && mv /tmp/sysop.txt docs/mod-qrcode-1.0-sysop.txt && \ + mv /tmp/xq-qrcode.mps scripts/ && cd scripts && ./mplc xq-qrcode.mps && \ + rm -rf /var/lib/apt/lists/* /tmp/* + +# Utility MOON - Moon Phase v? +RUN SOURCE_URL=https://chinwag.leenooks.net/mods && FILE=xq-moon.zip && \ + cd /tmp && \ + curl -O ${SOURCE_URL}/${FILE} && \ + unzip ${FILE} && \ + cd /mystic/ && \ + chmod 644 /tmp/*.txt /tmp/scripts/*.mps /tmp/scripts/xq-moon/*.asc /tmp/scripts/xq-moon/*.ans /tmp/text/*.ans && mv /tmp/sysop.txt docs/mod-moon-0.0-sysop.txt && \ + mv /tmp/scripts/xq-moon.mps scripts/ && cd scripts && ./mplc xq-moon.mps && cd .. && \ + gunzip data.tar.gz && mkdir /tmp/data && mv /tmp/text /tmp/data && tar -C /tmp -rf /mystic/data.tar data/text/ansiviewtxt.ans && gzip data.tar && \ + mv /tmp/scripts/xq-moon scripts/ && mv scripts/xq-moon/xqmoon_rpi scripts/xq-moon/xqmoon && \ + rm -rf /tmp/* # Game Galactic Dynasty 0.9.1-dev RUN apt-get update \ diff --git a/README.md b/README.md index a4fc83d..a4be3b6 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,8 @@ This image is based on the above image, with the follow additional games/tools i | Game | Galactic Dynasty | Galactic Dynasty, a game like Barren Realms Elite | You'll need to copy `/mystic/docs/doors/galacticdynasty` to somewhere on `/mystic/data` so that your game data is preserved between container re-deployments. Modify `start.sh` to suite your needs - refer to doc in /mystic/docs for execution. | | Utility | BLAM | BBS List Admin Manager for Mystic v2.0 by Darryl Perry | Refer to doc in /mystic/docs for execution. | | Utility | MakeNL | Nodelist Management | Refer to the docs in `/usr/share/makenl` | +| Utility | Moon | Display the phase of the moon | No special action required - refer to doc in /mystic/docs for execution. | +| Utility | QRCode | Generate a QR Code | No special action required - refer to doc in /mystic/docs for execution. | **NOTE:** Remember, for anything to persist in the docker container, those files needs to be stored somewhere under `/mystic/data`