Giter VIP home page Giter VIP logo

cloud-run-button's Introduction

cloud-run-button's People

Contributors

jamesward avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cloud-run-button's Issues

Cloud Shell experience is a bit confusing (when you don't trust the source [and you have too many projects?])

This button is awesome but I got a little bit confused by some of the prompts in Cloud Shell. I clicked the button and then chose the "I don't trust the repo" option. I think this caused me to need to authenticate since my credentials weren't shared in the environment.

Specifically, I was confused by the line in bold:

Your Cloud Shell Environment is running Docker image gcr.io/cloudrun/button@sha256:7337e613f4275765eef36faf33ae7ab67903901b22d03989742d686b48e14a25
Welcome to Cloud Shell! Type "help" to get started.
To set your Cloud Platform project in this session use “gcloud config set project [PROJECT_ID]”
cloudshell_open --repo_url "https://github.com/jamesward/cloud-run-button.git"
stewartr@cloudshell:~$ cloudshell_open --repo_url "https://github.com/jamesward/cloud-run-button.git"
Cloning into 'cloud-run-button'...
remote: Enumerating objects: 16, done.
remote: Counting objects: 100% (16/16), done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 16 (delta 2), reused 15 (delta 1), pack-reused 0
Unpacking objects: 100% (16/16), done.
cd-ing into cloud-run-button
You need to authenticate to continue
Go to the following link in your browser:

Enter verification code:
Updated property [run/region].
You have access to 1012 projects, so search for the one you want:
Query:

Maybe I have access to too many projects and this issue wouldn't affect most users. Ideally, I would have liked to see something like:

...
Enter verification code:
Updated property [run/region].
Select a project. You have access to 1012 projects, so search for the one you want:
Query:

Override service name instead of REPO_NAME(Gist support)

Currently, cloud-run-button uses REPO_NAME as container image repository and Cloud Run service name. It seems not to be configurable.
Because Cloud Run forbids service name which starts with a number, cloud-run-button is not compatible with some GitHub Gist repository.

ERROR: (gcloud.beta.run.deploy) INVALID_ARGUMENT: The request has errors
- '@type': type.googleapis.com/google.rpc.BadRequest
  fieldViolations:
  - description: Service name must use only letters, numbers and '-'. Must begin with
      a letter and cannot end with a '-'. Maximum length is 63 characters.
    field: metadata.name
If it is configurable, cloud-run-button become GitHub Gist compatible.

Ref: https://gist.github.com/apstndb/63022c10ca5e94ed6e7c1dff9d5dbeaf

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.