mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 07:28:10 +00:00
chore(build): make it possible to override the docker command
via DOCKER environment variable useful when using podman for example
This commit is contained in:
parent
b09585e192
commit
5668b5db2b
@ -32,6 +32,7 @@ if [ -z "$ALPINE_CHECKSUM" ]; then
|
||||
fi
|
||||
|
||||
|
||||
DOCKER=${DOCKER:-docker}
|
||||
CONTAINER_NAME=${CONTAINER_NAME:-trezor-firmware-env.nix}
|
||||
ALPINE_CDN=${ALPINE_CDN:-https://dl-cdn.alpinelinux.org/alpine}
|
||||
ALPINE_RELEASE=${ALPINE_RELEASE:-3.15}
|
||||
@ -83,7 +84,7 @@ echo
|
||||
echo ">>> DOCKER BUILD ALPINE_VERSION=$ALPINE_VERSION ALPINE_ARCH=$ALPINE_ARCH NIX_VERSION=$NIX_VERSION -t $CONTAINER_NAME"
|
||||
echo
|
||||
|
||||
docker build \
|
||||
$DOCKER build \
|
||||
--network=host \
|
||||
--build-arg ALPINE_VERSION="$ALPINE_VERSION" \
|
||||
--build-arg ALPINE_ARCH="$ALPINE_ARCH" \
|
||||
@ -131,7 +132,7 @@ EOF
|
||||
echo ">>> DOCKER RUN core BITCOIN_ONLY=$BITCOIN_ONLY PRODUCTION=$PRODUCTION"
|
||||
echo
|
||||
|
||||
docker run \
|
||||
$DOCKER run \
|
||||
--network=host \
|
||||
-it \
|
||||
--rm \
|
||||
@ -180,7 +181,7 @@ EOF
|
||||
echo ">>> DOCKER RUN legacy BITCOIN_ONLY=$BITCOIN_ONLY PRODUCTION=$PRODUCTION"
|
||||
echo
|
||||
|
||||
docker run \
|
||||
$DOCKER run \
|
||||
--network=host \
|
||||
-it \
|
||||
--rm \
|
||||
|
Loading…
Reference in New Issue
Block a user