build_image: Build a docker image with server that serves model$predict...

Description Usage Arguments Details

View source: R/build_image.R

Description

Available routes:

Usage

1
2
build_image(model, name, registry = "", dockerfile = NULL,
  server_script = NULL, dir = NULL)

Arguments

model

tundraContainer. A tundra container that contains necessary munge procedures and the predict function.

name

character. name of the resulting docker image

registry

character. Where will you push your image? Leave blank for pushing to docker hub, or specify your private registry.

dockerfile

character optional. You can specify a custom dockerfile instead of the default one shipped with rain.

server_script

character optional. You can specify a custom server script that will be used to start serving the model inside the docker container.

dir

character. Directory in which docker build will be called. Leave blank for tempdir.

Details

GET/POST / "OK" GET/POST /ping "pong" GET/POST /predict serialized output of predict as JSON


kirillseva/rain documentation built on May 20, 2019, 10:24 a.m.