Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
frozen
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CSE6
frozen
Commits
b2b7c940
Commit
b2b7c940
authored
2 years ago
by
Arno Wunderlich
Browse files
Options
Downloads
Patches
Plain Diff
added url
parent
a2669b40
No related branches found
Branches containing commit
No related tags found
1 merge request
!2
added url
Pipeline
#13172
passed
2 years ago
Stage: build
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+3
-0
3 additions, 0 deletions
README.md
src/tjts5901/templates/index.html.j2
+3
-0
3 additions, 0 deletions
src/tjts5901/templates/index.html.j2
src/tjts5901/views.py
+1
-1
1 addition, 1 deletion
src/tjts5901/views.py
values.yaml
+92
-0
92 additions, 0 deletions
values.yaml
with
99 additions
and
1 deletion
README.md
+
3
−
0
View file @
b2b7c940
...
@@ -21,3 +21,6 @@ docker run -it -p 5001:5001 -e "FLASK_DEBUG=1" -v "${PWD}:/app" tjts5901
...
@@ -21,3 +21,6 @@ docker run -it -p 5001:5001 -e "FLASK_DEBUG=1" -v "${PWD}:/app" tjts5901
```
```
Please see the
`docs/tjts5901`
folder for more complete documentation.
Please see the
`docs/tjts5901`
folder for more complete documentation.
```
application address
https://frozen-app.azurewebsites.net/
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/tjts5901/templates/index.html.j2
+
3
−
0
View file @
b2b7c940
...
@@ -10,5 +10,8 @@
...
@@ -10,5 +10,8 @@
</head>
</head>
<body>
<body>
<h1>
Hello, world!
</h1>
<h1>
Hello, world!
</h1>
<h2>
Hallo, Welt!
</h2>
<h2>
Bonjour le monde!
</h2>
<h2>
Hei maailma!
</h2>
</body>
</body>
</html>
</html>
This diff is collapsed.
Click to expand it.
src/tjts5901/views.py
+
1
−
1
View file @
b2b7c940
...
@@ -20,5 +20,5 @@ def index() -> str:
...
@@ -20,5 +20,5 @@ def index() -> str:
# Render template file. Template file is using Jinja2 syntax, and can be passed an arbitrary number
# Render template file. Template file is using Jinja2 syntax, and can be passed an arbitrary number
# of arguments to be used in the template. The template file is located in the templates directory.
# of arguments to be used in the template. The template file is located in the templates directory.
html
=
render_template
(
"
index.html.j2
"
,
title
=
"
TJTS5901 Example. I
should be changed
.
"
)
html
=
render_template
(
"
index.html.j2
"
,
title
=
"
TJTS5901 Example. I
t was changed by Arno
.
"
)
return
html
return
html
This diff is collapsed.
Click to expand it.
values.yaml
0 → 100644
+
92
−
0
View file @
b2b7c940
## The GitLab Server URL (with protocol) that want to register the runner against
## ref: https://docs.gitlab.com/runner/commands/index.html#gitlab-runner-register
##
gitlabUrl
:
"
https://gitlab.jyu.fi"
## The Registration Token for adding new Runners to the GitLab Server. This must
## be retrieved from your GitLab Instance.
## ref: https://docs.gitlab.com/ce/ci/runners/index.html
## NOTE: In TJTS5901 we set this using kubernetes secrets.
##
# runnerRegistrationToken: gitlab-runner-secret
## Unregister all runners before termination
##
## Updating the runner's chart version or configuration will cause the runner container
## to be terminated and created again. This may cause your Gitlab instance to reference
## non-existant runners. Un-registering the runner before termination mitigates this issue.
## ref: https://docs.gitlab.com/runner/commands/index.html#gitlab-runner-unregister
##
unregisterRunners
:
true
## Configure the maximum number of concurrent jobs
## - Documentation: https://docs.gitlab.com/runner/configuration/advanced-configuration.html#the-global-section
## - Default value: 10
concurrent
:
2
## For RBAC support:
rbac
:
create
:
true
clusterWideAccess
:
false
# rules:
# - apiGroups: [""]
# resources: ["pods"]
# verbs: ["get", "create", "delete"]
# - apiGroups: [""]
# resources: ["pods/exec"]
# verbs: ["get", "create"]
# - apiGroups: [""]
# resources: ["pods/attach"]
# verbs: ["create"]
# - apiGroups: [""]
# resources: ["secrets", "configmaps"]
# verbs: ["create", "update", "delete"]
# - apiGroups: [""]
# resources: ["services"]
# verbs: ["create"]
## Configuration for the Pods that the runner launches for each new job
##
runners
:
image
:
ubuntu:20.04
builds
:
{}
services
:
{}
helpers
:
{}
name
:
"
Kubernetes
runner
on
Azure
for
TJTS5901"
## Tags associated with the runner. Comma-separated list of tags.
## - Documentation: https://docs.gitlab.com/ce/ci/runners/#using-tags
tags
:
kubernetes, cluster
## Determine whether the runner should also run jobs without tags.
## - Documentation: https://docs.gitlab.com/ee/ci/runners/configure_runners.html#set-a-runner-to-run-untagged-jobs
runUntagged
:
true
# runner configuration, where the multi line strings is evaluated as
# template so you can specify helm values inside of it.
#
# tpl: https://helm.sh/docs/howto/charts_tips_and_tricks/#using-the-tpl-function
# runner configuration: https://docs.gitlab.com/runner/configuration/advanced-configuration.html
config
:
|
[[runners]]
environment = ["DOCKER_DRIVER=overlay2"]
[runners.kubernetes]
namespace = "{{.Release.Namespace}}"
privileged = true
[[runners.kubernetes.volumes.empty_dir]]
name = "docker-certs"
mount_path = "/certs/client"
medium = "Memory"
## The name of the secret containing runner-token and runner-registration-token
secret
:
runner-registration-token
## Run all containers with the privileged flag enabled
## This will allow the docker:dind image to run if you need to run Docker
## commands. Please read the docs before turning this on:
## - Documentation: https://docs.gitlab.com/runner/executors/kubernetes.html#using-docker-dind
privileged
:
true
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment