Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Odoo scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XCG
Odoo scripts
Commits
face5cd329bc
Commit
face5cd329bc
authored
1 year ago
by
Vincent Hatakeyama
Browse files
Options
Downloads
Patches
Plain Diff
pylint, mypy
parent
bbc6dd83361e
No related branches found
No related tags found
1 merge request
!191
📝 Add option to activate S3 storage for attachments
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
odoo_scripts/docker_build_copy.py
+1
-1
1 addition, 1 deletion
odoo_scripts/docker_build_copy.py
odoo_scripts/docker_client.py
+5
-2
5 additions, 2 deletions
odoo_scripts/docker_client.py
with
6 additions
and
3 deletions
odoo_scripts/docker_build_copy.py
+
1
−
1
View file @
face5cd3
...
@@ -169,7 +169,7 @@
...
@@ -169,7 +169,7 @@
cmd
=
[
sys
.
executable
,
"
-m
"
,
"
twine
"
,
"
check
"
,
f
"
{
target
}
/*
"
]
cmd
=
[
sys
.
executable
,
"
-m
"
,
"
twine
"
,
"
check
"
,
f
"
{
target
}
/*
"
]
check_call
(
cmd
)
check_call
(
cmd
)
except
ImportError
:
except
ImportError
:
_logger
.
warn
(
"
No twine, no check done
"
)
_logger
.
warn
ing
(
"
No twine, no check done
"
)
for
entry
in
os
.
listdir
(
target
):
for
entry
in
os
.
listdir
(
target
):
if
entry
.
endswith
(
"
.whl
"
):
if
entry
.
endswith
(
"
.whl
"
):
...
...
This diff is collapsed.
Click to expand it.
odoo_scripts/docker_client.py
+
5
−
2
View file @
face5cd3
...
@@ -454,8 +454,11 @@
...
@@ -454,8 +454,11 @@
def
remove
(
self
):
def
remove
(
self
):
"""
Remove the service container created
"""
"""
Remove the service container created
"""
try
:
try
:
_logger
.
info
(
"
Removing %s container
"
,
self
.
name
)
if
self
.
_container
is
not
None
:
self
.
_container
.
remove
()
_logger
.
info
(
"
Removing %s container
"
,
self
.
name
)
self
.
_container
.
remove
()
else
:
_logger
.
info
(
"
Container %s already removed
"
,
self
.
name
)
except
docker
.
errors
.
NotFound
as
exception
:
except
docker
.
errors
.
NotFound
as
exception
:
_logger
.
error
(
"
Removing container %s, got: %s
"
,
self
.
name
,
exception
)
_logger
.
error
(
"
Removing container %s, got: %s
"
,
self
.
name
,
exception
)
raise
exception
raise
exception
...
...
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