build base before not base. map kubes ands cripts dirs

This commit is contained in:
j 2025-08-19 07:37:41 +00:00
parent 48216435d3
commit 161e20eb78

10
run.sh
View file

@ -11,11 +11,13 @@ docker_run() {
docker run -it --rm \
-u "${UID}:${GID}" \
-v ~/.bashrc:/home/x/.bashrc \
-v ~/.kube:/home/x/.kube \
-v ~/.ssh:/home/x/.ssh \
-v ${SSH_AUTH_SOCK}:/run/user/${UID}/ssh-agent.socket \
-v ~/.gitconfig:/home/x/.gitconfig \
-v ~/.config/git:/home/x/.config/git \
-v $HOME/Projects:/home/x/Projects \
-v $HOME/Scripts:/home/x/Scripts \
-v ${HOME}/.Xauthority:/home/x/.Xauthority \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-e DISPLAY=${DISPLAY} \
@ -28,7 +30,13 @@ docker_run() {
docker_build() {
# --network=host prevent stupid docker shit breaking yay
docker build --network=host ./${1} -t d:${1}
if [ $1 == "base" ] ; then
docker build --network=host ./${1} -t d:${1}
else
# Need base installed first dur
docker build --network=host ./base -t d:base
docker build --network=host ./${1} -t d:${1}
fi
}