mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
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.
16 lines
388 B
Bash
Executable file
16 lines
388 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# Directory of the script file, independent of where it's called from.
|
|
DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"
|
|
|
|
echo "Building protobuf compiler docker image..."
|
|
docker build -q -t lit-protobuf-builder .
|
|
|
|
echo "Compiling and formatting *.proto files..."
|
|
docker run \
|
|
--rm \
|
|
--user $(id -u):$(id -g) \
|
|
-v "$DIR/../:/build" \
|
|
lit-protobuf-builder
|