mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-18 15:34:59 +01:00
Allow changing the docker image name for in-docker.sh runs (#348)
This commit is contained in:
parent
03c6345735
commit
5f1f6b0b7a
@ -1,8 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker inspect element-desktop-dockerbuild 2> /dev/null > /dev/null
|
||||
IMAGE=${DOCKER_IMAGE_NAME:-"element-desktop-dockerbuild"}
|
||||
|
||||
docker inspect "$IMAGE" 2> /dev/null > /dev/null
|
||||
if [ $? != 0 ]; then
|
||||
echo "Docker image element-desktop-dockerbuild not found. Have you run yarn run docker:setup?"
|
||||
echo "Docker image $IMAGE not found. Have you run yarn run docker:setup?"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@ -18,4 +20,4 @@ docker run --rm -ti \
|
||||
-v ${PWD}/docker/.gnupg:/root/.gnupg \
|
||||
-v ~/.cache/electron:/root/.cache/electron \
|
||||
-v ~/.cache/electron-builder:/root/.cache/electron-builder \
|
||||
element-desktop-dockerbuild "$@"
|
||||
"$IMAGE" "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user