[EPIC] Unified Permissions
We should unify the way we handle permissions in docker container. I like the approach in tank but would modify it a bit:
...
ARG HOST_UID=${HOST_UID:-666666}
ARG HOST_GID=${HOST_GID:-666666}
ARG HOST_USER=${HOST_USER:-aura}
RUN set -e \
&& adduser --home /srv --no-create-home --system --uid ${HOST_UID} --group ${HOST_USER} \
&& chown -R ${HOST_UID}:${HOST_GID} /srv /var/audio
USER ${HOST_USER}
...
This way the container will always be build with the user aura
and the uid:666666
& gid:666666
unless a user is specified as a build-arg
. In this example I only change the permissions of /var
and /var/audio
, this is most likely different in other repos.
To Do
Update permission in the Dockerfile
s of these repositories:
-
Steering -
Tank -
Engine -
Engine API -
Engine Core -
Engine Recorder: engine-recorder#27 (closed) -
Docker Compose for AURA Playout and AURA Web (except Steering) -
user.add
Make target inaura