test_docker: Test your docker image

Description Usage Arguments Value

View source: R/deploy.R

Description

Test your docker image

Usage

1
2
3
4
test_docker(data, package_name, image_name = package_name,
  process_name = image_name, base_url = "localhost", port = 8004,
  docker_image_type = c("opencpu", "plumber")[1],
  batch_size = nrow(data), ping_time = 5, verbose = T)

Arguments

data

A new dataset to get predictions for

package_name

The name of the package

image_name

The name of the docker image

process_name

The name you want the docker image to be run as. Defaults to image_name

base_url

The base url where the docker image is located. If this is equals "localhost", this function will also start and stop the image.

port

The host port on which the docker image is accessible. Defaults to 8004.

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.

batch_size

Allows you to set how many rows you want to send each time.

ping_time

How many seconds we'll try to ping the docker image before declaring the launch a failure.

verbose

Flag indicating if you want status updates printed.

Value

A dataframe of predictions, one row per row in data


jeroenvdhoven/datapiper documentation built on July 14, 2019, 9:34 p.m.