docker_build: Build a Docker image

View source: R/docker.R

docker_buildR Documentation

Build a Docker image

Description

Build a Docker image through a system call. Returns TRUE if no errors are raised.

Usage

docker_build(img, tag, url_or_path, verbose)

Arguments

img

Image name

tag

Tag, e.g. 'latest'

url_or_path

URL or file path to Dockerfile

verbose

Be verbose? T/F

Value

Logical

See Also

Other docker: docker_push()

Examples

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)

AntonelliLab/outsider.devtools documentation built on June 20, 2022, 4:36 a.m.