-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathdockerfiles.Rd
47 lines (39 loc) · 1.43 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
% 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),
AS = NULL,
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:\code{R.Version()$major}.\code{R.Version()$minor}.}
\item{AS}{The AS of the Dockerfile. Default it NULL.}
\item{sysreqs}{boolean. If TRUE, the Dockerfile will contain sysreq installation.}
\item{repos}{character. The URL(s) of the repositories to use for \code{options("repos")}.}
\item{expand}{boolean. If \code{TRUE} each system requirement will have its own \code{RUN} line.}
\item{update_tar_gz}{boolean. If \code{TRUE} and \code{build_from_source} is also \code{TRUE},
an updated tar.gz is created.}
\item{build_from_source}{boolean. If \code{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.}
}
\value{
Dockerfile
}
\description{
Create a Dockerfile from a DESCRIPTION
}