litrpc+proto: fix ownership in docker container

This was discovered while debugging the reproducible build. We used the
wrong group ID. And the environment variables aren't super portable so
we use the correct command to get the numeric user and group IDs.
This commit is contained in:
Oliver Gugger 2024-10-24 11:18:02 +02:00
parent fc77836204
commit ea33903622
No known key found for this signature in database
GPG key ID: 8E4256593F177720
2 changed files with 2 additions and 4 deletions

View file

@ -17,7 +17,6 @@ docker build -t lit-protobuf-builder \
echo "Compiling and formatting *.proto files..."
docker run \
--rm \
--user $UID:$UID \
-e UID=$UID \
--user $(id -u):$(id -g) \
-v "$DIR/../:/build" \
lit-protobuf-builder

View file

@ -11,7 +11,6 @@ docker build -q -t lit-protobuf-builder .
echo "Compiling and formatting *.proto files..."
docker run \
--rm \
--user $UID:$UID \
-e UID=$UID \
--user $(id -u):$(id -g) \
-v "$DIR/../:/build" \
lit-protobuf-builder