Create, Clone, Publish and Delete Projects#
Key Concepts#
- Create
Initiating a net new project in a location with a simple default structure. Equivalent to git init –template <template> with the default structure.
- Clone
Equivalent to git clone <repository>. Requires a properly formatted .project/spec.yaml file.
- Publish
Pushes a new project to the intended Git platform. Equivalent to creating the repository on the platform, adding the remote origin, and pushing the project.
- Git platform
Supported examples are GitHub, public GitLab and self-hosted GitLab. You must have an account to a Git platform to publish a project.
Create New Project#
- Step One: Open a location and start project creation.
Select Location Manager > Location Card
Select Location Window > New Project
- Step Two: Fill the dialog in the New Project modal.
Enter New Project > Name (lowercase alphanumeric and hyphens)
Optionally enter free text in New Project > Description
(optional) Alter the default path on disk New Project > Path
Click New Project > Next
- Step Three: Select a base image container in the New Project modal.
Select the desired image from the defaults in NGC Catalog > Image Card
(optional) Select Custom Container > Text Bar and enter a URL
Select Create
Success: The project tab will open and the container will start building.
The Custom Container option only works with a properly labeled image.
Image labels are required to create .project/spec.yaml. Default images have them.
Clone Existing Project#
- Step One: Get the repository URL.
Make sure that it’s appropriate for an ordinary git clone.
- Step Two: Open a location and clone using the URL.
Select Location Manager > Location Card
Select Location Window > Clone Project
- Step Three: Enter the URL and initiate the clone in the Clone Project modal.
Paste the URL Clone Project > Repository URL
(optional) Alter the default path on disk Clone Project > Path
Select Clone Project > Clone
Success: The project tab will open and the container will start building.
The repository must have a properly formatted .project/spec.yaml file.
It is required to enter the project into the inventory and build the container.
Publish Local Project#
- Step One: Connect the Git platform to AI Workbench.
Select the Gear Symbol in the top chrome of an application window to go to the Settings Page
For public GitHub or GitLab, select Integrations > Platform Card
Follow the authentication flow for the selected platform (see self-hosted GitLab here)
- Step Two: Open a location and select the project to publish.
Select Locations Manager > Location Card
Select Location Window > Project Card
- Step Three: Complete the publishing flow in the Publish Project modal.
Select Project Tab > Publish
Select Publish Project > Git Remote Server
(optional) Select available namespace Publish Project > Namespace
Set visibility Publish Project > Repository Visibility
Select Publish Project > Publish
Success: You will see the Push Complete modal.
You can only publish a project if it has no pending changes to commit.
You will be prompted to commit or discard any pending changes.
Delete Existing Project#
- Step One: Open a location and select the project to publish.
Select Locations Manager > Location Card
- Step Two: Delete the project using the option dots on the project card.
Select Location Window > Project Card > Option Dots > Delete Project
Select Delete Project > Yes, Delete in the modal
Success: The project card will disappear from the location window.
You need to verify the delete if the project has uncommitted changes.
A modal will appear asking you to verify the consequences of the deletion.