Description Usage Arguments Details Value
Build a docker image out of a model function
1 2 3 4 5 | build_docker(model_library_file, package_name = "deploymodel",
libraries = names(utils::sessionInfo()$otherPkgs),
docker_image_name = "model_image", docker_image_type = c("opencpu",
"plumber")[1], additional_build_commands = "",
may_overwrite_docker_image = F)
|
model_library_file |
A vector of paths to model packages created using |
package_name |
A vector containing the names of the packages to be installed. Should be the same length as |
libraries |
A list of library names required by the package. Defaults to all loaded non-base packages.
Has support for github ( It is strongly recommended to use the same libraries here as used in |
docker_image_name |
The name of the docker image |
docker_image_type |
The type of docker image to be created. Currently 'opencpu' and 'plumber' are supported. Both will run by default on port 8004 of the created image. |
additional_build_commands |
Additional build command that need to be executed. Will be executed after all other commands have run. Character vector. |
may_overwrite_docker_image |
Flag indicating if, when |
Note: by default ports 80 (OpenCPU only) and 8004 are exposed on the image. This function does not change anything about that. Furthermore, this function does not handle security for you. That is your responsibility. By default we use the opencpu/base image for OpenCPU and r-base for plumber. See their respective websites for further details.
A logical: TRUE for success and FALSE for failure
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.