mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-11 12:09:36 +02:00
undo code comments
This commit is contained in:
parent
5f56c0c1a1
commit
bc2843bfe7
1 changed files with 36 additions and 36 deletions
|
@ -7,51 +7,51 @@ if [ -z "$1" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# if [ ! $(command -v gh) ] || [ ! $(command -v jq) ] || [ ! $(command -v cf) ]; then
|
if [ ! $(command -v gh) ] || [ ! $(command -v jq) ] || [ ! $(command -v cf) ]; then
|
||||||
# echo "jq, cf, and gh packages must be installed. Please install via your preferred manager."
|
echo "jq, cf, and gh packages must be installed. Please install via your preferred manager."
|
||||||
# exit 1
|
exit 1
|
||||||
# fi
|
fi
|
||||||
|
|
||||||
upcase_name=$(printf "%s" "$1" | tr '[:lower:]' '[:upper:]')
|
upcase_name=$(printf "%s" "$1" | tr '[:lower:]' '[:upper:]')
|
||||||
|
|
||||||
# read -p "Are you on a new branch? We will have to commit this work. (y/n) " -n 1 -r
|
read -p "Are you on a new branch? We will have to commit this work. (y/n) " -n 1 -r
|
||||||
# echo
|
echo
|
||||||
# if [[ ! $REPLY =~ ^[Yy]$ ]]
|
if [[ ! $REPLY =~ ^[Yy]$ ]]
|
||||||
# then
|
then
|
||||||
# git checkout -b new-dev-sandbox-$1
|
git checkout -b new-dev-sandbox-$1
|
||||||
# fi
|
fi
|
||||||
|
|
||||||
# cf target -o cisa-dotgov
|
cf target -o cisa-dotgov
|
||||||
|
|
||||||
# read -p "Are you logged in to the cisa-dotgov CF org above? (y/n) " -n 1 -r
|
read -p "Are you logged in to the cisa-dotgov CF org above? (y/n) " -n 1 -r
|
||||||
# echo
|
echo
|
||||||
# if [[ ! $REPLY =~ ^[Yy]$ ]]
|
if [[ ! $REPLY =~ ^[Yy]$ ]]
|
||||||
# then
|
then
|
||||||
# cf login -a https://api.fr.cloud.gov --sso
|
cf login -a https://api.fr.cloud.gov --sso
|
||||||
# fi
|
fi
|
||||||
|
|
||||||
# gh auth status
|
gh auth status
|
||||||
# read -p "Are you logged into a Github account with access to cisagov/getgov? (y/n) " -n 1 -r
|
read -p "Are you logged into a Github account with access to cisagov/getgov? (y/n) " -n 1 -r
|
||||||
# echo
|
echo
|
||||||
# if [[ ! $REPLY =~ ^[Yy]$ ]]
|
if [[ ! $REPLY =~ ^[Yy]$ ]]
|
||||||
# then
|
then
|
||||||
# gh auth login
|
gh auth login
|
||||||
# fi
|
fi
|
||||||
|
|
||||||
# echo "Creating manifest for $1..."
|
echo "Creating manifest for $1..."
|
||||||
# cp ops/scripts/manifest-sandbox-template.yaml ops/manifests/manifest-$1.yaml
|
cp ops/scripts/manifest-sandbox-template.yaml ops/manifests/manifest-$1.yaml
|
||||||
# sed -i '' "s/ENVIRONMENT/$1/" "ops/manifests/manifest-$1.yaml"
|
sed -i '' "s/ENVIRONMENT/$1/" "ops/manifests/manifest-$1.yaml"
|
||||||
|
|
||||||
# echo "Adding new environment to settings.py..."
|
echo "Adding new environment to settings.py..."
|
||||||
# sed -i '' '/getgov-development.app.cloud.gov/ {a\
|
sed -i '' '/getgov-development.app.cloud.gov/ {a\
|
||||||
# '\"getgov-$1.app.cloud.gov\"',
|
'\"getgov-$1.app.cloud.gov\"',
|
||||||
# }' src/registrar/config/settings.py
|
}' src/registrar/config/settings.py
|
||||||
|
|
||||||
# echo "Creating new cloud.gov space for $1..."
|
echo "Creating new cloud.gov space for $1..."
|
||||||
# cf create-space $1
|
cf create-space $1
|
||||||
# cf target -o "cisa-dotgov" -s $1
|
cf target -o "cisa-dotgov" -s $1
|
||||||
# cf bind-security-group public_networks_egress cisa-dotgov --space $1
|
cf bind-security-group public_networks_egress cisa-dotgov --space $1
|
||||||
# cf bind-security-group trusted_local_networks_egress cisa-dotgov --space $1
|
cf bind-security-group trusted_local_networks_egress cisa-dotgov --space $1
|
||||||
|
|
||||||
echo "Creating new cloud.gov DB for $1. This usually takes about 5 minutes..."
|
echo "Creating new cloud.gov DB for $1. This usually takes about 5 minutes..."
|
||||||
cf create-service aws-rds micro-psql getgov-$1-database
|
cf create-service aws-rds micro-psql getgov-$1-database
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue