Pull docker-mods from repo, install jq

This commit is contained in:
TheSpad 2022-10-05 18:05:08 +01:00
parent ced4151423
commit 533d182af5
No known key found for this signature in database
GPG key ID: 08F06191F4587860
5 changed files with 19 additions and 4 deletions

View file

@ -56,9 +56,12 @@ FROM scratch
COPY --from=rootfs-stage /root-out/ /
ARG BUILD_DATE
ARG VERSION
ARG MODS_VERSION="v3"
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="TheLamer"
ADD "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/docker-mods.${MODS_VERSION}" "/docker-mods"
# environment variables
ENV PS1="$(whoami)@$(hostname):$(pwd)\\$ " \
HOME="/root" \
@ -74,6 +77,7 @@ RUN \
ca-certificates \
coreutils \
curl \
jq \
procps \
shadow \
tzdata && \
@ -85,6 +89,7 @@ RUN \
/app \
/config \
/defaults && \
chmod +x /docker-mods && \
echo "**** cleanup ****" && \
rm -rf \
/tmp/*

View file

@ -56,9 +56,12 @@ FROM scratch
COPY --from=rootfs-stage /root-out/ /
ARG BUILD_DATE
ARG VERSION
ARG MODS_VERSION="v3"
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="TheLamer"
ADD "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/docker-mods.${MODS_VERSION}" "/docker-mods"
# environment variables
ENV PS1="$(whoami)@$(hostname):$(pwd)\\$ " \
HOME="/root" \
@ -74,6 +77,7 @@ RUN \
ca-certificates \
coreutils \
curl \
jq \
procps \
shadow \
tzdata && \
@ -85,6 +89,7 @@ RUN \
/app \
/config \
/defaults && \
chmod +x /docker-mods && \
echo "**** add qemu ****" && \
curl -o \
/usr/bin/qemu-aarch64-static -L \

View file

@ -56,9 +56,12 @@ FROM scratch
COPY --from=rootfs-stage /root-out/ /
ARG BUILD_DATE
ARG VERSION
ARG MODS_VERSION="v3"
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="TheLamer"
ADD "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/docker-mods.${MODS_VERSION}" "/docker-mods"
# environment variables
ENV PS1="$(whoami)@$(hostname):$(pwd)\\$ " \
HOME="/root" \
@ -74,6 +77,7 @@ RUN \
ca-certificates \
coreutils \
curl \
jq \
procps \
shadow \
tzdata && \
@ -85,6 +89,7 @@ RUN \
/app \
/config \
/defaults && \
chmod +x /docker-mods && \
echo "**** add qemu ****" && \
curl -o \
/usr/bin/qemu-arm-static -L \

View file

@ -1,8 +1,8 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash
if find /var/run/s6/container_environment/*"FILE__"* -maxdepth 1 > /dev/null 2>&1; then
for FILENAME in /var/run/s6/container_environment/*; do
if find /run/s6/container_environment/*"FILE__"* -maxdepth 1 > /dev/null 2>&1; then
for FILENAME in /run/s6/container_environment/*; do
if [[ "${FILENAME##*/}" == "FILE__"* ]]; then
SECRETFILE=$(cat "${FILENAME}")
if [[ -f ${SECRETFILE} ]]; then

View file

@ -1,9 +1,9 @@
#!/bin/bash
if [[ -f /var/run/s6/container_environment/UMASK ]] &&
if [[ -f /run/s6/container_environment/UMASK ]] &&
{ [[ "$(pwdx $$)" =~ "/run/s6/legacy-services/" ]] ||
[[ "$(pwdx $$)" =~ "/run/s6/services/" ]] ||
[[ "$(pwdx $$)" =~ "/servicedirs/svc-" ]]; }; then
umask "$(cat /var/run/s6/container_environment/UMASK)"
umask "$(cat /run/s6/container_environment/UMASK)"
fi
exec /command/with-contenv "$@"