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
42b34bb7
Commit
42b34bb7
authored
9 years ago
by
Jenkins
Committed by
Gerrit Code Review
9 years ago
Browse files
Options
Downloads
Plain Diff
Merge "add "registry" flag to "tools/build.py""
parents
968a42b8
52b72538
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
doc/deploy-all-in-one-node.rst
+1
-1
1 addition, 1 deletion
doc/deploy-all-in-one-node.rst
doc/image-building.rst
+4
-6
4 additions, 6 deletions
doc/image-building.rst
etc/kolla/kolla-build.conf
+2
-0
2 additions, 0 deletions
etc/kolla/kolla-build.conf
kolla/cmd/build.py
+10
-2
10 additions, 2 deletions
kolla/cmd/build.py
with
17 additions
and
9 deletions
doc/deploy-all-in-one-node.rst
+
1
−
1
View file @
42b34bb7
...
...
@@ -26,7 +26,7 @@ The guide assumes that you have build images using the following command.
::
tools/build.py -
n
172.22.2.81:4000
/kollaglue
--base ubuntu --type source --push
tools/build.py -
-registry
172.22.2.81:4000 --base ubuntu --type source --push
The IP, "172.22.2.81", is the host running private docker registry.
To deploy a private docker registry,
...
...
This diff is collapsed.
Click to expand it.
doc/image-building.rst
+
4
−
6
View file @
42b34bb7
...
...
@@ -56,14 +56,12 @@ want to push images to your dockerhub, change the namespace like:
$ tools/build.py -n yourusername --push
To push images to local registry, change the namespace, too. If the ip
of the machine running local registry is ``172.22.2.81`` and the port
which local registry listens to is ``4000``, use the following command
to push images to local registry.
To push images to local registry, use ``--registry`` flag like the
following command:
::
tools/build.py --
namespace
172.22.2.81:4000
/kollaglue
--push
tools/build.py --
registry
172.22.2.81:4000 --push
To trigger buid.py to pull images from local registry,
the Docker configuration needs to be modified. See
...
...
@@ -180,7 +178,7 @@ To build and push images to local registry, use the following command:
::
tools/build.py --
namespace
172.22.2.81:4000
/kollaglue
--push
tools/build.py --
registry
172.22.2.81:4000 --push
Kolla-ansible with Local Registry
+++++++++++++++++++++++++++++++++
...
...
This diff is collapsed.
Click to expand it.
etc/kolla/kolla-build.conf
+
2
−
0
View file @
42b34bb7
...
...
@@ -42,6 +42,8 @@
# Path to custome file to be addded at end of Dockerfiles for final images
#include_footer = /path/to/footer_file
# The registry host. The default registry host is Docker Hub.
#registry = None
# Provide location of sources for source install builds.
# Example:
...
...
This diff is collapsed.
Click to expand it.
kolla/cmd/build.py
+
10
−
2
View file @
42b34bb7
...
...
@@ -225,7 +225,8 @@ def merge_args_and_config(settings_from_config_file):
"
keep
"
:
False
,
"
push
"
:
False
,
"
threads
"
:
8
,
"
retries
"
:
3
"
retries
"
:
3
,
"
registry
"
:
None
}
defaults
.
update
(
settings_from_config_file
.
items
(
'
kolla-build
'
))
parser
.
set_defaults
(
**
defaults
)
...
...
@@ -285,6 +286,9 @@ def merge_args_and_config(settings_from_config_file):
parser
.
add_argument
(
'
--template-only
'
,
help
=
(
"
Don
'
t build images. Generate Dockerfile only
"
),
action
=
'
store_true
'
)
parser
.
add_argument
(
'
--registry
'
,
help
=
(
"
the docker registry host
"
),
type
=
str
)
return
vars
(
parser
.
parse_args
())
...
...
@@ -294,7 +298,11 @@ class KollaWorker(object):
self
.
base_dir
=
os
.
path
.
abspath
(
find_base_dir
())
LOG
.
debug
(
"
Kolla base directory:
"
+
self
.
base_dir
)
self
.
images_dir
=
os
.
path
.
join
(
self
.
base_dir
,
'
docker
'
)
self
.
namespace
=
config
[
'
namespace
'
]
self
.
registry
=
config
[
'
registry
'
]
if
self
.
registry
:
self
.
namespace
=
self
.
registry
+
'
/
'
+
config
[
'
namespace
'
]
else
:
self
.
namespace
=
config
[
'
namespace
'
]
self
.
base
=
config
[
'
base
'
]
self
.
base_tag
=
config
[
'
base_tag
'
]
self
.
install_type
=
config
[
'
install_type
'
]
...
...
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