-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'aiap15ds-update' into 'main'
OCP Cluster Testing for AIAP 15 MLOps Week Closes #2 See merge request mlops/kapitan-hull!1
- Loading branch information
Showing
30 changed files
with
1,031 additions
and
518 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
image: | ||
name: python:3.10 | ||
|
||
stages: | ||
- docs | ||
- update | ||
|
||
pages: | ||
stage: docs | ||
before_script: | ||
- pip install -r mkdocs-requirements.txt | ||
script: | ||
- mkdocs build --strict --verbose --site-dir public | ||
artifacts: | ||
paths: | ||
- public | ||
rules: | ||
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH | ||
|
||
update:onprem-runai: | ||
stage: update | ||
tags: | ||
- on-prem | ||
#variables: | ||
# REPO_URL_ONPREM_RUNAI: url-in-settings | ||
# REPO_USERNAME_ONPREM_RUNAI: username-in-settings | ||
# REPO_PASSWORD_ONPREM_RUNAI: password-in-settings | ||
before_script: | ||
- pip install cookiecutter | ||
- mkdir -p /tmp/kapitan-hull && cd $_ | ||
- git config --global user.name "Kapitan Hull Bot" | ||
- git config --global user.email "[email protected]" | ||
script: | ||
- cookiecutter --replay-file $CI_PROJECT_DIR/cookiecutter-onprem-runai.json $CI_PROJECT_DIR | ||
- git clone https://$REPO_USERNAME_ONPREM_RUNAI:$REPO_PASSWORD_ONPREM_RUNAI@$REPO_URL_ONPREM_RUNAI git-repo | ||
- cd git-repo | ||
- git checkout -B $CI_COMMIT_BRANCH | ||
- git pull origin $CI_COMMIT_BRANCH || echo "Nothing to pull" | ||
- cd ../kapitan-hull-onprem-runai-test | ||
- cp -rv ../git-repo/.git . | ||
- git add . | ||
- git commit -m "$CI_COMMIT_MESSAGE" || echo "Nothing to commit" | ||
- git push origin $CI_COMMIT_BRANCH || echo "Nothing to push" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"cookiecutter": { | ||
"project_name": "Kapitan Hull GCP RunAI Test", | ||
"description": "Testing Grounds for Kapitan Hull on GCP using RunAI.", | ||
"repo_name": "kapitan-hull-gcp-runai-test", | ||
"src_package_name": "kapitan_hull_gcp_runai_test", | ||
"src_package_name_short": "khgr_test", | ||
"platform": "gcp", | ||
"orchestrator": "runai", | ||
"proj_name": "mlops-test", | ||
"registry_project_path": "registry.aisingapore.net/mlops/kapitan-hull-gcp-runai", | ||
"author_name": "mlops" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"cookiecutter": { | ||
"project_name": "Kapitan Hull Onprem RunAI Test", | ||
"description": "Testing Grounds for Kapitan Hull on premise using RunAI.", | ||
"repo_name": "kapitan-hull-onprem-runai-test", | ||
"src_package_name": "kapitan_hull_onprem_runai_test", | ||
"src_package_name_short": "khor_test", | ||
"platform": "onprem", | ||
"orchestrator": "runai", | ||
"proj_name": "mlops-test", | ||
"registry_project_path": "registry.aisingapore.net/mlops/kapitan-hull-onprem-runai", | ||
"author_name": "mlops" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,33 @@ | ||
{ | ||
"project_name": "Name of project (not name of repository). Use whitespace instead of underscores or hyphens.", | ||
"project_name": "My Project", | ||
"description": "A short description of the project.", | ||
"repo_name": "{{ cookiecutter.project_name.lower().replace(' ', '-').replace('_', '-') }}", | ||
"src_package_name": "{{ cookiecutter.repo_name.replace('-', '_') }}", | ||
"src_package_name_short": "{{ cookiecutter.src_package_name }}", | ||
"runai_proj_name": "The RunAI namespace used by the project.", | ||
"harbor_registry_project_path": "Path of the project's container registry on Harbor.", | ||
"author_name": "Your alias or project team's name." | ||
"platform": ["onprem", "gcp"], | ||
"orchestrator": ["runai", "polyaxon", "none"], | ||
"proj_name": "sample-project", | ||
"registry_project_path": "registry.domain.tld/sample-project/my-project", | ||
"author_name": "AISG", | ||
"__prompts__": { | ||
"project_name": "Name of project that will be the header for the README.md. Input to start with alphabet. Only whitespace as separators.", | ||
"description": "A short description of the project that will be populated in README.md. Max of 72 characters.", | ||
"repo_name": "Name of repository. Name of the repository folder. Input to start with alphabet characters. No whitespaces or underscores are allowed.", | ||
"src_package_name": "Name of the source code's package under the src folder. Input to start with alphabet characters. No whitespaces or hyphens are allowed.", | ||
"src_package_name_short": "The alias for the source code's package. Input to start with alphabet characters. No whitespaces or hyphens are allowed.", | ||
"platform": { | ||
"__prompt__": "The platform the project is running on.", | ||
"onprem": "On premise", | ||
"gcp": "Google Cloud Platform (not implemented yet)" | ||
}, | ||
"orchestrator": { | ||
"__prompt__": "The orchestrator the project is using.", | ||
"runai": "Run:AI", | ||
"polyaxon": "Polyaxon (not implemented yet)", | ||
"noorch": "No orchestrator (not implemented yet)" | ||
}, | ||
"proj_name": "The project name used in by the repository. If you're using Run:AI, this will be the Run:AI project name used by the repository.", | ||
"registry_project_path": "Path of the registry repository for your container images to be located under. Cannot end with a slash character.", | ||
"author_name": "Your alias or project team's name. Relatively arbitrary. No hyphens are allowed." | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.