Skip to content

Commit

Permalink
chore: update userdata example to include dockerhub login
Browse files Browse the repository at this point in the history
  • Loading branch information
sprutton1 committed Jun 26, 2024
1 parent a6acbd6 commit 1aadca3
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 1aadca3

Please sign in to comment.