forked from vagabond-systems/underhill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.sh
executable file
·33 lines (30 loc) · 933 Bytes
/
start.sh
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
#!/bin/bash
{
read -r TAG
} <version.txt
MAX_FLOCK_SIZE="5"
FLOCKMATE_IMAGE="josiahdc/polygon"
CREDS_DIRECTORY="$HOME/vagabond/secrets/pasture_test"
FLOCKMATE_ENVIRONMENT='{
"GCP_LOCATION": "us-west1",
"MODEL_NAME": "gemini-1.5-pro-001",
"PROJECT": "vagabondsystems",
"GOOGLE_APPLICATION_CREDENTIALS": "/creds/key.json"
}'
docker stop pasture-shepherd >/dev/null 2>&1
docker rm pasture-shepherd >/dev/null 2>&1
docker pull josiahdc/shepherd:"$TAG"
docker pull josiahdc/liaison:"$TAG"
docker pull josiahdc/polygon:"$TAG"
docker run \
--restart always \
-d \
--name pasture-shepherd \
--network host \
-v /var/run/docker.sock:/var/run/docker.sock \
-e VERSION_TAG="$TAG" \
-e MAX_FLOCK_SIZE="$MAX_FLOCK_SIZE" \
-e FLOCKMATE_IMAGE="$FLOCKMATE_IMAGE" \
-e CREDS_DIRECTORY="$CREDS_DIRECTORY" \
-e FLOCKMATE_ENVIRONMENT="$FLOCKMATE_ENVIRONMENT" \
josiahdc/shepherd:"$TAG"