On 2020/01/15 13:50:29, dan_faithful.be wrote:
On Jan 15, 2020, at 03:08, mailto:jonas.hahnf...@gmail.com wrote: > > Maybe I misunderstood your process; aren't you firing up a fresh > container for every build?
No, I leave the container running, open an interactive shell into it,
and use it
for a relatively long time. It is quite like how a VM would be used,
but the
container holds just the tools required for building, testing, and
debugging.
Tasks like source control and editing occur on the host.
> Just as a thought, then you > could run autogen.sh once on the host in the beginning (or have a
second
> container that is allowed to write, but only runs autoconf).
I couldn't run autoconf on the host, because autoconf is not installed
on the
host. I could define a second service with write access for running
autoconf.
But is the root of this problem write permission, or separate source
and build
directories? Allowing writing to my source tree is something I am
willing to
consider. Storing 4GB of build output in my source tree is something
I have
good reasons (mentioned earlier) to resist.
The first: I also have separate a build directory (even multiple for the same source directory if needed). You can just execute configure from a different directory, I also do this for most other software that I'm building. What's causing problems is that the configure (and only that) usually lives in the source directory. In fact, I think you can make the source directory read-only right after running autoconf, everything else should only touch the build directory. https://codereview.appspot.com/549350043/