diff --git a/Dockerfile b/Dockerfile index 8525c79..2e55fe3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -from debian:bookworm-slim +FROM debian:bookworm-slim RUN apt update -y && apt upgrade -y RUN apt install git curl sudo -y && rm -rf /var/lib/apt/lists/* diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..fabeeba --- /dev/null +++ b/build.sh @@ -0,0 +1,16 @@ +docker rm wsl_export + +docker build . --tag ghcr.io/kaelemc/clab-wsl-debian + +docker run -t --name wsl_export ghcr.io/kaelemc/clab-wsl-debian ls / + +sudo rm /mnt/c/temp/clab.wsl.old +sudo mv /mnt/c/temp/clab.wsl /mnt/c/temp/clab.wsl.old + +echo "Exporting to clab.wsl" + +docker export wsl_export > /mnt/c/temp/clab.wsl + +echo "Cleaning up" + +docker rm wsl_export diff --git a/oobe.sh b/oobe.sh index b9c9652..aea3d50 100644 --- a/oobe.sh +++ b/oobe.sh @@ -28,5 +28,3 @@ while true; do fi fi done - -