This repository has been archived by the owner on Apr 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74 from GoogleCloudPlatform/release
Rename to cloud-build-local.
- Loading branch information
Showing
20 changed files
with
380 additions
and
476 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,27 @@ | ||
# Google Container Builder Local Builder | ||
# Google Cloud Build Local Builder | ||
|
||
**Local Builder** runs [Google Container Builder] locally, | ||
allowing easier debugging, execution of builds on your own hardware, | ||
and integration into local build and test workflows. | ||
**Local Builder** runs [Google Cloud Build] locally, allowing easier debugging, | ||
execution of builds on your own hardware, and integration into local build and | ||
test workflows. | ||
|
||
---- | ||
-------------------------------------------------------------------------------- | ||
|
||
## Prerequisites | ||
|
||
1. Ensure you have installed: | ||
* [gcloud](https://cloud.google.com/sdk/docs/quickstarts) | ||
* [Docker](https://www.docker.com/) | ||
* [Go](https://golang.org/doc/install) (if you want to compile Local | ||
Builder from source) | ||
|
||
* [gcloud](https://cloud.google.com/sdk/docs/quickstarts) | ||
* [Docker](https://www.docker.com/) | ||
* [Go](https://golang.org/doc/install) (if you want to compile Local | ||
Builder from source) | ||
|
||
2. If the build needs to access a private Google Container Registry, install | ||
and configure the | ||
[Docker credential helper](https://github.com/GoogleCloudPlatform/docker-credential-gcr) | ||
for Google Container Registry. | ||
|
||
3. Configure your project for the gcloud tool, where `[PROJECT_ID]` is | ||
your Cloud Platform project ID: | ||
3. Configure your project for the gcloud tool, where `[PROJECT_ID]` is your | ||
Cloud Platform project ID: | ||
|
||
``` | ||
gcloud config set project [PROJECT-ID] | ||
|
@@ -31,49 +32,50 @@ and integration into local build and test workflows. | |
1. Install by running the following command: | ||
``` | ||
gcloud components install container-builder-local | ||
gcloud components install cloud-build-local | ||
``` | ||
After successful installation, you will have `container-builder-local` in | ||
your PATH as part of the Google Cloud SDK binaries. | ||
After successful installation, you will have `cloud-build-local` in your | ||
PATH as part of the Google Cloud SDK binaries. | ||
2. To see all of the commands, run: | ||
``` | ||
$ container-builder-local --help | ||
$ cloud-build-local --help | ||
``` | ||
The Local Builder's command is `$ container-builder-local`. | ||
The Local Builder's command is `$ cloud-build-local`. | ||
## Download the latest binaries | ||
The latest binaries are available in a GCS bucket. | ||
[Download](https://storage.googleapis.com/container-builder-local/container-builder-local_latest.tar.gz) the latest binaries from GCS. | ||
[Download](https://storage.googleapis.com/cloud-build-local/cloud-build-local_latest.tar.gz) | ||
the latest binaries from GCS. | ||
To run a build: | ||
``` | ||
./container-builder-local_{linux,darwin}_{386,amd64}-v<latest_tag> --dryrun=false --config=path/to/cloudbuild.yaml path/to/code | ||
./cloud-build-local_{linux,darwin}_{386,amd64}-v<latest_tag> --dryrun=false --config=path/to/cloudbuild.yaml path/to/code | ||
``` | ||
## Developing and contributing to the Local Builder | ||
See the [contributing instructions](https://github.com/GoogleCloudPlatform/container-builder-local/blob/master/CONTRIBUTING.md). | ||
See the | ||
[contributing instructions](https://github.com/GoogleCloudPlatform/cloud-build-local/blob/master/CONTRIBUTING.md). | ||
## Limitations | ||
* Only one build can be run at a time on a given host. | ||
* The tool works on the following platforms: | ||
* Linux | ||
* macOS | ||
* Only one build can be run at a time on a given host. | ||
* The tool works on the following platforms: | ||
* Linux | ||
* macOS | ||
## Support | ||
File issues here on gitHub, email `[email protected]`, or join our | ||
[Slack channel] if you have general questions about Local Builder or | ||
Container Builder. | ||
[Slack channel] if you have general questions about Local Builder or Container | ||
Builder. | ||
[Google Container Builder]: http://cloud.google.com/container-builder/ | ||
[Google Cloud Build]: http://cloud.google.com/cloud-build/ | ||
[Slack channel]: https://googlecloud-community.slack.com/messages/C4KCRJL4D/details/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.