1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 21:48:13 +00:00

build: work around broken docker build

Broken by a44c660ccc
This commit is contained in:
Martin Milata 2024-11-01 01:14:50 +01:00
parent f9bc31f449
commit 6f2aa465d7

View File

@ -185,6 +185,11 @@ if [ $INIT -eq 1 ]; then
echo ">>> DOCKER BUILD ALPINE_VERSION=$ALPINE_VERSION ALPINE_ARCH=$ALPINE_ARCH NIX_VERSION=$NIX_VERSION -t $CONTAINER_NAME" echo ">>> DOCKER BUILD ALPINE_VERSION=$ALPINE_VERSION ALPINE_ARCH=$ALPINE_ARCH NIX_VERSION=$NIX_VERSION -t $CONTAINER_NAME"
echo echo
# some Nix installations have problem with shell.nix -> ci/shell.nix symlink
# docker can't handle ci/shell.nix -> shell.nix
# let's copy the file and try to fix paths ...
sed "s|./ci/|./|" < shell.nix > ci/shell.nix
$DOCKER build \ $DOCKER build \
--network=host \ --network=host \
--build-arg ALPINE_VERSION="$ALPINE_VERSION" \ --build-arg ALPINE_VERSION="$ALPINE_VERSION" \