-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathdockerfiles.Rd
50 lines (40 loc) · 1.69 KB
/
dockerfiles.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dock_from_desc.R
\name{dock_from_desc}
\alias{dock_from_desc}
\title{Create a Dockerfile from a DESCRIPTION}
\usage{
dock_from_desc(
path = "DESCRIPTION",
FROM = paste0("rocker/r-ver:", R.Version()$major, ".", R.Version()$minor),
sha256 = NULL,
AS = NULL,
use_suggests = TRUE,
sysreqs = TRUE,
repos = c(CRAN = "https://cran.rstudio.com/"),
expand = FALSE,
update_tar_gz = TRUE,
build_from_source = TRUE,
extra_sysreqs = NULL
)
}
\arguments{
\item{path}{path to the DESCRIPTION file to use as an input.}
\item{FROM}{The FROM of the Dockerfile. Default is
FROM rocker/r-ver:`R.Version()$major`.`R.Version()$minor`.}
\item{sha256}{character. The Digest SHA256 hash corresponding to the chip architecture of the deployment host machine if different than the machine on which the image will be built.}
\item{AS}{The AS of the Dockerfile. Default it NULL.}
\item{use_suggests}{boolean. If TRUE (the default), include dependencies listed in Suggests field in DESCRIPTION.}
\item{sysreqs}{boolean. If TRUE, the Dockerfile will contain sysreq installation.}
\item{repos}{character. The URL(s) of the repositories to use for `options("repos")`.}
\item{expand}{boolean. If `TRUE` each system requirement will have its own `RUN` line.}
\item{update_tar_gz}{boolean. If `TRUE` and `build_from_source` is also `TRUE`,
an updated tar.gz is created.}
\item{build_from_source}{boolean. If `TRUE` no tar.gz is created and
the Dockerfile directly mount the source folder.}
\item{extra_sysreqs}{character vector. Extra debian system requirements.
Will be installed with apt-get install.}
}
\description{
Create a Dockerfile from a DESCRIPTION
}