making it possible to have the tech files outside of your home directory
This commit is contained in:
parent
c3f0f6e5f3
commit
2e125a337e
@ -170,7 +170,7 @@ RUN cp -r pr/* /opt/cad/bin
|
|||||||
RUN mkdir "/host"
|
RUN mkdir "/host"
|
||||||
WORKDIR "/host"
|
WORKDIR "/host"
|
||||||
RUN rm -rf /opt/cad/conf
|
RUN rm -rf /opt/cad/conf
|
||||||
RUN ln -s "/host/tech" "/opt/cad/conf"
|
RUN mkdir /opt/cad/conf
|
||||||
|
|
||||||
ENV USER "bcli"
|
ENV USER "bcli"
|
||||||
ENV USER_ID "1000"
|
ENV USER_ID "1000"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
bcli() {
|
bcli() {
|
||||||
if [ "$1" = "up" ]; then
|
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 -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 --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 "${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"
|
echo "bcli-develop started"
|
||||||
elif [ "$1" = "down" ]; then
|
elif [ "$1" = "down" ]; then
|
||||||
docker stop bcli-develop > /dev/null
|
docker stop bcli-develop > /dev/null
|
||||||
|
Loading…
Reference in New Issue
Block a user