Limit mount point scope; damonized start; separated clean vs reset

This commit is contained in:
2025-11-26 16:40:01 -06:00
parent 51a0c4a677
commit 315de5d1f7
4 changed files with 37 additions and 8 deletions

View File

@@ -58,7 +58,9 @@ RUN apt-get install \
libgirepository1.0-dev \ libgirepository1.0-dev \
libssl-dev libcairo2-dev \ libssl-dev libcairo2-dev \
curl \ curl \
wget \
clang \ clang \
clangd \
gopls \ gopls \
git git

View File

@@ -16,11 +16,6 @@ function main() {
podman image prune podman image prune
podman volume prune podman volume prune
podman network prune podman network prune
podman machine stop
podman machine reset
podman machine init
podman machine start
} }
main $@; main $@;

26
Docker/scripts/reset.sh Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/bash
# . CONFIG.sh
# set -o xtrace ## To debug scripts
# set -o errexit ## To exit on error
# set -o errunset ## To exit if a variable is referenced but not set
function main() {
SCRIPTPATH="$( cd "$(dirname "")" >/dev/null 2>&1 ; pwd -P )"
cd "${SCRIPTPATH}"
echo "Working Dir: " $(pwd)
podman container prune
podman image prune
podman volume prune
podman network prune
podman machine stop
podman machine reset
podman machine init
podman machine start
}
main $@;

View File

@@ -18,14 +18,20 @@ function main() {
exit 1 exit 1
fi fi
podman run \ CODE_HOST="${HOME}/Coding"
CODE_CONTAINER="${HOME}/Coding"
CONFIG_HOST="${HOME}/.config/lsps"
CONFIG_CONTAINER="${HOME}/.config/lsps"
podman run -d \
-p 9999:9999 \ -p 9999:9999 \
-e HOME="${HOME}" \ -e HOME="${HOME}" \
-e MAVEN_OPTS="-Duser.home=${HOME}" \ -e MAVEN_OPTS="-Duser.home=${HOME}" \
-e JAVA_TOOL_OPTIONS="-Duser.home=${HOME}" \ -e JAVA_TOOL_OPTIONS="-Duser.home=${HOME}" \
-e JDTLS_CONFIG_PATH="${HOME}/.config/lsps/jdtls" \ -e JDTLS_CONFIG_PATH="${CONFIG_CONTAINER}/jdtls" \
-e JDTLS_DATA_PATH="${JDTLS_CONFIG_PATH}/data" \ -e JDTLS_DATA_PATH="${JDTLS_CONFIG_PATH}/data" \
-v "${HOME}":"${HOME}" \ -v "${CODE_HOST}":"${CODE_CONTAINER}" \
-v "${CONFIG_HOST}":"${CONFIG_CONTAINER}" \
newton-lsp:latest newton-lsp:latest
} }
main $@; main $@;