Google Cloud Platform (GCP) Marketplace provides a way to launch common software packages and stacks on Google Compute Engine with just a few clicks. Many common web frameworks, databases, CMSs, and CRMs are supported. This is one of the fastest ways to get up and running on Google Cloud Platform.
Follow along this lab to learn how to launch one of the GCP Marketplace products on Google Cloud Platform.
If you don't already have a Google Account (Gmail or Google Apps), you must create one. Sign-in to Google Cloud Platform console (console.cloud.google.com) and create a new project:
Remember the project ID, a unique name across all Google Cloud projects (the name above has already been taken and will not work for you, sorry!). It will be referred to later in this codelab as
Next, you'll need to enable billing in the Cloud Console in order to use Google Cloud resources.
Running through this codelab shouldn't cost you more than a few dollars, but it could be more if you decide to use more resources or if you leave them running (see "cleanup" section at the end of this document).
New users of Google Cloud Platform are eligible for a $300 free trial.
In this section, you'll learn how to create an Nginx Stack on Google Compute Engine with GCP Marketplace.
From the Google Cloud Console, navigate to Marketplace:
You should see the Marketplace home page:
In the box that says Search for solutions type "Nginx Google".
On the search results page, under Filter by, select Virtual machines.
Click Nginx. The Nginx details page opens.
Click Launch on Compute Engine.
Now you need to sign in using a Google Account, and select or create a new project. If you're following this codelab in a live session, use the login credential given to you by the lab proctor.
After you have created a project, you'll see the New Nginx deployment page in the Cloud Console to configure your Nginx instance. It should look something like this:
Choose a name for your instance and pick a zone that is close to you.
You can use the default machine type of f1-micro. The default 10 GB SSD is fine for the boot disk.
Ensure that both Allow HTTP Traffic and Allow HTTPS Traffic are checked.
Creating the VM instance and deploying the Nginx stack might take a few minutes. Cloud Deployment Manager will provide progress details.
When the Cloud Console says "<deployment name> has been deployed" (where <deployment name> is the name you chose for your deployment) you can verify that everything worked correctly. Your screen should look something like this.
Click on the blue Visit the site button to access the deployed Nginx Stack in a new tab. If everything worked correctly you should see something that looks like this.
You can also click SSH to open an ssh prompt in a new browser window. You can use standard unix commands like ps to see if ngnix is running on your instance.
$ ps aux | grep nginx root 3877 0.0 0.2 52564 1608 ? Ss 19:47 0:00 nginx: master process /opt/bitnami/nginx/sbin/.ngi nx.bin -p /opt/bitnami/nginx/ daemon 3879 0.0 0.7 52564 4488 ? S 19:47 0:00 nginx: worker process
GCP Marketplace provides an easy and fast way to get up and running on Google Cloud Platform with common databases, operating systems, and web frameworks.