-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* temp CRIB workshop * tested script + build/deploy separation * check images in ECR, fail if no image built * another try with ecr * force login to registry --------- Co-authored-by: skudasov <[email protected]>
- Loading branch information
Showing
10 changed files
with
106 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
user_home="$HOME" | ||
file_path="$user_home/.aws/config" | ||
image="" | ||
registry_id=$(echo "$DEVSPACE_IMAGE" | cut -d'.' -f1) | ||
|
||
if grep -q "staging-crib" "$file_path"; then | ||
echo "Staging AWS config is already applied, role is 'staging-crib'" | ||
else | ||
cat <<EOF >> "$file_path" | ||
[profile staging-crib] | ||
region=us-west-2 | ||
sso_start_url=https://smartcontract.awsapps.com/start | ||
sso_region=us-west-2 | ||
sso_account_id=${registry_id} | ||
sso_role_name=CRIB-ECR-Power | ||
EOF | ||
echo "~/.aws/config modified, added 'staging-crib" | ||
fi | ||
|
||
# Login through SSO | ||
aws sso login --profile staging-crib | ||
# Update kubeconfig and switch context | ||
export AWS_PROFILE=staging-crib | ||
aws eks update-kubeconfig --name main-stage-cluster --alias main-stage-cluster-crib --profile staging-crib | ||
|
||
# Check if the Docker daemon is running | ||
if docker info > /dev/null 2>&1; then | ||
echo "Docker daemon is running, authorizing registry" | ||
else | ||
echo "Docker daemon is not running, exiting" | ||
exit 1 | ||
fi | ||
aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin ${registry_id}.dkr.ecr.us-west-2.amazonaws.com | ||
devspace use namespace $1 |
23 changes: 0 additions & 23 deletions
23
charts/chainlink-cluster/templates/chainlink-db-networkpolicy.yaml
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
charts/chainlink-cluster/templates/chainlink-node-networkpolicy.yaml
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
charts/chainlink-cluster/templates/geth-networkpolicy.yaml
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
charts/chainlink-cluster/templates/mockserver-networkpolicy.yaml
This file was deleted.
Oops, something went wrong.
41 changes: 0 additions & 41 deletions
41
charts/chainlink-cluster/templates/networkpolicy-default.yaml
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
charts/chainlink-cluster/templates/runner-networkpolicy.yaml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,7 @@ mkShell { | |
delve | ||
golangci-lint | ||
github-cli | ||
jq | ||
|
||
# deployment | ||
devspace | ||
|