Skip to content

Commit

Permalink
ci(docker): fix runtime_patch to properly remap trame-user
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain authored Sep 18, 2024
1 parent 7572cbd commit e1b4395
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docker/scripts/runtime_patch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ then
if [[ "$new_gid" != "$trame_gid" ]]; then
groupmod --gid $new_gid trame-user
fi

# Run chown on all trame-user directories/files
chown -R trame-user:trame-user /opt/trame
chown trame-user:proxy-mapping /opt/trame/proxy-mapping.txt
fi

# Remap internal docker group to the group of /var/run/docker.sock
Expand Down Expand Up @@ -46,4 +50,4 @@ then
BASE_NEW="<base href=\"$TRAME_URL_PREFIX/\">"
OUTPUT="${OUTPUT//$BASE_OLD/$BASE_NEW}"
echo -e "$OUTPUT" > "${FILE_TO_PATCH}"
fi
fi

0 comments on commit e1b4395

Please sign in to comment.