Unverified Commit e30719ad authored by boklm's avatar boklm
Browse files

Add docker_image_prefix option to rbm.local.conf

parent 8c36b34c
......@@ -169,6 +169,18 @@ There will be a script to clean old build files and containers that are
no longer used, but it has not been added yet.
Multiple build directories on the same host
-------------------------------------------
You can do multiple builds of Tor Browser in different directories on
the same host. However the docker images namespace is global, so you
may have some conflicts with the same image names used by the
different builds. By default, the docker images are prefixed with
tor-browser_$USER. You can change this prefix by defining the
docker_image_prefix option in rbm.local.conf, using a different prefix
for each of your build directories.
Common Build Errors
-------------------
......
# vim: filetype=yaml sw=2
filename: '[% sha256(c("pre")).substr(0, 12) %]'
remote_docker: 1
docker_image_prefix: '[% GET c("var/project_name") ? c("var/project_name") : "rbm-build" %]_[% GET ENV.RBM_BUILDNAME ? ENV.RBM_BUILDNAME : ENV.USER ? ENV.USER : c("uid") %]'
docker_save_image: '[% c("docker_image_prefix") %]:[% c("filename") %]'
pkg_type: build
......
......@@ -155,6 +155,7 @@ targets:
docker_image: '[% pc("docker-image", "docker_save_image") %]'
docker_image_prefix: '[% GET c("var/project_name") ? c("var/project_name") : "rbm-build" %]_[% GET ENV.RBM_BUILDNAME ? ENV.RBM_BUILDNAME : ENV.USER ? ENV.USER : c("uid") %]'
# change the default gpg_wrapper to allow git tag signed using an
# expired key.
......
......@@ -16,6 +16,12 @@
### this.
#debug: 0
### If you are doing multiple builds in different directories on the
### same host, you should define docker_image_prefix with a different
### value for each build directory, so that the different builds don't
### use the same docker image names.
#docker_image_prefix: tor-browser_XXXXX
var:
local_conf: 1
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment