Questions tagged [google-container-builder]

48 questions
2
votes
1 answer

Container Builder not tagging images correctly, $TAG_NAME not working

I am tagging my images locally with: git describe --tags --always --dirty and get a short seven character hash I can tag my images with. However in Google Container Builder, when I set the image name to gcr.io/$PROJECT_ID/amal-img:$COMMIT_SHA I…
2
votes
1 answer

Image tag in Replication Controller file

I have an image pushed to Google Container Registry, named gcr.io/$(PROJECT_ID)/img-name:46d49ab. In my replication controller I have: apiVersion: v1 kind: ReplicationController metadata: name: go-server-rc spec: replicas: 3 selector: …
2
votes
1 answer

Container Builder Slack Notifications

we're testing out CB and part of our requirements is sending messages to Slack. This tutorial works great, but it'd be helpful if we could specify the source of the build, so we don't have to click in to the message to see what repo/trigger…
Mike
  • 1,180
  • 3
  • 15
  • 28
2
votes
2 answers

Can I use Container Registry trigger for GAE flexible Node.js deploy?

I learned how to use Container Registry trigger for Google Cloud Functions deploy from the following tutorial. Automatic serverless deployments with Cloud Source Repositories and Container Builder I have Google App engine flexible app. The runtime…
2
votes
2 answers

Using `git commit` in Google Cloud Container Builder

How do I commit a new file to a git repo in Container Builder? The build step seems pretty straightforward: { "name": "gcr.io/cloud-builders/git", "args": ["commit", "--author=\"David\ Wynn\ \"", …
FTWynn
  • 1,349
  • 2
  • 11
  • 11
2
votes
2 answers

Google Cloud Container Builder - Build Docker container from Go source with vendored dependencies

Background Related question: Google Container Builder: How to install govendor dependencies during build step? I am trying to use Google Cloud Container Builder to automate the building of my Docker containers using Build Triggers. My code is in Go,…
1
vote
0 answers

Is there a way to cherry pick Cloud Build runs with Github Comments?

I have set up my cloud build instances to only trigger when a comment of /gcbrun is made to the pull request. I would like to be able to trigger specific, or all builds. Currently using /gcbrun is triggering all of my builds when I would like to…
1
vote
1 answer

Can you cache community builders?

I need to use Helm in my build pipeline. As described in the docs I downloaded the source of the Helm community builder and pushed the built image to GCR. Now if i use the builder in my pipeline it takes an absurd amount of time for Google Build to…
1
vote
1 answer

Google Cloud Platform pipeline/container builder issue building docker image using COPY or ADD command for Spring Boot Java Application

Created basic HelloWorld microservice using Spring Boot (2.1.3), Java 8, Maven. pom.xml has maven plugin entry like below org.springframework.boot spring-boot-maven-plugin
1
vote
1 answer

Building Angular application with Docker on Google Container Builder fails

I am trying to build Angular application with the following Dockerfile using 'Google Container Builder' on GCP and it fails with error code ### STAGE 1: Build ### # We label our stage as ‘builder’ FROM node:8.1.4-alpine as builder COPY…
skjagini
  • 3,142
  • 5
  • 34
  • 63
1
vote
1 answer

Custom (or latest) npm version in Google Cloud Builder

I'm using Google Cloud Builder (GCB) to build some Node.js code. I'm using npm's new package-lock.json feature to pin dependencies. This works best when using the npm ci command that was introduced in npm@5.7.1. Unfortunately, all of GCB's npm…
1
vote
2 answers

What is best method to update image tag to commit SHA via CloudBuilder?

I have a deployment.yaml containing deployment of 3 containers + LB service and the cloudbuild.yaml containing steps to build container images every time there's new commit to a certain branch on Bitbucket git repo. All is working fine except the…
1
vote
2 answers

Triggering a Google Container Builder build via Cloud Functions

I am using Container Builder to process huge JSON files and transform them. It's a nice possibility of a non-standard usage of it as described here. Is it possible to trigger a container builder build and pass a parameter to it via cloud functions?…
Tobi
  • 904
  • 1
  • 8
  • 29
1
vote
1 answer

Google Cloud Container Builder share data between steps?

I need the short git commit sha (git rev-parse --short HEAD) for one of my build steps. I do not see any other way than to actually use the git builder, and then use the output in the docker build step. The below outputs what I need, and I would…
pjotr_dolphin
  • 1,207
  • 9
  • 34
1
vote
1 answer

How to pull/run container when build is finished?

I am using Google Container Builder to build images and push them to gcr.io How can trigger a pull/run on a CoreOS VM after the build is finished? (I can't use Google Container Engine)