-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
97 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
# Author: Christiam Camacho ([email protected]) | ||
# Created: Mon Nov 29 17:29:31 EST 2021 | ||
|
||
export PATH=/bin:/usr/local/bin:/usr/bin | ||
set -xeuo pipefail | ||
shopt -s nullglob | ||
|
||
|
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 |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
# Author: Christiam Camacho ([email protected]) | ||
# Created: Tue Nov 30 08:07:53 EST 2021 | ||
|
||
export PATH=/bin:/usr/local/bin:/usr/bin | ||
set -xuo pipefail | ||
shopt -s nullglob | ||
|
||
|
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 |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
# Author: Christiam Camacho ([email protected]) | ||
# Created: Tue Nov 30 08:09:03 EST 2021 | ||
|
||
export PATH=/bin:/usr/local/bin:/usr/bin | ||
set -xuo pipefail | ||
shopt -s nullglob | ||
|
||
|
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,39 @@ | ||
#!/bin/bash | ||
# bin/gcp-setup-elastic-blast-janitor.sh: Script to set up the ElasticBLAST | ||
# janitor permissions in GCP | ||
# | ||
# Author: Christiam Camacho ([email protected]) | ||
# Created: Tue 08 Mar 2022 04:53:15 PM EST | ||
|
||
set -euo pipefail | ||
shopt -s nullglob | ||
|
||
command -v gcloud >&/dev/null || { echo "gcloud must be in your PATH for this script to work"; exit 1; } | ||
|
||
user=$(gcloud config get-value account) | ||
prj=$(gcloud config get-value project) | ||
|
||
usage() { | ||
echo -e "$0 [-h] [-u USERNAME] [-p GCP_PROJECT_ID]\n" | ||
echo -e "This script sets up the permissions to the ElasticBLAST janitor in GCP" | ||
echo -e "Options:" | ||
echo -e "\t-u USERNAME: GCP user, group or service account to configure (default: user:$user)" | ||
echo -e "\t\tFor specific format, please see https://cloud.google.com/sdk/gcloud/reference/projects/add-iam-policy-binding#--member" | ||
echo -e "\t-p GCP_PROJECT_ID: GCP project ID (default: ${prj})" | ||
echo -e "\t\tDocumentation: https://cloud.google.com/sdk/gcloud/reference/projects/add-iam-policy-binding#PROJECT_ID" | ||
echo -e "\t-h: Show this message" | ||
} | ||
|
||
while getopts "u:ph" OPT; do | ||
case $OPT in | ||
u) user=${OPTARG} | ||
;; | ||
p) prj=${OPTARG} | ||
;; | ||
h) usage | ||
exit 0 | ||
;; | ||
esac | ||
done | ||
|
||
gcloud projects add-iam-policy-binding ${prj} --member=user:${user} --role=roles/container.admin |
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
wheel | ||
setuptools | ||
importlib-resources | ||
importlib-metadata | ||
pex | ||
boto3==1.21.10 | ||
botocore==1.24.10 | ||
awslimitchecker | ||
tenacity | ||
dataclasses_json | ||
types-pkg-resources | ||
wheel == 0.37.1 | ||
setuptools == 56.0.0 | ||
importlib-resources == 5.4.0 | ||
importlib-metadata == 4.11.3 | ||
pex == 2.1.73 | ||
boto3 == 1.21.24 | ||
botocore == 1.24.24 | ||
awslimitchecker == 12.0.0 | ||
tenacity == 8.0.1 | ||
dataclasses-json == 0.5.7 | ||
types-pkg-resources == 0.1.3 |
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
-r base.txt | ||
|
||
pytest | ||
pytest-cov | ||
pytest-mock | ||
teamcity-messages | ||
mypy | ||
pylint==2.7.4 | ||
tox | ||
yamllint | ||
moto >= 2.2.19 | ||
docker | ||
cfn-lint | ||
pytest == 7.1.1 | ||
pytest-cov == 3.0.0 | ||
pytest-mock == 3.7.0 | ||
teamcity-messages == 1.31 | ||
mypy == 0.941 | ||
pylint == 2.7.4 | ||
tox == 3.24.5 | ||
yamllint == 1.26.3 | ||
moto == 3.1.1 | ||
docker == 5.0.3 | ||
cfn-lint == 0.58.4 |
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
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