How to Break Bad Habits and Set Yourself Up For Success According to Research

You could be successful in any task you pursue only if bad habits don’t often interfere in the process. Eating healthy, being productive, producing quality outputs — they are all possible. The only…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Running .NET Core 3.1 on GCP Cloud Run

With the release of .NET 3.1.1 on 14 Jan 20 and if you are looking to bootstrap a web app with the following goals in mind:

You can consider Google Cloudrun.

What is Google Cloudrun?

The following post assumes you have prior knowledge to the following:

The section of this post will guide you through the following:

Create a new container image in GCP ECR

GCP Cloud Run runs on container image hosted in GCP ECR. Therefore, before creating a Cloud Run service, you are required to push a container image into GCP ECR.

Test the docker by running docker build -t dotnetcore311cloudrun . and follow by docker run -p 8080:8080 dotnetcore311cloudrun

(Note: When you execute docker build command, it is required to add a period(.) at the end of the command)

You should be able to access the web app via localhost:8080.

Web App running on Docker container

Deploy GCP Cloud Run service

List of services in Cloud Run

If you try to access the URL provided in the Cloud Run console, you should be able to see your web app live on .run.app URL.

Web App running on Cloud Run

You have successfully created your first Cloud Run service! 🥳

References:

Add a comment

Related posts:

So You Are Still Working on Your New Medium Publication

Page Tabs! Navigation! Submission Guidelines! Woo Hoo! These are the advanced topics of a serious kick-ass editor. Let’s dig in! There are three columns here. Tab name, tab type and contents. Tab…

Cold Chain Management

The cold chain can be grouped into three main categories: temperature-controlled storage, logistics and transport, and refrigerated packaging methods. We are going to be focusing on the logistics…

The Best Willoughys Camera for Photojournalism

You need two things to become a successful photojournalist: a good camera and strong journalism abilities. You must comprehend the most recent photojournalist camera technology and features to ensure…