Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support cookbook in connectapi: Creating Execution Environments #348

Open
toph-allen opened this issue Dec 9, 2024 · 0 comments
Open

Support cookbook in connectapi: Creating Execution Environments #348

toph-allen opened this issue Dec 9, 2024 · 0 comments
Assignees
Labels
cookbook Supporting recipes in the Connect Cookbook

Comments

@toph-allen
Copy link
Collaborator

toph-allen commented Dec 9, 2024

library(connectapi)

CONTAINER_REGISTRY = "myorg/myrepo"

client = connect()

create_environment(
  title = "Custom Image Classifier",
  description = "My custom image classifier",
  cluster_name = "Kubernetes",
  name = paste0(CONTAINER_REGISTRY, "/image-classifier:jammy"),
  matching = "exact",
  r_version = "4.2.3",
  r_path = "/opt/R/4.2.3/bin/R",
  python_version = "3.9.14",
  python_path = "/opt/python/3.9.14/python"
)

A JSON object representing the environment is returned.

create_execution_environment(title = "Project alpha", description = , ...)

Accept many things, but at the very outset covert to a single type.

It's reasonable that if you know a version, you can guess the path. Like 4.2.3, guess the path?

What if it's a vector of versions?

Could just have just separate parameters for python, quarto, r, tensorflow. list(list(path = "opt/234/r", version = "234"), list(path = "opt/567/r", version = "567")).


Probably want to just do the simple implementation of the API and then add possible syntactic sugar on top of it later.

Complete #313 first so that it can return the ExecutionEnv class.

@toph-allen toph-allen self-assigned this Dec 9, 2024
@toph-allen toph-allen added the cookbook Supporting recipes in the Connect Cookbook label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cookbook Supporting recipes in the Connect Cookbook
Projects
None yet
Development

No branches or pull requests

1 participant