Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
685f6a0
Add docker compose ci file
V1er4 Mar 14, 2025
da54461
Set up CI with Azure Pipelines
V1er4 Mar 14, 2025
5b3d457
labs 31
V1er4 Mar 14, 2025
2cd012c
Merge branch 'main' of https://github.com/V1er4/robot-dreams-kubernet…
V1er4 Mar 14, 2025
105951d
Update build.yml for Azure Pipelines
V1er4 Mar 15, 2025
4c5be73
Update build.yml for Azure Pipelines
V1er4 Mar 15, 2025
f14487d
Update build.yml for Azure Pipelines
V1er4 Mar 15, 2025
5984c55
Update build.yml for Azure Pipelines
V1er4 Mar 15, 2025
29fff7b
Update build.yml for Azure Pipelines
V1er4 Mar 15, 2025
141d61e
Update build.yml for Azure Pipelines
V1er4 Mar 17, 2025
bd85986
Update build.yml for Azure Pipelines
V1er4 Mar 18, 2025
99ee58b
Update build.yml for Azure Pipelines
V1er4 Mar 18, 2025
81d59d3
Update build.yml for Azure Pipelines
V1er4 Mar 19, 2025
cba9287
Update build.yml for Azure Pipelines
V1er4 Mar 20, 2025
1e8b4de
Update build.yml for Azure Pipelines
V1er4 Mar 20, 2025
d817b13
Update build.yml for Azure Pipelines
V1er4 Mar 20, 2025
83032c2
Update build.yml for Azure Pipelines
V1er4 Mar 20, 2025
6708ac7
Update build.yml for Azure Pipelines
V1er4 Mar 20, 2025
3eecd65
Update build.yml for Azure Pipelines
V1er4 Mar 20, 2025
5fd8718
Update build.yml for Azure Pipelines
V1er4 Mar 20, 2025
b761815
Updated dockers
V1er4 Mar 20, 2025
3a634f6
Merge branch 'main-ci' of https://github.com/V1er4/robot-dreams-kuber…
V1er4 Mar 20, 2025
83e2032
pipeline update
V1er4 Mar 20, 2025
d437cae
Update build.yml for Azure Pipelines
V1er4 Mar 20, 2025
75fcf30
Update build.yml for Azure Pipelines
V1er4 Mar 20, 2025
dce2307
Update build.yml for Azure Pipelines
V1er4 Mar 20, 2025
4062784
dockerfile update
V1er4 Mar 20, 2025
9f445ac
Merge branch 'main-ci' of https://github.com/V1er4/robot-dreams-kuber…
V1er4 Mar 20, 2025
b6a8570
Update build.yml for Azure Pipelines
V1er4 Mar 20, 2025
5bff3c7
add helm charts
V1er4 Mar 20, 2025
bb3e653
Merge branch 'main-ci' of https://github.com/V1er4/robot-dreams-kuber…
V1er4 Mar 20, 2025
e38061f
Update build.yml for Azure Pipelines
V1er4 Mar 20, 2025
723f6bd
Update build.yml for Azure Pipelines
V1er4 Mar 20, 2025
7bc74fa
Update build.yml for Azure Pipelines
V1er4 Mar 20, 2025
fdd3ca8
Update build.yml for Azure Pipelines
V1er4 Mar 20, 2025
b081995
Update build.yml for Azure Pipelines
V1er4 Mar 20, 2025
7404842
Update build.yml for Azure Pipelines
V1er4 Mar 20, 2025
4f22f60
Update build.yml for Azure Pipelines
V1er4 Mar 20, 2025
2f40779
Merge branch 'main' into main-ci
V1er4 Mar 20, 2025
3757bfe
helm update
V1er4 Mar 20, 2025
e165754
docker upgrade
V1er4 Mar 20, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
**/.classpath
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/bin
**/charts
**/docker-compose*
**/compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
LICENSE
README.md
39 changes: 39 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/src/NorthwindStore.Tests.UnitTests/bin/Debug/net6.0/NorthwindStore.Tests.UnitTests.dll",
"args": [],
"cwd": "${workspaceFolder}/src/NorthwindStore.Tests.UnitTests",
"console": "internalConsole",
"stopAtEntry": false
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach"
},
{
"name": "Docker .NET Launch",
"type": "docker",
"request": "launch",
"preLaunchTask": "docker-run: debug",
"netCore": {
"appProject": "${workspaceFolder}/src/NorthwindStore.Tests.UnitTests/NorthwindStore.Tests.UnitTests.csproj"
}
},
{
"name": "Docker .NET Launch release",
"type": "docker",
"request": "launch",
"preLaunchTask": "docker-run: release",
"netCore": {
"appProject": "${workspaceFolder}/NorthwindStore.App/NorthwindStore.App.csproj"
}
}
]
}
112 changes: 112 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/src/NorthwindStore.sln",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary;ForceNoAlign"
],
"problemMatcher": "$msCompile"
},
{
"label": "publish",
"command": "dotnet",
"type": "process",
"args": [
"publish",
"${workspaceFolder}/src/NorthwindStore.sln",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary;ForceNoAlign"
],
"problemMatcher": "$msCompile"
},
{
"label": "watch",
"command": "dotnet",
"type": "process",
"args": [
"watch",
"run",
"--project",
"${workspaceFolder}/src/NorthwindStore.sln"
],
"problemMatcher": "$msCompile"
},
{
"type": "docker-build",
"label": "docker-build: debug",
"dependsOn": [
"build"
],
"dockerBuild": {
"tag": "robotdreamskubernetesprivatevt:dev",
"target": "base",
"dockerfile": "${workspaceFolder}/src/NorthwindStore.Tests.UnitTests/Dockerfile",
"context": "${workspaceFolder}",
"pull": true
},
"netCore": {
"appProject": "${workspaceFolder}/src/NorthwindStore.Tests.UnitTests/NorthwindStore.Tests.UnitTests.csproj"
}
},
{
"type": "docker-build",
"label": "docker-build: release",
"dependsOn": [
"build"
],
"dockerBuild": {
"tag": "robotdreamskubernetesprivatevt:latest",
"dockerfile": "${workspaceFolder}/src/NorthwindStore.Tests.UnitTests/Dockerfile",
"context": "${workspaceFolder}",
"platform": {
"os": "linux",
"architecture": "amd64"
},
"pull": true
},
"netCore": {
"appProject": "${workspaceFolder}/src/NorthwindStore.Tests.UnitTests/NorthwindStore.Tests.UnitTests.csproj"
}
},
{
"type": "docker-run",
"label": "docker-run: debug",
"dependsOn": [
"docker-build: debug"
],
"dockerRun": {
"env": {
"ConnectionStrings__DB": "Data Source=tcp:northwind-db,1433; Initial Catalog=Northwind; User ID=sa; Password=DevPass_1"
},
"network": "northwind-network"
},
"netCore": {
"appProject": "${workspaceFolder}/src/NorthwindStore.Tests.UnitTests/NorthwindStore.Tests.UnitTests.csproj",
"enableDebugging": true,
"configureSsl": false
}
},
{
"type": "docker-run",
"label": "docker-run: release",
"dependsOn": [
"docker-build: release"
],
"dockerRun": {
"env": {
"ConnectionStrings__DB": "Data Source=tcp:northwind-db,1433; Initial Catalog=Northwind; User ID=sa; Password=DevPass_1"
},
"network": "northwind-network"
},
"netCore": {
"appProject": "${workspaceFolder}/src/NorthwindStore.Tests.UnitTests/NorthwindStore.Tests.UnitTests.csproj"
}
}
]
}
23 changes: 23 additions & 0 deletions ci/app/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# 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
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
24 changes: 24 additions & 0 deletions ci/app/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: v2
name: app
description: A Helm chart for Kubernetes

# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.0"
62 changes: 62 additions & 0 deletions ci/app/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "app.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "app.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default .Chart.Name .Values.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- end }}
{{- end }}

{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "app.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Common labels
*/}}
{{- define "app.labels" -}}
helm.sh/chart: {{ include "app.chart" . }}
{{ include "app.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}

{{/*
Selector labels
*/}}
{{- define "app.selectorLabels" -}}
app.kubernetes.io/name: {{ include "app.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
Create the name of the service account to use
*/}}
{{- define "app.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "app.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}
66 changes: 66 additions & 0 deletions ci/app/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "app.fullname" . }}
labels:
{{- include "app.labels" . | nindent 4 }}
spec:
selector:
matchLabels:
{{- include "app.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "app.labels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
{{- with .Values.livenessProbe }}
livenessProbe:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.env }}
env:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.volumeMounts }}
volumeMounts:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.resources }}
resources:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.volumes }}
volumes:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
Loading