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. (#14629)
* Fix intermittent permissions issues in some Docker builds. * Fix issue with PPC64le builds.
This commit is contained in:
parent
1af0c0f144
commit
1afd93cb64
2 changed files with 5 additions and 1 deletions
packaging/docker
|
@ -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
|
||||
|
||||
#####################################################################
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue