feat(ai-server): Add ai-server to replace CodeProject.Ai (#17565)

**Description**

Replaced and renamed upstream, so let's get this one working and then
deprecate the old one

⚒️ Fixes  #17535

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [ ] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] 🔃 Refactor of current code

**🧪 How Has This Been Tested?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ Checklist:**

- [ ] ⚖️ My code follows the style guidelines of this project
- [ ] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 I have made corresponding changes to the documentation
- [ ] ⚠️ My changes generate no new warnings
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [ ] ⬆️ I increased versions for any altered app according to semantic
versioning

**➕ App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._

---------

Signed-off-by: StevenMcElligott <89483932+StevenMcElligott@users.noreply.github.com>
Signed-off-by: Xstar97TheNoob <9399967+xstar97@users.noreply.github.com>
Co-authored-by: Xstar97TheNoob <9399967+xstar97@users.noreply.github.com>
This commit is contained in:
StevenMcElligott
2024-01-28 12:24:50 -05:00
committed by GitHub
co-authored by Xstar97TheNoob
parent 5c7b7cf0d8
commit e3ea938b1a
11 changed files with 233 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
# OWNERS file for Kubernetes
OWNERS
# helm-docs templates
*.gotmpl
# docs folder
/docs
# icon
icon.png
+3
View File
@@ -0,0 +1,3 @@
---
title: Changelog
---
+37
View File
@@ -0,0 +1,37 @@
annotations:
max_scale_version: 23.10.2
min_scale_version: 23.10.0
truecharts.org/SCALE-support: "true"
truecharts.org/category: AI
truecharts.org/max_helm_version: "3.14"
truecharts.org/min_helm_version: "3.12"
truecharts.org/train: incubator
apiVersion: v2
appVersion: 2.5.1
dependencies:
- name: common
version: 17.2.29
repository: oci://tccr.io/truecharts
condition: ""
alias: ""
tags: []
import-values: []
deprecated: false
description: A standalone, self-hosted, fast, free and Open Source Artificial Intelligence microserver for any platform, any language.
home: https://truecharts.org/charts/incubator/ai-server
icon: https://truecharts.org/img/hotlink-ok/chart-icons/ai-server.png
keywords:
- ai-server
- sense-ai
kubeVersion: ">=1.24.0-0"
maintainers:
- name: TrueCharts
email: info@truecharts.org
url: https://truecharts.org
name: ai-server
sources:
- https://github.com/codeproject/CodeProject.AI-Server
- https://github.com/truecharts/charts/tree/master/charts/incubator/ai-server
- https://hub.docker.com/r/codeproject/ai-server
type: application
version: 0.0.1
+3
View File
@@ -0,0 +1,3 @@
---
title: README
---
@@ -0,0 +1 @@
imageSelector: image
@@ -0,0 +1 @@
imageSelector: gpu11Image
@@ -0,0 +1 @@
imageSelector: gpu12Image
Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

+110
View File
@@ -0,0 +1,110 @@
# Include{groups}
portals:
open:
# Include{portalLink}
questions:
# Include{global}
# Include{workload}
# Include{workloadDeployment}
# Include{replicas1}
# Include{podSpec}
# Include{containerMain}
- variable: imageSelector
label: Select Image
schema:
type: string
default: image
enum:
- value: image
description: Default (CPU)
- value: gpu12Image
description: CUDA 12 (Nvidia GPUs) image
- value: gpu11Image
description: CUDA 11 (Nvidia GPUs) image
# Include{containerBasic}
# Include{containerAdvanced}
# Include{containerConfig}
# Include{podOptions}
# Include{serviceRoot}
- variable: main
label: "Main Service"
description: "The Primary service on which the healthcheck runs, often the webUI"
schema:
additional_attrs: true
type: dict
attrs:
# Include{serviceSelectorLoadBalancer}
# Include{serviceSelectorExtras}
- variable: main
label: "Main Service Port Configuration"
schema:
additional_attrs: true
type: dict
attrs:
- variable: port
label: "Port"
description: "This port exposes the container port on the service"
schema:
type: int
default: 32168
required: true
# Include{serviceExpertRoot}
# Include{serviceExpert}
# Include{serviceList}
# Include{persistenceRoot}
- variable: data
label: "App Data Storage"
description: "Stores the Application Data."
schema:
additional_attrs: true
type: dict
attrs:
# Include{persistenceBasic}
- variable: downloads
label: App Modules Storage
description: Stores the App Modules or Downloads
schema:
additional_attrs: true
type: dict
attrs:
# Include{persistenceBasic}
# Include{persistenceList}
# Include{ingressRoot}
- variable: main
label: "Main Ingress"
schema:
additional_attrs: true
type: dict
attrs:
# Include{ingressDefault}
# Include{ingressAdvanced}
# Include{ingressList}
# Include{securityContextRoot}
- variable: runAsUser
label: "runAsUser"
description: "The UserID of the user running the application"
schema:
type: int
default: 0
- variable: runAsGroup
label: "runAsGroup"
description: "The groupID of the user running the application"
schema:
type: int
default: 0
# Include{securityContextContainer}
# Include{securityContextAdvanced}
# Include{securityContextPod}
- variable: fsGroup
label: "fsGroup"
description: "The group that should own ALL storage."
schema:
type: int
default: 568
# Include{resources}
# Include{advanced}
# Include{addons}
# Include{codeserver}
# Include{netshoot}
# Include{vpn}
# Include{documentation}
@@ -0,0 +1 @@
{{ include "tc.v1.common.loader.all" . }}
+46
View File
@@ -0,0 +1,46 @@
image:
pullPolicy: IfNotPresent
repository: codeproject/ai-server
tag: cpu-2.5.1@sha256:4ac7e0ace01abdb26e6d1876011a95f9f294352abd23936e4c6040f23582ed9f
gpu12Image:
pullPolicy: IfNotPresent
repository: codeproject/ai-server
tag: cuda12_2-2.5.1@sha256:c846c67adb140912ff344a7ba57b3498019d18dfeaf70a32ab68ff389db74efd
gpu11Image:
pullPolicy: IfNotPresent
repository: codeproject/ai-server
tag: cuda11_7-2.5.1@sha256:b48a17af31d10b839baaa07495449bb185493e0d90d88520bd6d6339e6a168cf
securityContext:
container:
runAsNonRoot: false
readOnlyRootFilesystem: false
runAsUser: 0
runAsGroup: 0
service:
main:
ports:
main:
port: 32168
targetPort: 32168
workload:
main:
podSpec:
containers:
main:
imageSelector: image
persistence:
data:
enabled: true
mountPath: /etc/codeproject/ai
downloads:
enabled: true
mountPath: /app/modules
portal:
open:
enabled: true