Build a local Dockerfile in the cloud. See googleCloudRunner website for help how to generate Dockerfiles. If you want the docker to build on each commit, see also cr_deploy_docker_trigger
cr_deploy_docker( local, image_name = remote, dockerfile = NULL, remote = basename(local), tag = c("latest", "$BUILD_ID"), timeout = 600L, bucket = cr_bucket_get(), projectId = cr_project_get(), launch_browser = interactive(), kaniko_cache = TRUE, predefinedAcl = "bucketOwnerFullControl", ... )
The folder containing the Dockerfile to build
The name of the docker image to be built either full name starting with gcr.io or constructed from the image_name and projectId via
An optional Dockerfile built to support the script. Not needed if 'Dockerfile' exists in folder. If supplied will be copied into deployment folder and called "Dockerfile"
The folder on Google Cloud Storage
The tag or tags to be attached to the pushed image - can use
Amount of time that this build should be allowed to run, to second
The GCS bucket that will be used to deploy code source
Whether to launch the logs URL in a browser once deployed
If TRUE will use kaniko cache for Docker builds.
Access setting for the bucket used in deployed. Set to "bucketLevel" if using bucket level access
Arguments passed on to
This lets you deploy local folders with Dockerfiles, automating saving the source on Google Cloud Storage.
To deploy builds on git triggers and sources such as GitHub, see the examples of cr_buildstep_docker or the use cases on the website
If you want the docker to build on each commit, see cr_deploy_docker_trigger