Skip to content

Commit 25618b1

Browse files
committed
Use original GitHub repo in startup script
1 parent 6707af9 commit 25618b1

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

gce/deploy.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
set -ex
1616

1717
MY_INSTANCE_NAME='[your instance name goes here]'
18-
1918
ZONE=us-central1-f
2019

2120
gcloud compute instances create $MY_INSTANCE_NAME \
@@ -27,10 +26,8 @@ gcloud compute instances create $MY_INSTANCE_NAME \
2726
--zone $ZONE \
2827
--tags http-server
2928

30-
# [START getting_started_create_firewall]
3129
gcloud compute firewall-rules create default-allow-http-8080 \
3230
--allow tcp:8080 \
3331
--source-ranges 0.0.0.0/0 \
3432
--target-tags http-server \
3533
--description "Allow port 8080 access to http-server"
36-
# [END getting_started_create_firewall]

gce/startup-script.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@
1515
# Echo commands
1616
set -v
1717

18-
# Variables for finding source code
19-
PROJECTID=$(curl -s "http://metadata.google.internal/computeMetadata/v1/project/project-id" -H "Metadata-Flavor: Google")
20-
REPOSITORY=[YOUR_REPO_NAME]
21-
2218
# Install Stackdriver logging agent
2319
curl -sSO https://dl.google.com/cloudagents/install-logging-agent.sh
2420
sudo bash install-logging-agent.sh
@@ -33,8 +29,7 @@ useradd -m -d /home/pythonapp pythonapp
3329

3430
# Fetch source code
3531
export HOME=/root
36-
git config --global credential.helper gcloud.sh
37-
git clone https://source.developers.google.com/p/$PROJECTID/r/$REPOSITORY /opt/app
32+
git clone https://github.com/GoogleCloudPlatform/getting-started-python.git /opt/app
3833

3934
# Python environment setup
4035
virtualenv -p python3 /opt/app/gce/env

gce/teardown.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
set -x
1818

1919
MY_INSTANCE_NAME='[your instance name goes here]'
20-
2120
ZONE=us-central1-f
2221

2322
gcloud compute instances delete $MY_INSTANCE_NAME \

0 commit comments

Comments
 (0)