In other words, you want to move the control over the build containers
completely into the Bigtop build system. That would make sense, of course. The
damn effective user might be still an issue somewhat. If you're interested, I
did this dumb-ass workaround
https://github.com/c0s/dumb-ass-scripts/blob/master/run-with-eff-user.sh
for the effective user problem. It is ugly, but at least let go around the
permissions impedance.In gradle, you can use build properties (set with -P) which are way better than sysprops. In particular, they can be changed in the user environment via build.properties file. Another option is to use configurations: something along the lines of Maven profiles, only way better of course ;) Cheers, Cos On Thu, Dec 24, 2015 at 05:06PM, Roman Shaposhnik wrote: > On Wed, Dec 23, 2015 at 10:38 PM, Konstantin Boudnik <[email protected]> wrote: > > Actually, there's more into this. Mounting volumes from a host will always > > be > > a subject to disrepancies between host's user uid/gio and ones inside of the > > container. We still should go ahead at least with 2) and 3) in the short > > run. > > Let me look into this today. I think we may as well solve it once and for all. > In fact, looking at how our Jenkins job is setup I'm thinking that > perhaps having > a direct Docker-enabled entry point into our build process will be better than > keep remembering an exact incantation of Docker. > > So how about we implement a sysprop bigtop.build.env so that the following > will happen: > 1. with bigtop.build.env not set we get the current build process remains > the same > 2. with bigtop.build.env set to one of the build environment values that > we > recognize the Docker magic is transparently invoked > 3. with bigtop.build.env set to anything else Gradle prints the > list of build > environments and exists > > Thoughts? > > Thanks, > Roman. > > P.S. If it were Maven, I'd hook it up as a profile, but I guess with > Gradle sysprops > is all we get to switch things around, right?
signature.asc
Description: Digital signature
