Once Cloud Run has been enabled, we are ready to create our first service (aka our website). On the Cloud Run page, click on the 'Create Service' button and wait for the service to start. Once again, we need search for Cloud Run in the search bar and enable the Cloud Run service in the Console. We now have access to our container in the Google Cloud ecosystem so it's now time to deploy the container with Cloud Run. If you click on the name, you'll see all the info about your new container including the version, size, when it was created and when it was uploaded. If everything was successful we can now go back to Google Container Registry on the Dashboard and click on "Images" and you will now see your custom 'my-cool-site' repository. Go back to your gcloud terminal and type the command: Once Container Registry is enabled on your account, it's time to push our image to our private repo. Click on the "Enable" button to start using the API. This is Google Cloud's version of Docker Hub and it will be where we will push our images for hosting on Cloud Run. That can be found by searching for "Container Registry" in the search bar. The next step to deploy our site is to enable the Google Container Registry API. Once the CLI application is installed we will go back to the dashboard. The installation process is very different depending on your operating system, but there's pretty straight forward installation documentation on the Google Cloud site here. The first step is to set up the initial connection between your code editor terminal and Google Cloud by installing the gcloud CLI application. The free account includes $300 in credits but for a personal site that gets a moderate amount of traffic, you'll most likely never need any of the free credits. If you currently don't have a Google Cloud account, click on the "Get Started For Free" button on the homepage and complete the 3 step process to set up your account. This is where we actually start to dive into the Google Cloud Console. Enter fullscreen mode Exit fullscreen modeĪt this point, we have a completely contained HTML server that just needs to be deployed.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |