prole/tests/shellspec/.vendor/shellspec-0.28.1/contrib/shellspec-docker
chrisfu 909e92109e Refactor shell layout; add shellspec + authority
- 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>
2026-03-13 09:19:56 -07:00

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" "$@"