create_dockerfile: Create Dockerfile

View source: R/create.R

create_dockerfileR Documentation

Create Dockerfile

Description

Different dockerfiles are required for the various docker images.

Usage

create_dockerfile(
  image,
  parent,
  script,
  description,
  ...,
  tag = as.character(getRversion()),
  labels = NULL,
  save_as = fs::path("dockerfiles", glue::glue("{image}_{tag}.Dockerfile"))
)

Arguments

image

name of docker image to create, one of c("r-aws-minimal", "r-aws-spatial", "r-cicd-minimal", "r-cicd-spatial"), plus R version as tag.

parent

character parent docker image (incl. dockerhub account) from which to build.

script

character name of installation shell script to be executed in ⁠docker build⁠ process.

description

content of docker image.

...

arguments passed on to internal helper functions (e.g. verbose = TRUE).

tag

character tag for the docker image, default to the current R version; as.character(getRversion()).

labels

named list with labels (see Details). If NULL, filled with predefined keys.

save_as

path for storing the dockerfile; default to fs::path("dockerfiles", glue::glue("{image}_{tag}.Dockerfile")).

Details

We add some labels to the docker images, following the Open Container Initiative (OCI). See the list of predefined annotation keys for more information.

Value

Logical indicating whether a write occurred, invisibly.


meterds/mdsrocker documentation built on Dec. 2, 2023, 11:56 p.m.