Skip to content
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

Fixing GCE deployment script for Cloud Memorystore #707

Merged
merged 1 commit into from
Aug 10, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions memorystore/redis/gce_deployment/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if [ -z "$REDISPORT" ]; then
fi

if [ -z "$GCS_APP_LOCATION" ]; then
echo "Must set \$GCS_APP_LOCATION. For example: GCS_APP_LOCATION=gs://my-bucket/app"
echo "Must set \$GCS_APP_LOCATION. For example: GCS_APP_LOCATION=gs://my-bucket/gce/"
exit 1
fi

Expand All @@ -41,7 +41,7 @@ gsutil cp app.tar $GCS_APP_LOCATION

# Create an instance
gcloud compute instances create my-instance \
--image-family=debian-8 \
--image-family=debian-9 \
--image-project=debian-cloud \
--machine-type=g1-small \
--scopes cloud-platform \
Expand Down
2 changes: 1 addition & 1 deletion memorystore/redis/gce_deployment/startup-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ apt-get install -yq ca-certificates supervisor nodejs build-essential
curl -s "https://storage.googleapis.com/signals-agents/logging/google-fluentd-install.sh" | bash
service google-fluentd restart &

gsutil cp $GCS_APP_LOCATION /app.tar
gsutil cp "$GCS_APP_LOCATION"** /
mkdir -p /app
tar -x -f /app.tar -C /app
cd /app
Expand Down