-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathquickstart.sh
More file actions
executable file
·42 lines (35 loc) · 1.36 KB
/
Copy pathquickstart.sh
File metadata and controls
executable file
·42 lines (35 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
VENV_DIR="${ROOT_DIR}/.venv"
if ! command -v python3 >/dev/null 2>&1; then
echo "Error: python3 is required but not found in PATH." >&2
exit 1
fi
cd "${ROOT_DIR}"
echo "Creating virtual environment at ${VENV_DIR} ..."
python3 -m venv "${VENV_DIR}"
echo "Installing Anglerfish ..."
"${VENV_DIR}/bin/python" -m pip install --upgrade pip "setuptools>=78.1.1"
"${VENV_DIR}/bin/pip" install -e .
echo
echo "Quickstart setup complete."
echo
echo "Next steps:"
echo "1. Activate environment:"
echo " source .venv/bin/activate"
echo "2. Set application auth variables:"
echo " export ANGLERFISH_CLIENT_ID=\"<your-application-client-id>\""
echo " export ANGLERFISH_TENANT_ID=\"<your-tenant-id-guid>\""
echo " export ANGLERFISH_APP_CREDENTIAL_MODE=\"secret\""
echo " export ANGLERFISH_CLIENT_SECRET=\"<your-client-secret>\""
echo " # or certificate auth:"
echo " # export ANGLERFISH_APP_CREDENTIAL_MODE=\"certificate\""
echo " # export ANGLERFISH_CLIENT_CERT_PFX_PATH=\"/path/to/client-cert.pfx\""
echo " # export ANGLERFISH_CLIENT_CERT_PASSPHRASE=\"<optional-passphrase>\""
echo "3. Verify CLI:"
echo " anglerfish --version"
echo "4. Run first deployment:"
echo " anglerfish"
echo " # or force certificate mode:"
echo " # anglerfish --credential-mode certificate"