summaryrefslogtreecommitdiff
path: root/tools/build-docker-image
AgeCommit message (Collapse)AuthorFilesLines
2015-05-27Clean up the image functional testJeff Peeler1-1/+1
1. Move setup_docker.sh to tools directory 2. Make a setup_gate.sh that installs necessary packages including docker and starts docker. 3. Add logging output. 4. Add default test timeout of 2 hours. 5. Add user to the docker group before running test cases. 6. Run image build as dockerroot group. This patch has to be one commit to fix the gate in one go. Co-Authored-By: Steven Dake <stdake@cisco.com> Change-Id: I83f3cdb1dabf0dfface589c581cb22c155467acc (cherry picked from commit 78b27e3e6017ceda4e15c5b2c87516ec3750fd98)
2015-05-06Port to KiloSteven Dake1-1/+1
Use kilo upstream RPM packages Partially-implements: blueprint port-kilo Change-Id: Ia0b4db5dc8e40c01184871e77458dc718c3c46cd
2015-05-06Port to JunoSteven Dake1-1/+1
This represents the Juno release of the images. Partially-implements: blueprint port-kilo Change-Id: I2837ec25a2aa093b7fff7519f3ed608ec93736bf
2015-05-05Initial support for taggable dependenciesMartin André1-3/+16
Introduce a new --no-use-released-parent option to `build-docker-image` that allows specifying whether the parent image uses the same tag as the one that's currently build or the release tag. Default is to use the release tag for parent image, however `build-all-docker-images` script forces it to be the current tag. Change to Dockerfile is coming next. Change-Id: Ief11c9abb722c181ca85f38ee11800dbf4332a5f
2015-04-13Changes Default Image PrefixDaneyon Hansen1-1/+1
Previously, Fedora was set as the default image prefix. Since our reference architecture focuses on CentOS, the default image prefix has been changed accordingly. Change-Id: I794ac1aa035d793204fa315752ae8188ce872a3e
2015-03-06Merge "Allow changing base image"Jenkins1-0/+4
2015-03-02Allow changing base imageMartin André1-0/+4
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
2015-02-27Have build scripts work in copies of kollaMartin André1-1/+1
Make the build scripts work in copies of Kolla so that developers can continue working while a build is is progress, which can be very long in the case of build-all-docker-images. Change-Id: I1b5d9b59ed34dfa622a42495e07d9a1d2ecde86e
2015-02-16Allow symlinks in the container buildSteven Dake1-1/+5
This patch permits symlinks in the docker build. Normally docker does not permit symlinked files in the build context sent to the docker server. To work around this problem, a secure directory is created in /tmp and the container contents are copied to that directory. Any symlinks are turned into their non-symlinked equivalents. Change-Id: I38cd5aeed4c73b90449354a0979fc6ddf7891ccb Implements-blueprint: linked-build
2015-01-06Merge "Make build script respond to `-h` option"Jenkins1-3/+3
2015-01-05Make build script respond to `-h` optionMartin André1-3/+3
It is usually considered good practice for a script to respond to both short style `-h` and long style `--help` options to display help message. This commits adds support for short style `-h` option. Change-Id: I8426b5ec136d08b3a476beea3cb983089e08c401
2015-01-05Set higher precedence for .buildconf file in image directoryMartin André1-1/+1
Source .buildconf file in $IMGDIR last in order to prevent silently overloading configuration by the less specific $TOPDIR/.buildconf. Change-Id: Ia38101b6d4743b454dc2c8ba48d3b55af47ed53b
2014-12-04Allow building docker image from anywhereMartin André1-3/+4
Record the image directory path to a variable and use it instead of the current directory to allow the build script to work independently of the location. Closes-Bug: 1398648 Change-Id: I84c52e41e43af10998f8e9267ccc059eca716c1c
2014-10-05fix issues with build-docker-imageLars Kellogg-Stedman1-4/+14
- fix typo in --namespace option build-docker-image had a missing '$' in the code that handled the --namespace option. - force builds to kollaglue namespace with 'latest' tag to use the --release flag - build IMAGE after config and options processing to permit overriding PREFIX in .buildconf Change-Id: Icf70b33080ef19643f133f2b6f60087c524bd4fb
2014-10-04introduce a new build mechanismLars Kellogg-Stedman1-0/+94
This patch replaces the collection of individual "build" scripts with a single script (tools/build-docker-image), made available as "build" inside each image directory. The build-docker-image script will, by default, build images tagged with the current commit id in order to prevent developers from accidentally stepping on each other or on release images. Documentation in docs/image-building.md describes the script in more detail. Change-Id: I444d5c2256a85223f8750a0904cb4b07f18ab67f