Skip to content

A base image for running terraform against Google cloud resources from a continuous delivery pipeline like circle ci.

License

Notifications You must be signed in to change notification settings

tomhipwell/cloud-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloud Build

A base image for running terraform against Google cloud resources.

Getting started

Build the image and then run the container:

docker image build -t cloud-builder .
docker run -it cloud-builder:latest

Linting

I'd recommend using hadolint to lint your docker files so you follow best practice and avoid syntax errors or security issues.

brew install hadolint

There's a nice plugin as well for VSCode, or you can run it from the command line using:

hadolint Dockerfile

Manually deploying the image during test

Once built, you can manually deploy your image to test it out.

Firstly, configure docker to use gcloud as a credential helper:

gcloud auth configure-docker

Then tag your docker image with the container registry name, for example:

docker tag cloud-builder eu.gcr.io/"$PROJECT"/cloud-builder

Push the tagged image to the container registry:

docker push eu.gcr.io/"$PROJECT"/cloud-builder

About

A base image for running terraform against Google cloud resources from a continuous delivery pipeline like circle ci.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published