google-container-registry

Unable to push to Google Container Registry - Permission issue

给你一囗甜甜゛ 提交于 2020-06-01 04:49:10
问题 I'm having the sample problem as Vaclav. I've followed the GCR quick start to the letter which entailed creating a new project (called gcr-project) and copying the code for a Flask (python) app. After building the docker image, I entered the commands: gcloud auth configure-docker docker tag quickstart-image gcr.io/gcr-project/quickstart-image:tag1 docker push gcr.io/gcr-project/quickstart-image:tag1 The response was: unauthorized: You don't have the needed permissions to perform this

Get YAML for deployed Kubernetes services?

℡╲_俬逩灬. 提交于 2020-05-09 18:00:33
问题 I am trying to deploy my app to Kubernetes running in Google Container Engine . The app can be found at: https://github.com/Industrial/docker-znc. The Dockerfile is built into an image on Google Container Registry . I have deployed the app in Kubernetes via the + button. I don't have the YAML for this. I have inserted a Secret in Kubernetes for the PEM file required by the app. How do I get the YAML for the Deployment , Service and Pod created by Kubernetes by filling in the form? How do I

Where can I find the source code for the Google Cloud Platform Deep Learning VM images and Deep Learning Containers?

 ̄綄美尐妖づ 提交于 2020-03-04 18:43:26
问题 GCP gives a general overview of what's installed in Deep Learning VMs, but seeing the actual shell scripts would make it easier to determine the exact differences between VM images, debug any deployment issues, and create derivative images. Someone already asked about the Dockerfiles for Deep Learning Containers, but I figured I'd repeat the question to increase the odds of it getting answered. 回答1: You can create and set up a local deep learning container. Have a look at the official

Cloud Container Builder, ZIP does not support timestamps before 1980

∥☆過路亽.° 提交于 2020-01-24 22:05:50
问题 I'm trying the following tutorial. Automatic serverless deployments with Cloud Source Repositories and Container Builder But I got the error below. $ gcloud container builds submit --config deploy.yaml . BUILD Already have image (with digest): gcr.io/cloud-builders/gcloud ERROR: (gcloud.beta.functions.deploy) Error creating a ZIP archive with the source code for directory .: ZIP does not support timestamps before 1980 ERROR ERROR: build step 0 "gcr.io/cloud-builders/gcloud" failed: exit

how to obtain GCR access token with python / listing docker images

喜欢而已 提交于 2020-01-23 07:27:32
问题 The access token im getting with gcloud auth print-access-token is obviously a different access token than the one i can get with some basic python code: export GOOGLE_APPLICATION_CREDENTIALS=/the-credentials.json from oauth2client.client import GoogleCredentials credentials = GoogleCredentials.get_application_default() credentials.get_access_token() What i am trying to do is get a token that would work with: curl -u _token:<mytoken> https://eu.gcr.io/v2/my-project/my-docker-image/tags/list I

Google Container Registry permission

浪子不回头ぞ 提交于 2020-01-06 08:05:29
问题 I am trying to push docker image to GCP, but i am still getting this error: unauthorized: You don't have the needed permissions to perform this operation, and you may have invalid credentials. To authenticate your request, follow the steps in: https://cloud.google.com/container-registry/docs/advanced-authentication I follow this https://cloud.google.com/container-registry/docs/quickstart step by step and everything works fine until docker push It's clear GCP project I've already tried: use

Google Cloud-Builder how to build all branches except for master

风格不统一 提交于 2020-01-03 02:46:07
问题 I want to be able to build all branches that are not master, however when I try ^((?!master).)*$ the UI correctly shows all non-master branches but saving returns a HTTP 400 error. { "error": { "code": 400, "message": "trigger_template branch_name is not a valid regular expression", "status": "INVALID_ARGUMENT" } } 回答1: this is stupid ... but works by ignoring everything that starts with "master" ^(?:[^m]|m[^a]|ma[^s]|mas[^t]|mast[^e]|maste[^r]|master.) 回答2: The regex used must be compatible

Permission Denied when deploying docker image to Kubernetes Engine

余生长醉 提交于 2019-12-24 16:28:01
问题 When I a Docker image to Kubernetes I get this permission denied error I'm using Google Container-Registry/ to store docker image that was build with cloud build 回答1: This totally looks like backend doesn't have 'execute' permissions in the container. On your Dockerfile just try adding it execute permissions. Something like this: RUN chmod 755 /backend Hope it helps. 来源: https://stackoverflow.com/questions/52488927/permission-denied-when-deploying-docker-image-to-kubernetes-engine

Are Dockerfiles available for Google's sample images on Google Container Registry?

纵饮孤独 提交于 2019-12-24 06:30:15
问题 I'm using the official stable ZooKeeper Helm chart for Kubernetes which pulls a ZooKeeper Docker image from Google's sample images on Google Container Registry. That ZooKeeper image is available here, however, I can't seem to find any reference to the Dockerfile for how it is built or if its Dockerfile is generated from some other representation (e.g., via Bazel). I'd like to know info like what else is installed on the image, what OS it's based on, etc. In general are Dockerfiles for the

Google Cloud Builder - Gradle

萝らか妹 提交于 2019-12-23 16:19:48
问题 Following the post at https://cloudplatform.googleblog.com/2017/03/Google-Cloud-Container-Builder-a-fast-and-flexible-way-to-package-your-software.html I understand that Gradle is supported for Google Container Builder. Yet I am not able to find any examples. I am specifically interested in setting the gradle version explicitly in the build. 回答1: We build Spinnaker components using Gradle within Google Cloud Container Builder. We have a Gradle wrapper checked into our GitHub repo, and we set