Mathias De Maré
1ebe02c078
docker: pass proxy arguments to docker process
...
Building in Docker when behind a proxy requires passing the proxy variables.
Differential Revision: https://phab.mercurial-scm.org/D190
2017-07-27 13:44:15 +02:00
Mathias De Maré
04fc554bf2
buildrpm: move creation of RPM directories from dockerrpm
...
Handling the creation of the RPM directories in buildrpm
is more consistent and takes care of non-docker builds as well.
2016-01-07 06:44:37 +01:00
Mathias De Maré
efbe4fff46
dockerrpm: fix CentOS 5 RPMs (issue4977)
...
The older rpmbuild in CentOS 5 fails if some of the output directories
have not been created yet. This change results in creating those directories.
2016-01-04 21:21:59 +01:00
Augie Fackler
53739e0ce5
dockerlib: extract initcontainer() method
...
This helps contain all the logic around creating containers.
2015-05-06 10:45:51 -04:00
Augie Fackler
563404e413
dockerlib: start extracting common functions for setting up docker
...
I'm about to start interacting with docker for Debian packaging too,
so it's time to centralize this so that any bugfixes I figure out
apply to both codepaths.
2015-05-06 10:45:07 -04:00
Mads Kiilerich
e41b8f78e4
buildrpm: fix use of invalid $PLATFORM in mercurial.repo
2014-11-01 20:00:00 +01:00
Mads Kiilerich
0cfacaa1bd
dockerrpm: create a yum/dnf repo from the generated rpms
...
This gives "PPA" functionality where users easily can stay uptodate with latest
nightly build.
2014-08-31 13:41:09 +02:00
Mads Kiilerich
eff8053e22
docker: add CentOS 5
...
There is no official CentOS 5 docker template so we use one from saltstack.
2014-05-15 01:48:37 +02:00
Mads Kiilerich
13ebf84a6d
dockerrpm: prepare source outside docker and just run rpmbuild inside docker
...
Simplifies the rpm build process.
We will use platform specific rpmbuild directories and will not clean them and
will drop the explicit copy to build directory.
2014-05-30 14:14:33 +02:00
Mads Kiilerich
111ff86a5d
dockerrpm: run docker build process as the current user, not as root
...
Docker can be run by ordinary users if they are in the docker group. The build
process would however be run as a root user, only protected by the sandboxing.
That caused problems with the shared directory where rpmbuild would be picky
about building from sources owned by less privileged users and producing files
owned by root.
Instead, add a build user with the right uid/gid to the image and run the
docker process as that user.
2014-05-30 14:14:33 +02:00
Mads Kiilerich
907b2db860
dockerrpm: better handling of specification of docker name
2014-05-30 14:14:33 +02:00
Mads Kiilerich
269cde03e7
dockerrpm: check that docker is running correctly before building
2014-05-30 14:14:33 +02:00
Matt Mackall
1a7f325519
docker: check for docker.io first
2014-05-29 16:01:39 -07:00
Matt Mackall
362480f7d9
docker: update package target to packages/
2014-05-27 12:09:34 -07:00
Matt Mackall
dc3027aa51
build: initial support for in-tree autobuilding recipes
2014-05-07 17:58:13 -05:00