Implement native public edge cutover
This commit is contained in:
parent
d589858c03
commit
bdb9d9a95a
29 changed files with 1215 additions and 31 deletions
24
deployment/native/bootstrap-infra.sh
Executable file
24
deployment/native/bootstrap-infra.sh
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
|
||||
|
||||
if [[ "${EUID}" -eq 0 ]]; then
|
||||
"$repo_root/deployment/native/install-infra-units.sh"
|
||||
else
|
||||
sudo "$repo_root/deployment/native/install-infra-units.sh"
|
||||
fi
|
||||
|
||||
echo "Stopping Docker Islandflow services before native infra opens durable data."
|
||||
(
|
||||
cd "$repo_root/deployment/docker"
|
||||
docker compose stop web api compute candles ingest-options ingest-equities nats redis clickhouse
|
||||
)
|
||||
|
||||
if [[ "${EUID}" -eq 0 ]]; then
|
||||
"$repo_root/deployment/native/start-infra.sh"
|
||||
else
|
||||
sudo "$repo_root/deployment/native/start-infra.sh"
|
||||
fi
|
||||
|
||||
"$repo_root/deployment/native/check-native-infra.sh"
|
||||
Loading…
Add table
Add a link
Reference in a new issue