mirror of
https://github.com/0x1d/drift-keeper.git
synced 2025-12-15 18:58:21 +01:00
Update dashboard and control script
This commit is contained in:
37
ctl.sh
37
ctl.sh
@@ -5,6 +5,30 @@ API_ENDPOINT=https://api.mainnet-beta.solana.com/
|
||||
|
||||
source .env
|
||||
|
||||
function image {
|
||||
function build {
|
||||
mkdir -p .build
|
||||
git clone https://github.com/drift-labs/keeper-bots-v2 -b mainnet-beta .build/keeper-bots-v2
|
||||
docker build -f Dockerfile -t ${DOCKER_IMAGE} .build/keeper-bots-v2
|
||||
rm -rf .build
|
||||
}
|
||||
function push {
|
||||
docker push ${DOCKER_IMAGE}
|
||||
}
|
||||
${@:-}
|
||||
}
|
||||
|
||||
function droplet {
|
||||
function provision {
|
||||
terraform init
|
||||
terraform apply
|
||||
}
|
||||
function connect {
|
||||
ssh keeper@$(terraform output -raw droplet_ip)
|
||||
}
|
||||
${@:-}
|
||||
}
|
||||
|
||||
function balance {
|
||||
function sol {
|
||||
local addr=${1:-$WALLET_ADDRESS}
|
||||
@@ -41,17 +65,4 @@ function balance {
|
||||
${@:-}
|
||||
}
|
||||
|
||||
function image {
|
||||
function build {
|
||||
mkdir -p .build
|
||||
git clone https://github.com/drift-labs/keeper-bots-v2 -b mainnet-beta .build/keeper-bots-v2
|
||||
docker build -f Dockerfile -t ${DOCKER_IMAGE} .build/keeper-bots-v2
|
||||
rm -rf .build
|
||||
}
|
||||
function push {
|
||||
docker push ${DOCKER_IMAGE}
|
||||
}
|
||||
${@:-}
|
||||
}
|
||||
|
||||
${@:-}
|
||||
Reference in New Issue
Block a user