Skip to content

EvansAF/study_jam_team_two_vm_deployment_git-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

study_jam_team_two_vm_deployment_git-

Switch to master branch and look inside folder to see jinja file

Place your project id in the place marked Place your zone name in the place marked Place your sevice account email where your find

To find your service account you can run this command in your gcloud shell :

gcloud compute project-info describe --project PROJECT_ID

And copy the 'defaultServiceAccount' and place it where you find

upload the team_two_network_firewall_vm_general.jinja file to gcloud shell

RUN gcloud deployment-manager deployments create team-two-quickstart-deployment --template team_two_network_firewall_vm_general.jinja

Go to compute engine >>vm instances and then ssh into the team-two-vm instance

RUN sudo git clone https://github.com/EvansAF/team-two-names-api.git

cd into team-two-names-api

RUN sudo npm install

RUN PORT=8080 DEBUG=team-two-names-api* npm start

Visit the vm external ip with the port 8080 appended

http://<IP_ADDRESS>:8080/

TO DELETE

RUN gcloud deployment-manager deployments delete team-two-quickstart-deployment OR go to the deployment manager console section click delete, select the option to have every resource deleted

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published