docker_build | R Documentation |
Build a Docker image through a system call. Returns TRUE if no errors are raised.
docker_build(img, tag, url_or_path, verbose)
img |
Image name |
tag |
Tag, e.g. 'latest' |
url_or_path |
URL or file path to Dockerfile |
verbose |
Be verbose? T/F |
Logical
Other docker:
docker_push()
library(outsider.devtools) # # NOT RUN # # # simplest possible Dockerfile # df_text <- " # FROM ubuntu:latest # " # # # create dir to host Dockerfile # flpth <- file.path(tempdir(), 'test_docker_build') # if(!dir.exists(flpth)) { # dir.create(flpth) # } # # # write to file # write(x = df_text, file = file.path(flpth, 'Dockerfile')) # # # run docker_build from flpth # docker_build(img = 'test_docker_build', tag = 'latest', verbose = TRUE, # url_or_path = flpth)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.