Skip to content

Commit

Permalink
add cloudconfig for builder (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkEdmondson1234 committed Feb 17, 2017
1 parent b428db2 commit 3f9d4f7
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 7 deletions.
4 changes: 3 additions & 1 deletion R/container.R
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,9 @@ get_dockerfolder <- function(dockerfile_folder){
#'
#' A configuration file must be less than 32768 characters.
#'
#' \code{image_project} will be ignored if set, overriden to \code{google-containers}
#' \code{image_project} will be ignored if set, overriden to \code{cos-cloud}
#'
#' @seealso \url{https://cloud.google.com/container-optimized-os/docs/how-to/create-configure-instance}
#'
#' @return A zone operation
#' @export
Expand Down
15 changes: 15 additions & 0 deletions inst/cloudconfig/builder.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#cloud-config

users:
- name: gcer
uid: 2000

write_files:
- path: ~/buildfolder/Dockerfile
permissions: 0644
owner: root
content: |
%s

runcmd:
- docker build -t %s ~/buildfolder/Dockerfile
2 changes: 1 addition & 1 deletion man/gce_push_registry.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/gce_tag_container.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions man/gce_vm_container.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/myMessage.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3f9d4f7

Please sign in to comment.