Add a Dockerfile for clang-proto-fuzzer
Details
Diff Detail
- Build Status
Buildable 9245 Build 9245: arc lint + arc unit
Event Timeline
You may want to add an ARG instruction to force docker to rerun the svn commands each time you invoke docker build. Otherwise it will reuse the cache since docker only looks at the RUN text, not it's result.
To get around that, you can add an ARG REVISION instruction before the first RUN command, and use $REVISION in your subsequent svn co commands. The ARG instruction, will invalidate the cache for the subsequent RUN instruction, since docker passes ARG as an environment variable and can't know how it's used.
Then you could invoke docker like this:
docker build --build-arg REV=$(svn info --show-item revision http://llvm.org/svn/llvm-project/llvm/trunk) .
I'd avoid such extra complexity, after all this is just an example.
One can force the full rebuild with --no-cache. It'll take just a bit more time since most of the time is consumed by the compiler builds.
BTW, my old svn (1.8.8, Ubuntu 14.04) does't have "info --show-item revision"
I'd avoid such extra complexity, after all this is just an example.
Understood... LGTM
BTW, my old svn (1.8.8, Ubuntu 14.04) does't have "info --show-item revision"
Guess my new macbook pro spoiled me...
What if the latest revision breaks the build?