mirror of
https://github.com/dredx/prole.git
synced 2026-09-24 19:54:32 +00:00
- Rewrite stale foreign home prefixes when loading env defaults (macOS <-> Linux)
- Write /Users/chrisfu-relative values to env.sh; sanitize prole.cfg paths to use ${HOME}
- Remove remaining /Users/chrisfu defaults from helper scripts and OpenTofu kubeconfig path
- Make installer tests more reliable by forcing repo root to front of sys.path
Co-authored-by: Junie <junie@jetbrains.com>
17 lines
671 B
Bash
Executable File
17 lines
671 B
Bash
Executable File
# export MSSQL_SA_PASSWORD=$(openssl rand -base64 32)
|
|
if [[ -z "${MSSQL_SA_PASSWORD:-}" ]]; then
|
|
echo "ERROR: MSSQL_SA_PASSWORD is required. Store it in OpenBao (kv/prole/<namespace>/mssql#sa_password) or export it." >&2
|
|
exit 1
|
|
fi
|
|
|
|
PROLE_HOME="${PROLE_HOME:-$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)}"
|
|
|
|
DOCKER_DEFAULT_PLATFORM=linux/amd64 docker run --rm -it \
|
|
--hostname=prole-mssql-db001 -p 1433:1433 \
|
|
-e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=$MSSQL_SA_PASSWORD" \
|
|
--env=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
|
|
--volume="${PROLE_HOME}/mssql/data:/var/opt/mssql/data" \
|
|
--entrypoint bash \
|
|
--restart=no \
|
|
prole-mssql-db:016
|