-
Notifications
You must be signed in to change notification settings - Fork 6
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
1 parent
b14f8bf
commit e239519
Showing
7 changed files
with
49 additions
and
7 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
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,35 @@ | ||
#!/bin/bash | ||
# | ||
# Deploy UI Server on GCP. | ||
# | ||
# gcloud must be installed before running this script. | ||
|
||
set -o errexit | ||
set -o nounset | ||
|
||
if (( $# != 1 )) | ||
then | ||
echo "Usage: deploy/deploy-ui.sh <dataset>" | ||
echo " where <dataset> is the name of a directory in dataset_config/" | ||
echo "Run this script from project root" | ||
exit 1 | ||
fi | ||
|
||
dataset=$1 | ||
project_id=$(jq --raw-output '.project_id' dataset_config/${dataset}/deploy.json) | ||
|
||
bold=$(tput bold) | ||
normal=$(tput sgr0) | ||
echo "Deploying UI server for ${bold}dataset ${dataset}${normal} to ${bold}project ${project_id}${normal}" | ||
echo | ||
|
||
# Initialize gcloud command | ||
gcloud config set project ${project_id} | ||
|
||
# Create ui/app.yml from ui/app.yml.templ | ||
git_commit=$(git rev-parse HEAD) | ||
sed -e "s/MY_GIT_COMMIT/${git_commit}/" ui/app.yaml.templ > ui/app.yaml | ||
|
||
# Deploy App Engine api service | ||
cd ui | ||
gcloud app deploy --quiet |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
runtime: custom | ||
env: flex | ||
|
||
env_variables: | ||
GIT_COMMIT: MY_GIT_COMMIT |