mirror of
https://github.com/dredx/prole.git
synced 2026-09-23 12:03:59 +00:00
- Bumped Prole-DB image version to 17.7-053 in scripts, Dockerfile, and manifests. - Replaced `prole-scan` with `prole-agent` throughout scripts and tests. - Refined Kubernetes setup for Supabase to use namespace 'supabase'. - Introduced conversion of Supabase Docker Compose to Kubernetes manifests with `kompose`. - Added support for Kerberos toggle via environment variables in `init_kerberos.sh`. - Improved error handling and logging in scripts for better maintainability.
20 lines
798 B
Bash
Executable File
20 lines
798 B
Bash
Executable File
set -eux
|
|
# export POSTGRES_PASSWORD=$(openssl rand -base64 32)
|
|
# echo "$POSTGRES_PASSWORD" > postgres-password.txt
|
|
export POSTGRES_PASSWORD=$(cat postgres-password.txt)
|
|
|
|
PROLE_HOME=~/dev/prole
|
|
PG_VERSION=$(cat "$PROLE_HOME/conf/postgresql/.version" 2>/dev/null | tr -d '[:space:]')
|
|
RELEASE=$(cat "$PROLE_HOME/prole-db/.version" 2>/dev/null | tr -d '[:space:]')
|
|
if [[ "$RELEASE" =~ ^[0-9]+$ ]]; then RELEASE=$(printf "%03d" "$RELEASE"); fi
|
|
IMAGE="prole-db:${PG_VERSION:-17.7}-${RELEASE:-043}"
|
|
|
|
docker run --rm -it --hostname=prole-db-00n \
|
|
-e POSTGRES_PASSWORD="$POSTGRES_PASSWORD" \
|
|
--env=PATH=/usr/lib/postgresql/17/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
|
|
--volume=/Users/chrisfu/dev/prole/data:/data \
|
|
--network=bridge \
|
|
--entrypoint bash \
|
|
--restart=no \
|
|
$IMAGE
|