Files
cameleer-saas-installer/get-cameleer.sh
hsiegeln afbef2737a feat: initial installer release
Installer scripts and compose templates for deploying the Cameleer
SaaS platform. Supports multi-tenant SaaS and standalone modes.

Bootstrap:
  curl -fsSL https://registry.cameleer.io/.../get-cameleer.sh | bash

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-25 12:57:12 +02:00

56 lines
1.2 KiB
Bash

#!/usr/bin/env bash
set -euo pipefail
# Bootstrap script — downloads the Cameleer installer and runs it.
# Usage:
# curl -fsSL https://get.cameleer.io/install | bash
# curl -fsSL https://get.cameleer.io/install | bash -s -- --version v1.2.0
REPO="https://registry.cameleer.io/cameleer/cameleer-saas-installer/raw"
REF="branch/main"
DIR="./installer"
# Parse --version / --ref
for arg in "$@"; do
case "$arg" in
--version=*) REF="tag/${arg#*=}"; shift ;;
--ref=*) REF="branch/${arg#*=}"; shift ;;
esac
done
BASE="$REPO/$REF"
FILES=(
"install.sh"
"templates/docker-compose.yml"
"templates/docker-compose.saas.yml"
"templates/docker-compose.server.yml"
"templates/docker-compose.tls.yml"
"templates/docker-compose.monitoring.yml"
"templates/traefik-dynamic.yml"
"templates/.env.example"
)
echo "Downloading Cameleer installer..."
mkdir -p "$DIR/templates"
for file in "${FILES[@]}"; do
echo " $file"
curl -fsSL "$BASE/$file" -o "$DIR/$file"
done
chmod +x "$DIR/install.sh"
echo ""
echo "Installer ready in $DIR/"
echo "Run: cd $DIR && ./install.sh"
echo ""
# Auto-run if not piped with extra args that look like they want manual control
if [ "${1:-}" = "--run" ]; then
shift
cd "$DIR"
exec ./install.sh "$@"
fi