freeze initial panda-rpki staging
This commit is contained in:
14
deploy/docker/scripts/start.sh
Executable file
14
deploy/docker/scripts/start.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
COMPOSE_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
||||
cd "$COMPOSE_ROOT"
|
||||
|
||||
[[ -f .env ]] || { echo "missing $COMPOSE_ROOT/.env; copy .env.example first" >&2; exit 2; }
|
||||
set -a
|
||||
# shellcheck disable=SC1091
|
||||
source .env
|
||||
set +a
|
||||
mkdir -p "${HOST_DATA_DIR:-/var/lib/panda-rpki-validator}"/{state,runs,logs,tmp}
|
||||
docker compose -f compose.yml up -d
|
||||
7
deploy/docker/scripts/status.sh
Executable file
7
deploy/docker/scripts/status.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
COMPOSE_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
||||
cd "$COMPOSE_ROOT"
|
||||
docker compose -f compose.yml ps
|
||||
7
deploy/docker/scripts/stop.sh
Executable file
7
deploy/docker/scripts/stop.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
COMPOSE_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
||||
cd "$COMPOSE_ROOT"
|
||||
docker compose -f compose.yml down
|
||||
Reference in New Issue
Block a user