Limit mount point scope; damonized start; separated clean vs reset
This commit is contained in:
@@ -16,11 +16,6 @@ function main() {
|
||||
podman image prune
|
||||
podman volume prune
|
||||
podman network prune
|
||||
|
||||
podman machine stop
|
||||
podman machine reset
|
||||
podman machine init
|
||||
podman machine start
|
||||
}
|
||||
main $@;
|
||||
|
||||
|
||||
26
Docker/scripts/reset.sh
Executable file
26
Docker/scripts/reset.sh
Executable 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 $@;
|
||||
|
||||
@@ -18,14 +18,20 @@ function main() {
|
||||
exit 1
|
||||
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 \
|
||||
-e HOME="${HOME}" \
|
||||
-e MAVEN_OPTS="-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" \
|
||||
-v "${HOME}":"${HOME}" \
|
||||
-v "${CODE_HOST}":"${CODE_CONTAINER}" \
|
||||
-v "${CONFIG_HOST}":"${CONFIG_CONTAINER}" \
|
||||
newton-lsp:latest
|
||||
}
|
||||
main $@;
|
||||
|
||||
Reference in New Issue
Block a user