Skip to content

rh-aiservices-pilot/odh-s2i-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

odh-s2i-scripts

These scripts are meant to be run from an Open Data Hub JupyterHub environment and provide some basic scripted functions for creating a new project, repo, and application.

Installing

Install scripts and pre-requisites.

curl -o- https://raw.githubusercontent.com/rh-aiservices-pilot/odh-s2i-scripts/master/install.sh | bash

Create a new project

Initializes a file structure including notebooks and a buildable s2i flask application.

odh new-project

Create a new repository

Initializes and creates a new repository in GitHub.

odh new-repo <repo_directory>

Create a new OpenShift application

Creates a new OpenShift application (deployment, service, buildconfig, imagestream, route) for model serving from the GitHub repo in a directory (<repo-directory>) in an OpenShift project (<oc-project>).

You must be logged into the OpenShift cluster using oc login using either username and password or a token. Full documentation here

oc login --token=sha256~XYZ --server=https://api.my-cluster:6443
odh new-app <repo-directory> <oc-project>

Create a webhook in an OpenShift application

Optionally, after creating the application, view the build config and add a webhook in GitHub. The application will rebuild on git push

  1. In the project repo click Settings -> Webhooks
  2. Click Add webhook
  3. Paste the value from BuildConfig
  4. Change Content type to JSON
  5. Click Add Webhook to save

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages