ci(fix): create and give permissions to mix directories

This commit is contained in:
Thales Macedo Garitezi 2023-03-09 10:44:47 -03:00
parent a59827cc6a
commit 9d6af17f69
1 changed files with 2 additions and 2 deletions

View File

@ -211,8 +211,8 @@ if [ "$STOP" = 'no' ]; then
set -e
fi
# rebar and hex cache directory need to be writable by $DOCKER_USER
docker exec -i $TTY -u root:root "$ERLANG_CONTAINER" bash -c "mkdir -p /.cache && chown $DOCKER_USER /.cache"
# rebar, mix and hex cache directory need to be writable by $DOCKER_USER
docker exec -i $TTY -u root:root "$ERLANG_CONTAINER" bash -c "mkdir -p /.cache /.hex /.mix && chown $DOCKER_USER /.cache /.hex /.mix"
# need to initialize .erlang.cookie manually here because / is not writable by $DOCKER_USER
docker exec -i $TTY -u root:root "$ERLANG_CONTAINER" bash -c "openssl rand -base64 16 > /.erlang.cookie && chown $DOCKER_USER /.erlang.cookie && chmod 0400 /.erlang.cookie"