mirror of
https://github.com/OpenStaticFish/MicroServices.git
synced 2026-10-13 06:35:12 +00:00
Add lightpanda-cdp and lightpanda-mcp services for local (Tilt) and production (deploy/prod/) with Traefik routing, HPAs, and CI image publishing. Create scripts for concurrent Bing search via MCP and CDP screenshots. Update flake.nix with websocat dependency. Make webshare-secret helper tolerant of missing Doppler credentials.
18 lines
671 B
Bash
Executable File
18 lines
671 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
if [ -z "${DOPPLER_INJECTED:-}" ] && command -v doppler >/dev/null 2>&1 && doppler whoami >/dev/null 2>&1; then
|
|
exec doppler run -- bash "$0" "$@"
|
|
fi
|
|
|
|
if [ -n "${WEBSHARE_API_KEY:-}" ] && [ -n "${WEBSHARE_PROXY_USERNAME:-}" ] && [ -n "${WEBSHARE_PROXY_PASSWORD:-}" ]; then
|
|
kubectl create secret generic webshare-api \
|
|
--from-literal=api-key="$WEBSHARE_API_KEY" \
|
|
--from-literal=proxy-username="$WEBSHARE_PROXY_USERNAME" \
|
|
--from-literal=proxy-password="$WEBSHARE_PROXY_PASSWORD" \
|
|
--dry-run=client \
|
|
-o yaml | kubectl apply -f -
|
|
else
|
|
echo "Webshare runtime config missing; country scraping unavailable"
|
|
fi
|