Questions tagged [google-container-builder]
48 questions
1
vote
1 answer
GitLab support for Google Cloud Platform's Container Builder
Is it possible to link GitLab to Container Builder with full support for automated triggers for builds? If no then is this expected in the coming future?

Raj Chaudhary
- 1,444
- 3
- 16
- 31
1
vote
0 answers
Different image behavior in Google Container Registry vs locally (packaged Spring Boot app)
We have a Spring Boot application (multiple micro-services), packaged with Google Container Builder and published to the registry. Our cloudbuild.yaml looks like this:
steps:
- name: 'gcr.io/cloud-builders/java/gradle'
id: 'java-build'
args:…

Michal
- 15,429
- 10
- 73
- 104
1
vote
0 answers
container builder timeout uploading container
I am using the container registry builder. It seems to work well. However, I get a timeout in an unexpected place. The timeout is in the Preparing stage of uploading a image.
Pushing gcr.io/my-project/nimbl/foo
The push refers to a repository…

Ryan
- 63
- 1
- 1
- 6
0
votes
1 answer
GCP error while building a container image
I have to test a functionality where I need to ping google.com from Google Cloud Run. For this, I created a simple python script to ping google.com.
I added Dockerfile and .dockerignore to the directory as mentioned in Google Documentation . When I…

Kuwali
- 233
- 3
- 13
0
votes
1 answer
gcloud credentials using wrong cluster
I'm using container builder to with a cloudbuild.yaml, my problem an old cluster name is being used which doesn't exist. I have tried deleting my service key and creating it again to no avail.
Starting Step #3
Step #3: Already have image (with…

robertson
- 113
- 1
- 8
0
votes
0 answers
Google Cloud Builder randomly timesout on rails assets precompilation
I have a dockerfile that contains the following steps.
FROM ruby:2.4.5-slim
# more build steps
WORKDIR /app
COPY ./Gemfile ./Gemfile.lock ./package.json ./yarn.lock ./
RUN bundle install
RUN yarn install
COPY . .
RUN RAILS_ENV=production bin/rails…

raman
- 643
- 7
- 16
0
votes
2 answers
Container builder dockerfile with gcloud commands
I have a container builder step
steps:
- id: dockerbuild
name: gcr.io/cloud-builders/docker
entrypoint: 'bash'
args:
- -c
- |
docker build . -t test
images: ['gcr.io/project/test']
The Dockerfile used to create this test image has…

Varunkumar Manohar
- 887
- 3
- 11
- 29
0
votes
0 answers
Google container builder task cannot find gcloud
I am using the vsts google container builder task inside my build pipeline.
I am running this task on a Hosted Linux preview vsts agent.
The container builder task fails to find gcloud on the agent machine.
##[error]Failed which: Not found gcloud:…

Varunkumar Manohar
- 887
- 3
- 11
- 29
0
votes
2 answers
How do I retrieve assets from a Google Storage bucket within a Google Container Registry automated build?
I've created a mirrored GitHub repo in Google's Container Registry and then created a Build Trigger. The dockerfile in the repo includes gsutil -m rsync -r gs://asset-bucket/ local-dir/ so that I can move shared private assets into the…

dk.
- 2,030
- 1
- 22
- 22
0
votes
2 answers
Intermittent failure (127) to find command in yarn
I'm trying to build something on gcloud, specifically a web site with Yarn and Node.
This is the script I'm trying to run:
"build:langs": "printenv && ls -lah node_modules/.bin && BABEL_ENV=test babel-node scripts/translate.js",
Via
$ yarn run…

Henrik
- 9,714
- 5
- 53
- 87
0
votes
0 answers
How can I use Bitbucket Server with Google Container Builder
I understand today we can use Github, Atlassian Bitbucket (Cloud) and Google Code Repository. Is it possible to use BitBucket Server? We do have network connectivity to the BitBucket Server from the GCP Project where we'll be doing Container…

rvora
- 91
- 4
0
votes
0 answers
Detect build failure in container builder cloudbuild.yaml script
We would like to communicate to an external system when we have a google cloud build failure, preferably directly from the cloudbuild.yaml (https://cloud.google.com/container-builder/docs/build-config) script where we today only notify on build…

oflisback
- 234
- 1
- 9
0
votes
1 answer
Google container builder, create new namespace for new branch
I am trying to develop my automation build.
So what we want to achieve is whenever a developer push a code to a new branch, it will create a new namespace in kubernetes based on that branch name. then I will do all deployments in that namespace.…

hnandarusdy
- 412
- 5
- 19
0
votes
1 answer
Cloud Container Builder authentication token issue
I tried running the following code on Cloud Container Builder using the npm builder:
const Storage = require('@google-cloud/storage');
const storage = new Storage();
const bucketName = 'some-bucket-name';
test(`can access GCP`, async (t) => {
…

Ace Nassri
- 191
- 5
0
votes
1 answer
Could not find artifact - cloud builder step failure (Google Cloud Builder)
One of the google container builder step fails, as it depends on a file generated from the previous step.
Does all the steps in buildspec get executed in one machine? Please suggest if there is a better way to do this or if I need to add any extra…

venu
- 71
- 5