bcli-develop.sh pulls docker image from AWS.

This commit is contained in:
jpt4 2023-05-17 17:05:48 +00:00
parent 95c7388964
commit 983aa99c16

View File

@ -1,10 +1,11 @@
bcli() {
if [ "$1" = "up" ]; then
docker run -d -v $HOME:/host --rm --name "bcli-develop" -h "bcli-develop" -e USER=$USER -e USER_ID=$(id -u) -e GROUP_ID=$(id -g) -e DISPLAY=$DISPLAY -v "/tmp/.X11-unix:/tmp/.X11-unix:rw" public.ecr.aws/l5h5o6z4/broccoli-cli:latest > /dev/null
docker run --rm -d -v $HOME:/host --name "bcli-develop" -h "bcli-develop" -e USER=$USER -e USER_ID=$(id -u) -e GROUP_ID=$(id -g) -e DISPLAY=$DISPLAY -v "/tmp/.X11-unix:/tmp/.X11-unix:rw" public.ecr.aws/l5h5o6z4/broccoli-cli:latest > /dev/null
echo "bcli-develop started"
elif [ "$1" = "down" ]; then
docker stop bcli-develop > /dev/null
echo "bcli-develop stopped"
#legacy, or if server files change faster than a new download
elif [ "$1" = "mount" ]; then
if [ -z "$BROCCOLI_USER" ]; then
echo "Please set the BROCCOLI_USER environment variable for ssh access."
@ -33,8 +34,8 @@ bcli() {
echo "If command is empty, then start a terminal logged into the toolset."
echo " up - launch the toolset"
echo " down - shutdown the toolset"
echo " mount - mount the technology files from broccolimicro.io"
echo " unmount - unmount the technology files"
echo " -f - force the unmount if the connection has been broken"
echo " mount - legacy command; mount the technology files from broccolimicro.io"
echo " unmount - legacy command; unmount the technology files"
echo " -f - legacy option; force the unmount if the connection has been broken"
fi
}