set_env.Rd
sets environment variables in the docker image
set_env(dockerfile, env_vars)
dockerfile | an object of class |
---|---|
env_vars | A named vector of environment variables and their values |
dockerfile
, a specification of the contents of the dockerfile
dockerfile() %>% set_env(c("S6_VERSION" = "${S6_VERSION:-v1.21.7.0}", "S6_BEHAVIOUR_IF_STAGE_2_FAILS", "2"))#> $ENV #> [1] "S6_VERSION=${S6_VERSION:-v1.21.7.0}" #> #> $ENV #> [1] "=S6_BEHAVIOUR_IF_STAGE_2_FAILS" #> #> $ENV #> [1] "=2" #> #> $` ` #> [1] "" #>