1
0
mirror of synced 2026-03-28 06:09:58 +01:00

Compare commits

...

7 Commits

Author SHA1 Message Date
d-two
f256f5141f Delete 50-gid-video 2023-04-20 17:30:33 +02:00
d-two
93784d40e4 Update Dockerfile 2023-04-20 15:11:49 +02:00
d-two
d7150db9b5 Update Dockerfile 2023-04-20 14:28:51 +02:00
d-two
8c95c9816e Update Dockerfile 2023-04-20 14:27:26 +02:00
d-two
2c2f292b5f Update Dockerfile 2023-04-20 14:25:08 +02:00
d-two
bacf376179 Update Dockerfile 2023-04-20 14:20:27 +02:00
d-two
e59cef676a Update Dockerfile 2023-04-20 14:17:34 +02:00
2 changed files with 5 additions and 29 deletions

View File

@@ -13,11 +13,13 @@ ENV HOME="/config"
# copy patches # copy patches
COPY patches/ /tmp/patches/ COPY patches/ /tmp/patches/
RUN apk add --no-cache musl=1.2.2-r9
RUN \ RUN \
echo "**** install build packages ****" && \ echo "**** install build packages ****" && \
apk add --no-cache \ apk add --no-cache \
libcrypto1.1=1.1.1t-r1 \ libcrypto1.1 \
libssl1.1=1.1.1t-r1 \ libssl1.1 \
autoconf \ autoconf \
automake \ automake \
bsd-compat-headers \ bsd-compat-headers \
@@ -194,4 +196,4 @@ LABEL \
org.opencontainers.image.documentation="https://github.com/${BUILD_REPOSITORY}/blob/main/README.md" \ org.opencontainers.image.documentation="https://github.com/${BUILD_REPOSITORY}/blob/main/README.md" \
org.opencontainers.image.created=${BUILD_DATE} \ org.opencontainers.image.created=${BUILD_DATE} \
org.opencontainers.image.revision=${BUILD_REF} \ org.opencontainers.image.revision=${BUILD_REF} \
org.opencontainers.image.version=${BUILD_VERSION} org.opencontainers.image.version=${BUILD_VERSION}

View File

@@ -1,26 +0,0 @@
#!/usr/bin/with-contenv bash
FILES=$(find /dev/dri /dev/dvb -type c -print 2>/dev/null)
for i in $FILES
do
VIDEO_GID=$(stat -c '%g' "$i")
if id -G abc | grep -qw "$VIDEO_GID"; then
touch /groupadd
else
if [ ! "${VIDEO_GID}" == '0' ]; then
VIDEO_NAME=$(getent group "${VIDEO_GID}" | awk -F: '{print $1}')
if [ -z "${VIDEO_NAME}" ]; then
VIDEO_NAME="video$(head /dev/urandom | tr -dc 'a-z0-9' | head -c8)"
groupadd "$VIDEO_NAME"
groupmod -g "$VIDEO_GID" "$VIDEO_NAME"
fi
usermod -a -G "$VIDEO_NAME" abc
touch /groupadd
fi
fi
done
if [ -n "${FILES}" ] && [ ! -f "/groupadd" ]; then
usermod -a -G root abc
fi