Devs invited to bake 'Run on Google Cloud' button into git repos... By Google, of course

An offer you can refuse?


Google has come up with a neat idea to promote its serverless container service, Cloud Run, by asking developers to incorporate a "Run on Google Cloud" button into their git repositories.

The Cloud Run Button is a "single click" option to build and deploy a container-based application to Google's cloud – though in practice a little bit more user interaction is required.

It works by opening a Google Cloud Shell, a browser-based terminal into a small Linux VM with access to Google Cloud services, but set to a custom Cloud Shell image with Cloud Run deployment scripts. The code for these scripts is here. If a Dockerfile is present in the repository, that will be used to build the container, or it can use Cloud Native Buildpacks.

Developers who want to take advantage of this option can customise the process further by adding an app.json configuration file to the repository. This will prompt the user to use specific values for environment variables to configure the application.

Cloud Run is Google's serverless solution for deploying containers. It comes in two flavours. The fully managed version, which is what you would be likely to use with the Cloud Run button, requires very little configuration (you can change the memory available for each container instance) and includes autoscaling from one up to 1,000 instances, or more if you pre-arrange with support. The snag is that containers have no access to your compute engine network and uses an automatic service URL by default.

The other flavour of Cloud Run uses Google's Kubernetes Engine (GKE). You get full access to your Google VPC (Virtual Private Cloud) and compute engine network, and can use a custom domain. However, autoscaling is limited to the size of your GKE cluster.

The Cloud Run Button project on Github states that it is "not an official Google project", but the company is now promoting its use through an official blog post.

Google's Cloud Run button, which invites developers to add to their git repos

Google's Cloud Run button, which invites developers to add to their git repos

"Cloud Run Button works with any repository that has a Dockerfile, or that can be built using Cloud Native Buildpacks," said developer advocate James Ward. "When you click the Cloud Run Button to deploy an application, it packages the application source code as a container image, pushes it to Google Container Registry, and deploys it on Cloud Run."

Google is not alone in offering easy deployment of containers to a managed service. AWS has the two varieties of Fargate, the fully managed Fargate launch type or EC2 (Elastic Compute Cloud), which leaves it to you to specify the provisioning of the virtual servers. Unlike Cloud Run, though, Fargate does not have a Kubernetes option. Fargate for EKS (Elastic Kubernetes Service) is promised but not yet available.

Microsoft Azure also has options for running containers serverless. You can use Azure Container Instances, with an option to autoscale on Azure Kubernetes Service, or Azure Web App for Containers for simple container deployment to a managed service.

Google's Cloud Run button nicely demonstrates how quickly you can get a containerised application up and running on Google's cloud, but not really easier than what is on offer from its rivals. Embedding the option into a git repository might make sense for internal use in companies that have standardised on Google's cloud platform, though there is a risk of proliferating little demo applications that are created but never deleted. ®

Narrower topics


Other stories you might like

  • AWS says it will cloudify your mainframe workloads
    Buyer beware, say analysts, technical debt will catch up with you eventually

    AWS is trying to help organizations migrate their mainframe-based workloads to the cloud and potentially transform them into modern cloud-native services.

    The Mainframe Modernization initiative was unveiled at the cloud giant's Re:Invent conference at the end of last year, where CEO Adam Selipsky claimed that "customers are trying to get off their mainframes as fast as they can."

    Whether this is based in reality or not, AWS concedes that such a migration will inevitably involve the customer going through a lengthy and complex process that requires multiple steps to discover, assess, test, and operate the new workload environments.

    Continue reading
  • AWS buys before it tries with quantum networking center
    Fundamental problems of qubit physics aside, the cloud giant thinks it can help

    Nothing in the quantum hardware world is fully cooked yet, but quantum computing is quite a bit further along than quantum networking – an esoteric but potentially significant technology area, particularly for ultra-secure transactions. Amazon Web Services is among those working to bring quantum connectivity from the lab to the real world. 

    Short of developing its own quantum processors, AWS has created an ecosystem around existing quantum devices and tools via its Braket (no, that's not a typo) service. While these bits and pieces focus on compute, the tech giant has turned its gaze to quantum networking.

    Alongside its Center for Quantum Computing, which it launched in late 2021, AWS has announced the launch of its Center for Quantum Networking. The latter is grandly working to solve "fundamental scientific and engineering challenges and to develop new hardware, software, and applications for quantum networks," the internet souk declared.

    Continue reading
  • Google recasts Anthos with hitch to AWS Outposts
    If at first you don't succeed, change names and try again

    Google Cloud's Anthos on-prem platform is getting a new home under the search giant’s recently announced Google Distributed Cloud (GDC) portfolio, where it will live on as a software-based competitor to AWS Outposts and Microsoft Azure Stack.

    Introduced last fall, GDC enables customers to deploy managed servers and software in private datacenters and at communication service provider or on the edge.

    Its latest update sees Google reposition Anthos on-prem, introduced back in 2020, as the bring-your-own-server edition of GDC. Using the service, customers can extend Google Cloud-style management and services to applications running on-prem.

    Continue reading

Biting the hand that feeds IT © 1998–2022