Once you create a docker directory for your script with kub_create_task(), this function is able to build it and push it to the appropriate cloud diretory. Aditionally, it also creates all the job yaml files so that the only remaining step is running the cluster with kub_run_task().

kub_push_task(path, image_name = NULL, num_jobs = NULL)

Arguments

path

Path to task directory (if missing, defaults to the most recently created task)

image_name

Name of the image where to build the container (if NULL, the default, the name of the image set by kub_create_task())

num_jobs

When run, the number of jobs spawned (if NULL, the default, [NUM_NODES] of the cluster)

Value

Path to the kuber directory

References

https://docs.docker.com/engine/reference/commandline/build/ https://cloud.google.com/container-registry/docs/pushing-and-pulling