0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-10 16:17:36 +00:00

Fix intermittent permissions issues in some Docker builds. ()

* Fix intermittent permissions issues in some Docker builds.

* Fix issue with PPC64le builds.
This commit is contained in:
Austin S. Hemmelgarn 2023-03-07 08:47:55 -05:00 committed by GitHub
parent 1af0c0f144
commit 1afd93cb64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions
packaging/docker

View file

@ -51,7 +51,9 @@ RUN mkdir -p /app/usr/sbin/ \
mv /usr/sbin/netdatacli /app/usr/sbin/ && \
mv packaging/docker/run.sh /app/usr/sbin/ && \
mv packaging/docker/health.sh /app/usr/sbin/ && \
cp -rp /deps/* /app/usr/local/ && \
mkdir -p /deps/etc && \
cp -rp /deps/etc /app/usr/local/etc && \
chmod -R o+rX /app && \
chmod +x /app/usr/sbin/run.sh
#####################################################################

View file

@ -21,6 +21,8 @@ if [ ! "${DISABLE_TELEMETRY:-0}" -eq 0 ] ||
touch /etc/netdata/.opt-out-from-anonymous-statistics
fi
chmod o+rX / # Needed to fix permissions issues in some cases.
BALENA_PGID=$(stat -c %g /var/run/balena.sock 2>/dev/null || true)
DOCKER_PGID=$(stat -c %g /var/run/docker.sock 2>/dev/null || true)