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
c747e0fb
Commit
c747e0fb
authored
1 year ago
by
Vincent Hatakeyama
Browse files
Options
Downloads
Patches
Plain Diff
docker_build: Use Orus API token in PIP_INDEX_URL
parent
9316d438
No related branches found
Branches containing commit
Tags
17.0.1.0.0
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NEWS.rst
+5
-0
5 additions, 0 deletions
NEWS.rst
odoo_scripts/docker_build.py
+10
-0
10 additions, 0 deletions
odoo_scripts/docker_build.py
with
15 additions
and
0 deletions
NEWS.rst
+
5
−
0
View file @
c747e0fb
...
...
@@ -2,6 +2,11 @@
History
=======
20.14.0
-------
docker_build: Use the Orus API token if available (giving it to docker in the environment variable PIP_INDEX_URL)
20.13.0
-------
...
...
This diff is collapsed.
Click to expand it.
odoo_scripts/docker_build.py
+
10
−
0
View file @
c747e0fb
...
...
@@ -17,6 +17,7 @@
from
.docker_build_copy
import
add_build_copy_options
,
copy
,
get_build_copy_options
from
.docker_client
import
DockerClient
from
.parsing
import
apply
,
basic_parser
from
.storage
import
get_orus_api_token
_logger
=
logging
.
getLogger
(
__name__
)
...
...
@@ -177,6 +178,15 @@
a
=
arg
.
split
(
"
=
"
)
buildargs
[
a
[
0
]]
=
a
[
1
]
_logger
.
debug
(
"
Build args: %s
"
,
buildargs
)
if
nmspc
.
orus_api_token
or
get_orus_api_token
():
buildargs
[
"
PIP_INDEX_URL
"
]
=
f
"
https://__token__:
{
nmspc
.
orus_api_token
or
get_orus_api_token
()
}
@orus.io/api/v4/groups/9/-/packages/pypi/simple
"
# noqa: E501
else
:
if
c
.
orus_api_token_required
:
_logger
.
error
(
"
No Orus API token provided, the project indicates it is mandatory
"
)
if
dev
:
debug_dockerfile
=
"
Dockerfile.debug
"
call
([
"
cp
"
,
dockerfile
,
debug_dockerfile
])
...
...
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