-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathwrite_dockerfile.Rd
More file actions
46 lines (41 loc) · 1.83 KB
/
write_dockerfile.Rd
File metadata and controls
46 lines (41 loc) · 1.83 KB
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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/write_dockerfile.R
\name{write_dockerfile}
\alias{write_dockerfile}
\title{Write a minimal Dockerfile for a Binder}
\usage{
write_dockerfile(
base = NULL,
path = ".",
maintainer = getOption("usethis.full_name"),
r_date = NULL,
branch = "master",
install_github = FALSE
)
}
\arguments{
\item{base}{Your Docker base. I recommend that you use a binder base from the
\href{https://www.rocker-project.org/images/}{Rocker project}. This daily
image will contain all the Jupyter hub elements + Rstudio Server + the
Tidyverse (which cuts down on installation time). The only thing then left
to do is to install any additional packages listed in your DESCRIPTION file,
which will be done during the build_binder step.}
\item{path}{path to binder repo. Defaults to current location.}
\item{maintainer}{Maintainer of the Dockerfile. By default the function reads
`usethis.full_name` set in Options. The same information is used to set the
author on your DESCRIPTION file. For more information on setting up default
values for Description files, read the
\href{https://usethis.r-lib.org/articles/articles/usethis-setup.html#store-default-values-for-description-fields-and-other-preferences}{Rstudio
usethis documentation}.}
\item{r_date}{Date you need R to lock down to. By default it picks the most
recent date a file was touched in this project but you can override this by
specifying this explicitly. Date must be in ISO 8601 format, e.g.
2019-06-27}
\item{branch}{Default is master but you can pass other branches}
\item{install_github}{If `TRUE`, it will install all packages listed in Remotes}
}
\description{
The file is written to a hidden folder called `.binder/`. This will not
interfere with other Dockerfiles that you may have in your root to help with
other services like CI.
}