cloud-builders-community | Community-contributed images for Google Cloud Build | GCP library
kandi X-RAY | cloud-builders-community Summary
kandi X-RAY | cloud-builders-community Summary
Community-contributed images for Google Cloud Build
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of cloud-builders-community
cloud-builders-community Key Features
cloud-builders-community Examples and Code Snippets
Community Discussions
Trending Discussions on cloud-builders-community
QUESTION
I am trying to implement automatic deployments for my Windows Kubernetes container app. I'm following instructions from Google's windows-builder. The trigger completes without an explicit error, but it doesn't initiate the docker build & push. No update has been made in Container Registry. The closest thing I can find to an error message is "The system cannot find the path specified." Screenshot below:
The container, gcr.io/[my-project-id]/windows-builder, definitely exists, and it's located in the same GCP project as the Cloud Build trigger, just as the windows-builder documentation commanded.
I'm guessing that it's unable to find either my build.ps1 file or my worker Dockerfile. I can't understand why, though. I structured my code based on Google's docker-windows example. Here is my repository file structure:
...ANSWER
Answered 2022-Jan-12 at 20:08I figured it out. I removed the "true" argument for my create-external-ip flag from the cloudbuild.yaml command and that did the trick. Working file is below.
QUESTION
I am trying to implement automatic deployments for my Windows Kubernetes container app. I'm following instructions from the Google's windows-builder, but the trigger quickly fails with this error at about 1.5 minutes in:
...ANSWER
Answered 2021-Dec-17 at 09:41Replicated the steps from GitHub and got the same error. It is throwing Failed to get external IP address...
error because the External IP address of the VM is disabled by default in the source code. I was able to build it successfully by adding '--create-external-ip', 'true'
in cloudbuild.yaml
.
Here is my cloudbuild.yaml
:
QUESTION
I am trying to create a simple CI/CD pipeline. After the client makes git push
, it will start a trigger with the below cloudbuilder.yaml
:
ANSWER
Answered 2021-Oct-31 at 19:09Before pulling your image in the 2nd step, you need to push it. When you declare the images
at the end of your yaml definition, the image are pushed automatically at the end on the pipeline. Here you need it in the middle.
EDIT 1
I just added a docker push step, copy and paste from your comments. Does it work?
QUESTION
Steps I've done so far:
- I've created a
Google Cloud Repository
- I've created a
Cloud Build Trigger
and linked it to my GitHub account and repo and matched the branch name exactly^staging$
And now per the guide I'm trying to initialize an angular builder with the following code:
...ANSWER
Answered 2021-Oct-15 at 20:06Posting @anon58192932 solution for visibility:
You can follow this Medium guide that uses a generic npm
image.
cloudbuild.yaml
:
QUESTION
I am using google cloud build to build my maven projects and I use JFrog antifactory registry to store maven artifacts. In cloud build need these artifacts. I tried with several documentations [1], [2]. But time to time it given many errors. Can I take proper latest updated guide to integrate cloud build and JFrog antifactory. Proper authentication method need to use other than user name password. API key method can be used.
[1]. https://github.com/GoogleCloudPlatform/cloud-builders-community/tree/master/jfrog
EDIT 1
I set M2_HOME as MAVEN_HOME. Then that issue was fixed. But new error given as Unsupported major.minor version 52.0. This is common issue with java version mismatch.
Error message :
...ANSWER
Answered 2021-Jun-04 at 06:13I solved this issue using maven settings xml file. I followed below steps.
Create maven settings.xml in root directory.
QUESTION
I have run into a problem where I need to run both Java+Android and NodeJS in the same CloudBuild "step".
My current situation is that I'm trying to build a react-native
project within Google CloudBuild. The problem with this is that while bundling for Android with .gradlew
a node script is called.
I tried using a CloudBuild step config like this:
...ANSWER
Answered 2020-Aug-09 at 11:51Firstly, on Cloud Build, you can only run 1 container at each step. Here your problem isn't to run 2 containers, you want to have 2 applications embedded in the same container.
For this 2 solutions:
- You find a container with all what you want installed on it
- You use a base container and you install by yourselves the missing app on it
- Either, just after the installation you use it as-is
- Or you can create a build pipeline to shape your own container (custom-builder) from the base with the installations of missing part and store it in GCR. Then, for the build of your application, you can use directly this custom container
To install the missing part, you can do this
QUESTION
Permissions recommended for the Cloud Build service account in the official Google documentation and the Firebase CLI community builder docs are insufficient:
- In the permissions table, locate the email ending with @cloudbuild.gserviceaccount.com, and click on the pencil icon.
- Add
Cloud Build Service Account
,Firebase Admin
andAPI Keys Admin roles
.
I still get the following error in Cloud Build when I do firebase deploy
:
Error: HTTP Error: 403, The caller does not have permission
What I've tried is different Firebase IAM roles, Editor
, and Owner
. So far only the Owner
role works. That is way too much privilege for a Cloud Build service account, and violates the least-privilege model.
Everything is in the same Google Cloud project.
Anyone know how to troubleshoot this? Or know which role/permission is missing?
...ANSWER
Answered 2020-Jul-14 at 12:15tl;dr seems like it was "an accidental permission expansion" that has been corrected.
I am able restrict the roles to:
Cloud Build Service Account
Firebase Admin
API Keys Admin
QUESTION
I'm new to google cloud-run and I'm hoping to achieve to run scripts in the firebase project to update configs (env variables)
here's the process
firebase function invoked-> pass param(bar, baz) into cloud run -> run scripts firebase functions:config:set foo.bar=baz
What I have done is to crate an image of firebase-tools shared by cloud-builders-community, and below is the code
...ANSWER
Answered 2020-Jun-20 at 12:34Cloud Run allows you to host containers that answer to HTTP request.
In your design, how did you manage to invoke your container? ... Yes you don't have any endpoint defined.
I contributed on an open source project and I discovered a tool that serve you automatically bash script as http endpoint. Have a look to this Dockerfile. It use the tool shell2http
In your case, I recommend you to have a Dockerfile like this:
QUESTION
I am attempting to run a fastlane build inside Google Cloud Build
however I'm getting the following error:
ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
My first step is to install the Android SDK, which works fine, and then run the fastlane command, however each and every time, no matter what I do in the name
before the id:fastlane
I get the same Java error. I've downloaded both the Android and Fastlane images from the Cloud Builder and Community Cloud Builders github repo and placed them in our GCP project repository, so each are accessible in the name
tasks.
ANSWER
Answered 2020-Jun-11 at 07:38Keep in mind that each step are containers. They are loaded one by one, the tasks performed and unloaded. Only the /workspace
directory is kept from one step to another one.
Therefore, in your first step you load an android builder and you can build Java stuff because Java is installed in the container. Then unloaded
The second step is Fastlane. Look at the Dockerfile, it's a ruby image. No Java inside, thus, your process can't work. You have to build a custom worker
- Either from the fastlane base image and install Java on it
- Or from a Java image (Android?) and install Ruby and fastlane on it.
QUESTION
Cloud-build is not showing build failure status
I created my own remote-builder which scp all files from /workspace to my Instance and running build on using gcloud compute ssh -- COMMAND remote-builder
...ANSWER
Answered 2020-Jan-16 at 17:07try adding
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install cloud-builders-community
To use a community-contributed Docker image as a build step, you need to download the source code from this repo and build the image.
Clone the cloud-builders-community repo: $ git clone https://github.com/GoogleCloudPlatform/cloud-builders-community
Go to the directory that has the source code for the packer Docker image: $ cd cloud-builders-community/packer
Build the Docker image: $ gcloud builds submit --config cloudbuild.yaml .
View the image in Google Container Registry: $ gcloud container images list --filter packer
Once you've built the Docker image, you can use it as a build step in a Cloud Build build.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page