Questions tagged [google-container-builder]

48 questions
9
votes
3 answers

Passing files from Google Cloud Container Builder to Docker build task

Context A Ruby on Rails application built with Container Builder destined for App Engine. We require bundler to be able to install dependencies from a private git repository using a SSH key. The SSH Keys come from a secure bucket where they pass…
8
votes
1 answer

Access Google Container builder logs with a service account - 403 Forbidden Error

I have a service account that triggers builds on Google Container Builder. This works fine but now I would like to retrieve build logs using that service account. Here is the code that fetches the log (the token is obtained using google-auto-auth…
Overdrivr
  • 6,296
  • 5
  • 44
  • 70
7
votes
1 answer

Google Container Builder: How to cache dependencies between two builds

We are migrating our container building process to Google Container Builder. We have multiple repo using Node or Scala. As of actual container builder features, is it possible to cache dependencies between two builds (ex: node_modules, .ivy, ...).…
mlardeur
  • 109
  • 1
  • 9
6
votes
1 answer

Why is my Container Builder build failing with "failed to find one or more images after execution of build steps"

I don't understand what this error message means. It happens at the end of my build, when the build is complete and the image is being tagged. Here's the tail end of the log: Step 17/18 : WORKDIR /var/www ---> 0cb8de2acd8f Removing intermediate…
5
votes
1 answer

How to get programmatically the current GKE project id from one of its clusters?

I'd like to get the current GKE project id from within one of its clusters via the Java client or the GCloud API itself. I'm running java containers in a GKE cluster of a specific Google Cloud project I initialize the ClusterManagerClient with the…
5
votes
1 answer

Google cloud container builder not always triggering from bitbucket

I have build triggers set up in the Google Cloud Container Builder that are set to trigger on specific branches and use the cloudbuild.yml config in the repo. For about the first day that I pushed commits to any of these branches, it triggered a…
5
votes
0 answers

How do I specify a source in build requests using gcloud container builds submit?

I am trying to specify a build request with the source specified as a repoSource: { …
4
votes
2 answers

cloudbuil.yaml does not unmarshall when using base64-encoded value on build trigger

On my cloudbuild.yaml definition, I used to have a secrets section to get environment values from Google KMS. The secretEnv fields had keys mapping to 'encrypted + base64-encoded' values: ... secrets: - kmsKeyName: secretEnv: …
4
votes
1 answer

Can I define the region Google Cloud Container Builder runs in?

My Google Cloud Container Builder steps are touching information that should not leave the European Union. Is it possible to restrict the region for a build so that it won't be executed in us-central1 for example? I know I can define the region,…
Tobi
  • 904
  • 1
  • 8
  • 29
4
votes
2 answers

Google Cloud Source Repository makes only a shallow clone?

Our code is hosted on GitHub. We are using Google Cloud Container Builder in order to build and package our software. In order to do that, we had to connect our private repo to Google Cloud Source Repository. Unfortunately it seems that the mirror…
4
votes
2 answers

How to speed up bazel builds on Google Cloud Platform

I am using gcr.io/cloud-builders/bazel to build my images on google container build. From the logs, it seems it spends most of the time setting up the workspace for bazel. This workspace does not change from build to build so I think could be…
fabrizioM
  • 46,639
  • 15
  • 102
  • 119
4
votes
3 answers

Is there a way to automatically deploy to GCE based on a new image being created in Google Container Registry?

I have a Kubernetes deployment on GCE, which I'd like to get automatically updated based on new images being created in Google Container Registry (ideally via a Build Trigger). Is there a way to do that? Thanks in advance. -Mark
4
votes
1 answer

Setting env var with secret for docker build in Google Container Builder request YAML

We use Sinopia for our npm repo and the credentials (.npmrc file in Home or current dir.) are nec. for a build.... Up until today, I've avoided persisting these cred's in the code, of course, and also kept them out of docker image layers by passing…
3
votes
2 answers

Whitelist Google Cloud Build IPs to test database connection

I'm looking to give Cloud Build access to a PostgreSQL database during the steps because it's part of an integration testing from the Python application I'm running. Any suggestions on how to handle this authorization without exposing the database…
3
votes
4 answers

Cloud Container Builder, ZIP does not support timestamps before 1980

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):…
1
2 3 4