Block a user
magicmirror-setlock (v0.0.1)
Published 2025-09-06 22:21:28 -04:00 by shaun
Installation
docker pull gitea.setlock.net/shaun/magicmirror-setlock:v0.0.1sha256:3c1fcad64f1c229386e99c83bf4bb185cbccbe019a25cf5305012ac8673a8450
Image Layers
| # debian.sh --arch 'amd64' out/ 'bookworm' '@1754870400' |
| RUN /bin/sh -c groupadd --gid 1000 node && useradd --uid 1000 --gid node --shell /bin/bash --create-home node # buildkit |
| ENV NODE_VERSION=22.19.0 |
| RUN /bin/sh -c ARCH= OPENSSL_ARCH= && dpkgArch="$(dpkg --print-architecture)" && case "${dpkgArch##*-}" in amd64) ARCH='x64' OPENSSL_ARCH='linux-x86_64';; ppc64el) ARCH='ppc64le' OPENSSL_ARCH='linux-ppc64le';; s390x) ARCH='s390x' OPENSSL_ARCH='linux*-s390x';; arm64) ARCH='arm64' OPENSSL_ARCH='linux-aarch64';; armhf) ARCH='armv7l' OPENSSL_ARCH='linux-armv4';; i386) ARCH='x86' OPENSSL_ARCH='linux-elf';; *) echo "unsupported architecture"; exit 1 ;; esac && set -ex && apt-get update && apt-get install -y ca-certificates curl wget gnupg dirmngr xz-utils libatomic1 --no-install-recommends && rm -rf /var/lib/apt/lists/* && export GNUPGHOME="$(mktemp -d)" && for key in 5BE8A3F6C8A5C01D106C0AD820B1A390B168D356 DD792F5973C6DE52C432CBDAC77ABFA00DDBF2B7 CC68F5A3106FF448322E48ED27F5E38D5B0A215F 8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600 890C08DB8579162FEE0DF9DB8BEAB4DFCF555EF4 C82FA3AE1CBEDC6BE46B9360C43CEC45C17AB93C 108F52B48DB57BB0CC439B2997B01419BD92F80A A363A499291CBBC940DD62E41F10027AF002F8B0 ; do { gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" && gpg --batch --fingerprint "$key"; } || { gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" && gpg --batch --fingerprint "$key"; } ; done && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-$ARCH.tar.xz" && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" && gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc && gpgconf --kill all && rm -rf "$GNUPGHOME" && grep " node-v$NODE_VERSION-linux-$ARCH.tar.xz\$" SHASUMS256.txt | sha256sum -c - && tar -xJf "node-v$NODE_VERSION-linux-$ARCH.tar.xz" -C /usr/local --strip-components=1 --no-same-owner && rm "node-v$NODE_VERSION-linux-$ARCH.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt && find /usr/local/include/node/openssl/archs -mindepth 1 -maxdepth 1 ! -name "$OPENSSL_ARCH" -exec rm -rf {} \; && apt-mark auto '.*' > /dev/null && find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print so }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false && ln -s /usr/local/bin/node /usr/local/bin/nodejs && node --version && npm --version && rm -rf /tmp/* # buildkit |
| ENV YARN_VERSION=1.22.22 |
| RUN /bin/sh -c set -ex && savedAptMark="$(apt-mark showmanual)" && apt-get update && apt-get install -y ca-certificates curl wget gnupg dirmngr --no-install-recommends && rm -rf /var/lib/apt/lists/* && export GNUPGHOME="$(mktemp -d)" && for key in 6A010C5166006599AA17F08146C2130DFD2497F5 ; do { gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" && gpg --batch --fingerprint "$key"; } || { gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" && gpg --batch --fingerprint "$key"; } ; done && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" && gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz && gpgconf --kill all && rm -rf "$GNUPGHOME" && mkdir -p /opt && tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/ && ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn && ln -s /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg && rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz && apt-mark auto '.*' > /dev/null && { [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; } && find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print so }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false && yarn --version && rm -rf /tmp/* # buildkit |
| COPY docker-entrypoint.sh /usr/local/bin/ # buildkit |
| ENTRYPOINT ["docker-entrypoint.sh"] |
| CMD ["node"] |
| LABEL maintainer=Karsten Hassel |
| USER root |
| ENV MM_DIR=/opt/magic_mirror |
| WORKDIR /opt/magic_mirror |
| COPY --chown=node:node --chmod=0777 *.sh /opt/magic_mirror/ # buildkit |
| COPY --chown=node:node --chmod=0777 /opt/magic_mirror /opt/magic_mirror # buildkit |
| SHELL [/bin/bash -c] |
| ARG GIT_INFO=commit=90f2391e_ref=master_date=2025-08-20T23:39:28+02:00_author=Karsten_Hassel_<hassel@gmx.de>_title=use_variable_for_buildkit_image_name NODE_ENV=production DEBIAN_VERSION=bookworm SLIM=-slim FAT=_default CI_PROJECT_ID=10637719 TARGETARCH=amd64 |
| RUN |7 GIT_INFO=commit=90f2391e_ref=master_date=2025-08-20T23:39:28+02:00_author=Karsten_Hassel_<hassel@gmx.de>_title=use_variable_for_buildkit_image_name NODE_ENV=production DEBIAN_VERSION=bookworm SLIM=-slim FAT=_default CI_PROJECT_ID=10637719 TARGETARCH=amd64 /bin/bash -c set -e chown node:node $MM_DIR apt-get update DEBIAN_FRONTEND=noninteractive apt-get -qy --no-install-recommends install git nano openssl ca-certificates wget tini gnupg if [[ "${TARGETARCH}" == "amd64" && "${FAT}" == "_default" ]]; then echo "no installation of additional packages" else _pck="${_pck} libgtk-3-0 libx11-xcb-dev libnss3-dev libxss1 libxtst6 libasound2 libdrm2 libgbm1 libxshmfence1 fonts-arphic-uming \ procps arp-scan" if [[ "${TARGETARCH}" != "amd64" ]]; then # install pi stuff _pck="${_pck} libraspberrypi-bin libllvm14 libgl1-mesa-dri libglapi-mesa libsensors5 libdrm-radeon1 libelf1 libdrm-amdgpu1 \ libdrm-nouveau2 x11-xserver-utils libgpiod-dev gpiod wlr-randr cec-utils libegl-mesa0 libegl1 libegl1-mesa libgl1 libgles2 \ libgles2-mesa libglvnd0 libglx-mesa0 libglx0 libxcb-glx0 mesa-utils mesa-utils-bin libwayland-egl1-mesa" wget https://archive.raspbian.org/raspbian.public.key -O - | apt-key add - echo 'deb http://raspbian.raspberrypi.org/raspbian/ '${DEBIAN_VERSION}' main contrib non-free rpi' | tee -a /etc/apt/sources.list wget -O - http://archive.raspberrypi.org/debian/raspberrypi.gpg.key | apt-key add - echo 'deb http://archive.raspberrypi.org/debian/ '${DEBIAN_VERSION}' main ui' | tee -a /etc/apt/sources.list.d/raspi.list apt-get update fi fi if [[ "${NODE_ENV}" == "test" ]]; then wget https://archive.raspbian.org/raspbian.public.key -O - | apt-key add - echo 'deb http://deb.debian.org/debian/ trixie main contrib non-free non-free-firmware' | tee -a /etc/apt/sources.list apt-get update _pck="${_pck} labwc" wget -P /usr/local/lib "https://gitlab.com/api/v4/projects/${CI_PROJECT_ID}/packages/generic/libfaketime/0.0.1/libfaketime.so.1" fi DEBIAN_FRONTEND=noninteractive apt-get -qy --no-install-recommends install ${_pck} DEBIAN_FRONTEND=noninteractive apt-get -qy remove gnupg if [[ -z "${SLIM}" ]]; then # need newest version for arm32 so using pip DEBIAN_FRONTEND=noninteractive apt-get -qy install python3-dev python3-pip python3 -m pip install RPi.GPIO --no-cache-dir --break-system-packages DEBIAN_FRONTEND=noninteractive apt-get -qy remove python3-dev python3-pip DEBIAN_FRONTEND=noninteractive apt-get -qy autoremove fi apt-get clean rm -rf /var/lib/apt/lists/* echo "#!/bin/bash" > /usr/local/bin/sudo echo 'exec "$@"' >> /usr/local/bin/sudo chmod +x *.sh /usr/local/bin/sudo chmod u+rwx,g+rwx,o+rwx /etc chmod u+rw,g+rw,o+rw /etc/localtime /etc/timezone git config --system --add safe.directory $MM_DIR git config core.fileMode false groupadd --gid 105 render groupadd --gid 993 gpio usermod -a -G gpio,video,render node ./build_info.sh "Runtime" "$GIT_INFO" rm -f build_info.sh # buildkit |
| USER node |
| ARG NODE_ENV=production |
| ENV ELECTRON_DISABLE_SANDBOX=1 DBUS_SESSION_BUS_ADDRESS=unix:path=/var/run/dbus/system_bus_socket NODE_ENV=production MM_OVERRIDE_DEFAULT_MODULES=true |
| EXPOSE map[8080/tcp:{}] |
| ENTRYPOINT ["/usr/bin/tini" "--" "./entrypoint.sh"] |
| LABEL maintainer=Shaun Setlock description=MagicMirror with my config. |
| WORKDIR /opt/magic_mirror/modules |
| RUN /bin/bash -c git clone https://github.com/MMRIZE/MMM-CalendarExt3 # buildkit |
| WORKDIR /opt/magic_mirror/modules/MMM-CalendarExt3 |
| RUN /bin/bash -c npm ci # buildkit |
| RUN /bin/bash -c git submodule update --init --recursive # buildkit |
| WORKDIR /opt/magic_mirror/modules |
| RUN /bin/bash -c git clone https://github.com/darickc/MMM-BackgroundSlideshow # buildkit |
| WORKDIR /opt/magic_mirror/modules/MMM-BackgroundSlideshow |
| RUN /bin/bash -c npm install # buildkit |
| WORKDIR /opt/magic_mirror/config |
| RUN /bin/bash -c git clone https://www.gitea.setlock.net/shaun/wall.git # buildkit |
| COPY --chown=node:node --chmod=0777 config/config.js.template /opt/magic_mirror/config/config.js.template # buildkit |
| COPY --chown=node:node --chmod=0777 config/config.env /opt/magic_mirror/config/config.env # buildkit |
| COPY --chown=node:node --chmod=0777 css/custom.css /opt/magic_mirror/css/custom.css # buildkit |
| ENV MM_OVERRIDE_DEFAULT_MODULES=false |
| WORKDIR /opt/magic_mirror |
Labels
| Key | Value |
|---|---|
| description | MagicMirror with my config. |
| maintainer | Shaun Setlock |
Details
2025-09-06 22:21:28 -04:00
Versions (7)
View all
Container
0
OCI / Docker
linux/amd64
456 MiB
nightly
2026-01-16
master-v2.33.0-4
2026-01-09
latest
2026-01-09
master-v2.34.0-0
2026-01-08
devel-v2.34.0-0
2026-01-08