You are on page 1of 3

ping -c 3 10.164.0.

http:// 34.27.80.240:8080
http://34.27.80.240:8080

const express = require('express');


const app = express();
const port = process.env.PORT || 8080;

app.get('/', (req, res) => {


const name = process.env.NAME || 'World';
res.send(`Hello ${name}!`);
});

app.listen(port, () => {
console.log(`helloworld: listening on port ${port}`);
});

export PROJECT_ID=qwiklabs-gcp-00-43979b10b3af

@app.route('/')
def hello():
"""Return a friendly HTTP greeting."""
return 'Goodbye World!'

qwiklabs-gcp-00-43979b10b3af.appspot.com

gsutil ls gs://staging.qwiklabs-gcp-00-43979b10b3af.appspot.com

gcloud app deploy app.yaml --project $qwiklabs-gcp-03-5dbaa271c7c4

export PROJECT_ID=qwiklabs-gcp-03-5dbaa271c7c4

qwiklabs-gcp-03-5dbaa271c7c4.appspot.com

staging.qwiklabs-gcp-03-5dbaa271c7c4.appspot.com

staging.qwiklabs-gcp-03-5dbaa271c7c4.appspot.com/853be055156609321e81dbab5a72ee94ce7b948f
853be055156609321e81dbab5a72ee94ce7b948f

https://storage.googleapis.com/staging.qwiklabs-gcp-03-5dbaa271c7c4.appspot.com/
853be055156609321e81dbab5a72ee94ce7b948f

projects/qwiklabs-gcp-01-5a9daa037997/locations/us-east1/operations/bc621a98-2959-4eca-8152-
471c6b098a59

cd web
skaffold build --interactive=false \
--default-repo projects/qwiklabs-gcp-01-5a9daa037997/locations/us-east1/operations/bc621a98-2959-4eca-
8152-471c6b098a59
\
--file-output artifacts.json
cd ..

cd web
skaffold build --interactive=false \
--default-repo cicd-challenge \
--file-output artifacts.json
cd ..

cd web
skaffold build --interactive=false \
--default-repo us-east1-docker.pkg.dev/qwiklabs-gcp-01-5a9daa037997/cicd-challenge \
--file-output artifacts.json
cd ..

cd web
skaffold build --interactive=false \
--default-repo us-east1-docker.pkg.dev/qwiklabs-gcp-01-5a9daa037997/cicd-challenge \
--file-output artifacts.json
cd ..

ServerName lamp-1-vm

us-central1-f
export ZONE=us-central1-f
curl -LO raw.githubusercontent.com/quiccklabs/Labs_solutions/master/Cloud%20Monitoring%20Qwik
%20Start/quicklabgsp089.sh sudo chmod +x quicklabgsp089.sh ./quicklabgsp089.sh

You might also like