Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Deployment
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
freva
Deployment
Commits
f462bfe3
Commit
f462bfe3
authored
2 years ago
by
Martin Bergemann
Browse files
Options
Downloads
Patches
Plain Diff
Reformatting
parent
705efe8c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!18
New image registry
Pipeline
#19249
passed
2 years ago
Stage: doc
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/freva_deployment/deploy.py
+5
-2
5 additions, 2 deletions
src/freva_deployment/deploy.py
src/freva_deployment/ui/deployment_tui/main_window.py
+7
-2
7 additions, 2 deletions
src/freva_deployment/ui/deployment_tui/main_window.py
with
12 additions
and
4 deletions
src/freva_deployment/deploy.py
+
5
−
2
View file @
f462bfe3
...
...
@@ -50,7 +50,9 @@ class DeployFactory:
_steps_with_cert
:
tuple
[
str
,
...]
=
(
"
db
"
,
"
vault
"
,
"
core
"
,
"
web
"
)
def
__init__
(
self
,
steps
:
list
[
str
]
|
None
=
None
,
config_file
:
Path
|
str
|
None
=
None
,
self
,
steps
:
list
[
str
]
|
None
=
None
,
config_file
:
Path
|
str
|
None
=
None
,
)
->
None
:
self
.
_config_keys
:
list
[
str
]
=
[]
...
...
@@ -264,7 +266,8 @@ class DeployFactory:
def
_get_files_copy
(
self
,
key
)
->
Path
|
None
:
return
dict
(
core
=
self
.
eval_conf_file
.
absolute
(),
web
=
self
.
eval_conf_file
.
absolute
(),
core
=
self
.
eval_conf_file
.
absolute
(),
web
=
self
.
eval_conf_file
.
absolute
(),
).
get
(
key
,
None
)
@property
...
...
This diff is collapsed.
Click to expand it.
src/freva_deployment/ui/deployment_tui/main_window.py
+
7
−
2
View file @
f462bfe3
...
...
@@ -54,7 +54,11 @@ class MainApp(npyscreen.NPSAppManaged):
def
_add_froms
(
self
)
->
None
:
"""
Add forms to edit the deploy steps to the main window.
"""
self
.
_forms
[
"
core
"
]
=
self
.
addForm
(
"
MAIN
"
,
CoreScreen
,
name
=
"
Core deployment
"
,)
self
.
_forms
[
"
core
"
]
=
self
.
addForm
(
"
MAIN
"
,
CoreScreen
,
name
=
"
Core deployment
"
,
)
self
.
_forms
[
"
web
"
]
=
self
.
addForm
(
"
SECOND
"
,
WebScreen
,
name
=
"
Web deployment
"
)
self
.
_forms
[
"
db
"
]
=
self
.
addForm
(
"
THIRD
"
,
DBScreen
,
name
=
"
Database deployment
"
)
self
.
_forms
[
"
solr
"
]
=
self
.
addForm
(
"
FOURTH
"
,
SolrScreen
,
name
=
"
Solr deployment
"
)
...
...
@@ -145,7 +149,8 @@ class MainApp(npyscreen.NPSAppManaged):
return
self
.
_save_config_to_file
(
**
kwargs
)
except
Exception
as
error
:
npyscreen
.
notify_confirm
(
title
=
"
Error
"
,
message
=
f
"
Couldn
'
t save config:
\n
{
error
}
"
,
title
=
"
Error
"
,
message
=
f
"
Couldn
'
t save config:
\n
{
error
}
"
,
)
return
None
...
...
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