[PATCH] D36635: Add a Dockerfile for clang-proto-fuzzer
don hinton via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 11 15:30:37 PDT 2017
hintonda added a comment.
You may want to add an ARG statement 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` declaration before the first RUN command, and use $REVISION in your subsequent `svn co` commands. The ARG declaration, will invalidate the cache for the subsequent RUN command, since docker passes ARG as an environment variable and can't know how it's used.
Then you could then invoke docker like this:
docker build --build-arg REV=$(svn info --show-item revision http://llvm.org/svn/llvm-project/llvm/trunk) .
https://reviews.llvm.org/D36635
More information about the cfe-commits
mailing list