Rene Vergara A.
7745aa5256
Dockerfile updated to work with xfce4+TigerVNC zenith TUI runs from the docker image console zenith GUI is not ready
24 lines
602 B
Bash
Executable file
24 lines
602 B
Bash
Executable file
#!/bin/bash
|
|
ZFOLDER=~/Zenith
|
|
IMAGE_NAME=zenith-docker-gui:0.5.3.0
|
|
|
|
# Check if data folder exists
|
|
if [ ! -d "$ZFOLDER" ]; then
|
|
echo "Error starting Zenith image"
|
|
echo "Zenith configurtion and data folder ($ZFOLDER) does not exists."
|
|
echo "Aborting process..."
|
|
exit
|
|
fi
|
|
|
|
# Check if the image exists locally
|
|
if [[ "$(docker images -q $IMAGE_NAME 2> /dev/null)" == "" ]]; then
|
|
echo "Error starting Zenith image"
|
|
echo "Image $IMAGE_NAME not found locally."
|
|
echo "Aborting process..."
|
|
exit
|
|
fi
|
|
|
|
docker run -it --mount src=$ZFOLDER,target=/home/zenith,type=bind --net=host $IMAGE_NAME
|
|
|
|
# End
|
|
|