Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
I
install.api
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Script
install.api
Commits
20726c97
Commit
20726c97
authored
Mar 20, 2020
by
金凯强
🎨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
异常报错处理修改
parent
9cae8bcb
Pipeline
#21141
passed with stage
in 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
upgrade_service.py
app/upgrade/upgrade_service.py
+1
-1
No files found.
app/upgrade/upgrade_service.py
View file @
20726c97
...
@@ -385,7 +385,7 @@ docker-compose -f /data/upgrade_tools_data/backup/{upgrade_no}/docker-compose.ym
...
@@ -385,7 +385,7 @@ docker-compose -f /data/upgrade_tools_data/backup/{upgrade_no}/docker-compose.ym
file_name
=
deploy_image
.
replace
(
'/'
,
'___'
)
.
replace
(
':'
,
'__'
)
+
'.tar'
file_name
=
deploy_image
.
replace
(
'/'
,
'___'
)
.
replace
(
':'
,
'__'
)
+
'.tar'
_cmd
=
'docker save {} -o {}/{}'
.
format
(
deploy_image
,
upgrade_no_back_up_dir
,
file_name
)
_cmd
=
'docker save {} -o {}/{}'
.
format
(
deploy_image
,
upgrade_no_back_up_dir
,
file_name
)
result
=
os
.
system
(
_cmd
)
result
=
os
.
system
(
_cmd
)
if
result
==
1
:
if
result
!=
0
:
raise
RuntimeError
(
"{}执行出错"
.
format
(
_cmd
))
raise
RuntimeError
(
"{}执行出错"
.
format
(
_cmd
))
logger
.
info
(
f
'镜像生成完毕,目录为{upgrade_no_back_up_dir}'
)
logger
.
info
(
f
'镜像生成完毕,目录为{upgrade_no_back_up_dir}'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment