-
Notifications
You must be signed in to change notification settings - Fork 9
Add script to upload cloud gcp jars to appropriate bucket. #203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
880026d
bbf78a3
a391eac
1bd2356
42ddfb7
1275391
74b432a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,50 @@ | ||||||||||||||||||||||||||||||||||||||
| #!/bin/bash | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| SCRIPT_DIRECTORY=$(dirname -- "$(realpath -- "$0")") | ||||||||||||||||||||||||||||||||||||||
| CHRONON_ROOT_DIR=$(dirname "$SCRIPT_DIRECTORY") | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| if [ -z "$1" ]; then | ||||||||||||||||||||||||||||||||||||||
| echo "Error: Please provide customer id argument (ex: canary)" | ||||||||||||||||||||||||||||||||||||||
| exit 1 | ||||||||||||||||||||||||||||||||||||||
| fi | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| CUSTOMER_ID=$1 | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| echo "Working in $CHRONON_ROOT_DIR" | ||||||||||||||||||||||||||||||||||||||
| cd $CHRONON_ROOT_DIR | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
This comment was marked as outdated.
Sorry, something went wrong. |
||||||||||||||||||||||||||||||||||||||
| echo "Building jars" | ||||||||||||||||||||||||||||||||||||||
| sbt cloud_gcp/assembly | ||||||||||||||||||||||||||||||||||||||
| sbt cloud_gcp_submitter/assembly | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+36
to
+39
This comment was marked as resolved.
Sorry, something went wrong. |
||||||||||||||||||||||||||||||||||||||
| pwd | ||||||||||||||||||||||||||||||||||||||
| CLOUD_GCP_JAR="$CHRONON_ROOT_DIR/cloud_gcp/target/scala-2.12/cloud_gcp-assembly-0.1.0-SNAPSHOT.jar" | ||||||||||||||||||||||||||||||||||||||
| CLOUD_GCP_SUBMITTER_JAR="$CHRONON_ROOT_DIR/cloud_gcp_submitter/target/scala-2.12/cloud_gcp_submitter-assembly-0.1.0-SNAPSHOT.jar" | ||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| if [ ! -f /$CLOUD_GCP_JAR ]; then | ||||||||||||||||||||||||||||||||||||||
| echo "$CLOUD_GCP_JAR not found" | ||||||||||||||||||||||||||||||||||||||
| exit 1 | ||||||||||||||||||||||||||||||||||||||
| fi | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| if [ ! -f /$CLOUD_GCP_SUBMITTER_JAR ]; then | ||||||||||||||||||||||||||||||||||||||
| echo "$CLOUD_GCP_SUBMITTER_JAR not found" | ||||||||||||||||||||||||||||||||||||||
| exit 1 | ||||||||||||||||||||||||||||||||||||||
| fi | ||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||
| if [ ! -f /$CLOUD_GCP_JAR ]; then | |
| echo "$CLOUD_GCP_JAR not found" | |
| exit 1 | |
| fi | |
| if [ ! -f /$CLOUD_GCP_SUBMITTER_JAR ]; then | |
| echo "$CLOUD_GCP_SUBMITTER_JAR not found" | |
| exit 1 | |
| fi | |
| if [ ! -f "$CLOUD_GCP_JAR" ]; then | |
| echo "$CLOUD_GCP_JAR not found" | |
| exit 1 | |
| fi | |
| if [ ! -f "$CLOUD_GCP_SUBMITTER_JAR" ]; then | |
| echo "$CLOUD_GCP_SUBMITTER_JAR not found" | |
| exit 1 | |
| fi |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we make it so if nothing is specified, we just upload everything:
- jars (including dataproc submitter AND cloud_gcp assembly) to BOTH etsy and canary buckets
- wheels to BOTH etsy and canary buckets
- confs to BOTH etsy and canary buckets
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Outdated
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
This comment was marked as resolved.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.