mirror of
https://github.com/dredx/prole.git
synced 2026-09-24 19:14:33 +00:00
- Introduce lib/shell helpers and keep etc/* scripts thin via compatibility shims - Move Kerberos validation to scripts/validation/check_kerberos.sh and update callers - Add deterministic shellspec unit tests under tests/shellspec/ and wire Maven to run them - Add minimal Spring Boot authority module with startup + /health endpoint and Maven wiring - Document the new layout in docs/layout.md Co-authored-by: Junie <junie@jetbrains.com>
25 lines
572 B
Bash
Executable File
25 lines
572 B
Bash
Executable File
#!/bin/sh -eu
|
|
|
|
: "${SHELLSPEC_DOCKER:=shellspec/shellspec}"
|
|
UID=$(id -u) GID=$(id -g)
|
|
|
|
case $(uname -r) in (*Microsoft*)
|
|
PWD=$(wslpath -wa .)
|
|
if [ "${PWD##[a-zA-Z]:[\\/]*}" ]; then
|
|
echo "'$PWD' is not a valid Windows path" >&2
|
|
exit 1
|
|
fi
|
|
esac
|
|
|
|
docker_run() {
|
|
docker run -it --rm --entrypoint=/shellspec-docker "$@"
|
|
}
|
|
|
|
# You can override docker_run() with initrc to changes options,
|
|
# pass environment variables, etc.
|
|
if [ -e .shellspec-docker/initrc ]; then
|
|
. .shellspec-docker/initrc
|
|
fi
|
|
|
|
docker_run -u "$UID:$GID" -v "$PWD:/src" "$SHELLSPEC_DOCKER" "$@"
|