mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-09-17 08:29:04 +02:00
FRANCIS_HOST decides where the Francis actor runtime lives. When it is empty or set to "embedded" (the default), Pocket ID starts the runtime inside its own process, backed by its own database. Any other value is the address, or a comma-separated list of addresses, of a standalone Francis runtime. Pocket ID then connects to it as a remote actor host and starts no embedded runtime. Note: connecting to a standalone runtime also needs FRANCIS_HOST_PSK or FRANCIS_HOST_JWT, and optionally (but recommended) FRANCIS_CA. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DMgoTZtznSjP4SHTaHbRen
29 lines
1.0 KiB
Bash
Executable File
29 lines
1.0 KiB
Bash
Executable File
#!/bin/sh
|
|
# Prints the Francis version Pocket ID depends on, formatted as the tag of the runtime's container image.
|
|
#
|
|
# The Go module is the single source of truth for the version: the standalone runtime the E2E tests run against
|
|
# has to be the same version as the client Pocket ID is built with, and pinning it in two places lets them drift.
|
|
#
|
|
# Usage, from this directory:
|
|
# echo "FRANCIS_VERSION=$(./francis-version.sh)" > .env
|
|
#
|
|
# This is a plain shell script rather than "go list" because the E2E workflow does not set up Go.
|
|
set -eu
|
|
|
|
go_mod="$(CDPATH='' cd -- "$(dirname -- "$0")/../../backend" && pwd)/go.mod"
|
|
|
|
if [ ! -f "$go_mod" ]; then
|
|
echo "francis-version.sh: cannot find $go_mod" >&2
|
|
exit 1
|
|
fi
|
|
|
|
# Module versions carry a leading "v" that container tags do not, so it is stripped
|
|
version=$(sed -n 's|^[[:space:]]*github\.com/italypaleale/francis v\([^[:space:]]*\).*|\1|p' "$go_mod" | head -n 1)
|
|
|
|
if [ -z "$version" ]; then
|
|
echo "francis-version.sh: no github.com/italypaleale/francis requirement found in $go_mod" >&2
|
|
exit 1
|
|
fi
|
|
|
|
printf '%s\n' "$version"
|