summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMartin André <martin.andre@kvhasia.com>2015-02-26 15:00:42 +0900
committerMartin André <martin.andre@kvhasia.com>2015-03-02 14:08:06 +0900
commit0764fd7dea3f56627bb42e285cfb818cce08229e (patch)
treeb31933605cef228bca79737cbefc94b79c5e2e8f /docs
parent5052e54f45998110ec10239bb715ff80d51042ab (diff)
downloadkolla-0764fd7dea3f56627bb42e285cfb818cce08229e.tar.gz
kolla-0764fd7dea3f56627bb42e285cfb818cce08229e.zip
Allow changing base image
By changing the PREFIX variable in the .buildconf one is now able to build docker images from different bases. For example, add the following line to your .buildconf file to build CentOS based images: PREFIX=centos-rdo- Default base image is Fedora. For now only RH family is supported. Additionally, changing the namespace either with the NAMESPACE variable in .buildconf or via --namespace commandline option now changes the source namespace as well from the default kollaglue one. Implements: blueprint multi-baseos Co-Authored-By: Steven Dake <stdake@cisco.com> Change-Id: I3964cd2292789ea883a1f2d2738a5731a4fff49b
Diffstat (limited to 'docs')
-rw-r--r--docs/image-building.md38
1 files changed, 20 insertions, 18 deletions
diff --git a/docs/image-building.md b/docs/image-building.md
index e3deef781..5e8ad3cc1 100644
--- a/docs/image-building.md
+++ b/docs/image-building.md
@@ -37,21 +37,6 @@ commands:
$ docker run kollaglue/fedora-rdo-keystone:76a1602
-Or in your kubernetes configurations:
-
- "containers": [{
- "name": "keystone",
- "image": "kollaglue/fedora-rdo-keystone:76a1602",
- "ports": [
- {"containerPort": 5000},
- {"containerPort": 35357}
- ],
- "env": [
- {"name": "DB_ROOT_PASSWORD", "value": "password"},
- {"name": "KEYSTONE_ADMIN_TOKEN", "value": "ADMINTOKEN"}
- ]
- }]
-
## Building releases
To build into the `latest` tag, add `--release`:
@@ -62,14 +47,31 @@ Or to build and push:
$ ./build --push --release
+## Build all images at once
+
+The `build-all-docker-images` script in the tools directory is a wrapper for
+the `build-docker-image` that builds all images, as the name suggests, in the
+correct order. It responds to the same options as `build-docker-image` with the
+additional `--from` and `--to` options that allows building only images that
+have changed between the specified git revisions.
+
+For example, to build all images contained in docker directory and push new release:
+
+ $ tools/build-all-docker-images --release --push
+
+To build only images modified in test-branch along with their children:
+
+ $ tools/build-all-docker-images --from master --to test-branch
+
## Configuration
The `build-docker-image` script will look for a file named `.buildconf`
-in your current directory and in the top level of the repository. You
+in the image directory and in the top level of the repository. You
can use this to set defaults, such as:
NAMESPACE=larsks
+ PREFIX=centos-rdo-
-This setting would cause all images to be tagged into the `larsks/`
-namespace.
+This setting would cause images to be tagged into the `larsks/`
+namespace and use CentOS as base image instead of the default Fedora.