Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kolla Ansible
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
Very Demiurge Very Mindful
Kolla Ansible
Commits
c1fca272
Commit
c1fca272
authored
9 years ago
by
Jenkins
Committed by
Gerrit Code Review
9 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Fix broken local and global building"
parents
6293c836
ea5fa4e2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kolla/cmd/build.py
+13
-4
13 additions, 4 deletions
kolla/cmd/build.py
with
13 additions
and
4 deletions
kolla/cmd/build.py
+
13
−
4
View file @
c1fca272
...
...
@@ -38,6 +38,15 @@ from requests.exceptions import ConnectionError
import
six
from
six.moves
import
range
PROJECT_ROOT
=
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)),
'
../..
'
))
# NOTE(SamYaple): Update the search patch to prefer PROJECT_ROOT as the source
# of packages to import if we are using local tools/build.py
# instead of pip installed kolla-build tool
if
PROJECT_ROOT
not
in
sys
.
path
:
sys
.
path
.
insert
(
0
,
PROJECT_ROOT
)
from
kolla.common
import
config
as
common_config
from
kolla
import
version
...
...
@@ -47,9 +56,6 @@ LOG.setLevel(logging.INFO)
signal
.
signal
(
signal
.
SIGINT
,
signal
.
SIG_DFL
)
PROJECT_ROOT
=
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)),
'
../..
'
))
class
KollaDirNotFoundException
(
Exception
):
pass
...
...
@@ -330,7 +336,10 @@ class KollaWorker(object):
for
path
in
possible_paths
:
image_path
=
os
.
path
.
join
(
path
,
'
docker
'
)
if
os
.
path
.
exists
(
image_path
):
# NOTE(SamYaple): We explicty check for the base folder to ensure
# this is the correct path
# TODO(SamYaple): Improve this to make this safer
if
os
.
path
.
exists
(
os
.
path
.
join
(
image_path
,
'
base
'
)):
LOG
.
info
(
'
Found the docker image folder at %s
'
,
image_path
)
return
image_path
else
:
...
...
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