Skip to content

Commit

Permalink
merge: #4044
Browse files Browse the repository at this point in the history
4044: chore: update userdata example to include dockerhub login r=sprutton1 a=sprutton1

Dockerhub is a curse on the land. SDF failed to start correctly because we use docker to build the config file and the pull was rate limited. I'm also going to change the healthcheck so the LB will kill the instance if it is unresponsive. We need better healthchecks for the other services, though.

Co-authored-by: Scott Prutton <scott@systeminit.com>
  • Loading branch information
si-bors-ng[bot] and sprutton1 authored Jun 26, 2024
2 parents a6acbd6 + 1aadca3 commit 35be650
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/veritech/scripts/userdata.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ wget https://artifacts.systeminit.com/${SI_SERVICE}/${SI_VERSION}/omnibus/linux/

# prep system
mkdir -p /run/app

DOCKER_CREDS=$(aws secretsmanager get-secret-value --region us-east-1 --secret-id ${SI_HOSTENV}-dockerhub-creds | jq -r '.SecretString')
docker login --username $(echo $DOCKER_CREDS | jq -r '.username') --password-stdin <<< $(echo $DOCKER_CREDS | jq -r '.password')
wget https://raw.githubusercontent.com/systeminit/si/${BRANCH:-main}/component/deploy/docker-compose.yaml -O /run/app/docker-compose.yaml

docker-compose -f /run/app/docker-compose.yaml --profile $SI_SERVICE up --wait
Expand Down
3 changes: 3 additions & 0 deletions component/deploy/userdata
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ wget https://artifacts.systeminit.com/${SI_SERVICE}/${SI_VERSION}/omnibus/linux/

# prep system
mkdir -p /run/app

DOCKER_CREDS=$(aws secretsmanager get-secret-value --region us-east-1 --secret-id ${SI_HOSTENV}-dockerhub-creds | jq -r '.SecretString')
docker login --username $(echo $DOCKER_CREDS | jq -r '.username') --password-stdin <<< $(echo $DOCKER_CREDS | jq -r '.password')
wget https://raw.githubusercontent.com/systeminit/si/${BRANCH:-main}/component/deploy/docker-compose.yaml -O /run/app/docker-compose.yaml

docker-compose -f /run/app/docker-compose.yaml --profile $SI_SERVICE up --wait
Expand Down

0 comments on commit 35be650

Please sign in to comment.