Browse Source

wip

pull/1/head
Nicolas Massé 3 years ago
parent
commit
d0bfab768d
  1. 29
      charts/Containerfile
  2. 4
      charts/sql-server-2019/Chart.yaml
  3. 19
      charts/sql-server-2019/README.md
  4. 67
      charts/sql-server-2019/values.schema.json

29
charts/Containerfile

@ -1,5 +1,32 @@
FROM docker.io/nginxinc/nginx-unprivileged:1.25-alpine
##
## Development instructions
##
#
# Build the container image and push it to Quay.io:
#
# podman build -t quay.io/nmasse_itix/eshop_charts:latest .
# podman push quay.io/nmasse_itix/eshop_charts:latest
#
# Deploy it to OpenShift:
#
# oc new-project eshop-infra
# oc create deploy helm-repository --image=quay.io/nmasse_itix/eshop_charts:latest --port=8080
# oc expose deploy/helm-repository --name helm-repository
#
# And then create the HelmChartRepository object:
#
# apiVersion: helm.openshift.io/v1beta1
# kind: HelmChartRepository
# metadata:
# name: eshop-charts
# spec:
# connectionConfig:
# url: http://helm-repository.eshop-infra.svc:8080
# name: eShop Charts
#
ADD . /usr/src/helm-charts
USER 0
@ -7,6 +34,6 @@ USER 0
RUN curl -sSfL https://get.helm.sh/helm-v3.12.0-linux-amd64.tar.gz | tar -zxv -C /usr/local/bin --strip-components=1 \
&& mkdir -p /tmp/helm-repository \
&& for chart in /usr/src/helm-charts/*/; do helm package -d /usr/share/nginx/html "$chart"; done \
&& helm repo index --url "http://helm-charts.fruits-dev.svc:8080/" /usr/share/nginx/html
&& helm repo index --url "http://helm-repository.eshop-infra.svc:8080/" /usr/share/nginx/html
USER 101

4
charts/sql-server-2019/Chart.yaml

@ -3,3 +3,7 @@ name: sql-server-2019
type: application
version: 0.0.1
appVersion: "0.0.1"
description: A Helm chart to deploy Microsoft SQL Server 2019
keywords:
- mssql
- database

19
charts/sql-server-2019/README.md

@ -0,0 +1,19 @@
# SQL Server 2019 Helm Chart
A Helm chart for deploying [Microsoft SQL Server 2019](https://www.microsoft.com/en-us/sql-server/sql-server-2019) on OpenShift.
## Pre-requisites
None.
## Values
Below is a table of each value used to configure this chart.
| Value | Description | Default | Additional Information |
| ----- | ----------- | ------- | ---------------------- |
| `saPassword` | Administrator Password | `R3dH4t1!` | |
| `database.name` | Database Name | `eShop` | |
| `database.schema` | Database Schema | `eShop` | |
| `database.owner.username` | Username to access the database | `eShop` | |
| `database.owner.password` | Password to access the database | `R3dH4t1!` | |

67
charts/sql-server-2019/values.schema.json

@ -0,0 +1,67 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"type": "object",
"additionalProperties": false,
"properties": {
"saPassword": {
"type": "string",
"description": "SQL Server Administrator Password",
"title": "Administrator Password",
"default": "R3dH4t1!"
},
"database": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"title": "Database Name",
"description": "Name of the database to create",
"default": "eShop"
},
"owner": {
"type": "object",
"additionalProperties": false,
"properties": {
"username": {
"title": "Username",
"description": "Username to access the database",
"type": "string",
"default": "eShop"
},
"password": {
"title": "Password",
"description": "Password to access the database",
"type": "string",
"default": "R3dH4t1!"
}
},
"required": [
"password",
"username"
],
"title": "Database Owner",
"description": "Credentials of the database owner"
},
"schema": {
"title": "Schema Name",
"type": "string",
"description": "Name of the schema to create",
"default": "eShop"
}
},
"required": [
"name",
"owner",
"schema"
],
"title": "Database",
"description": "Database creation"
}
},
"required": [
"database",
"saPassword"
],
"title": "Microsoft SQL Server 2019"
}
Loading…
Cancel
Save