feature/tech #3
@ -170,7 +170,7 @@ RUN cp -r pr/* /opt/cad/bin
|
||||
RUN mkdir "/host"
|
||||
WORKDIR "/host"
|
||||
RUN rm -rf /opt/cad/conf
|
||||
RUN ln -s "/host/tech" "/opt/cad/conf"
|
||||
RUN mkdir /opt/cad/conf
|
||||
|
||||
ENV USER "bcli"
|
||||
ENV USER_ID "1000"
|
||||
|
@ -1,7 +1,7 @@
|
||||
bcli() {
|
||||
if [ "$1" = "up" ]; then
|
||||
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
|
||||
#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" ${BCLI_IMAGE:-public.ecr.aws/l5h5o6z4/broccoli-cli:latest} > /dev/null
|
||||
docker run --rm -d -v $HOME:/host -v "/opt/tech:/opt/cad/conf" --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 -v "${BCLI_TECH:/opt/tech}:/opt/cad/conf" --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" ${BCLI_IMAGE:-public.ecr.aws/l5h5o6z4/broccoli-cli:latest} > /dev/null
|
||||
echo "bcli-develop started"
|
||||
elif [ "$1" = "down" ]; then
|
||||
docker stop bcli-develop > /dev/null
|
||||
|
Loading…
Reference in New Issue
Block a user