give CACHE_PATH environment variable for forward compatibility with herokuish

herokuish defaults to /tmp/cache, so the build cache don't work without giving the CACHE_PATH environment variable. You can test it with buildstep herokuish branch. cc @progrium
This commit is contained in:
Vincent Fretin
2015-01-07 19:04:40 +01:00
parent 4abccf0119
commit 8e5c8c0832

2
dokku
View File

@@ -54,7 +54,7 @@ case "$1" in
docker commit $id $IMAGE > /dev/null
[[ -d $CACHE_DIR ]] || mkdir $CACHE_DIR
pluginhook pre-build $APP
id=$(docker run -d -v $CACHE_DIR:/cache $IMAGE /build/builder)
id=$(docker run -d -v $CACHE_DIR:/cache -e CACHE_PATH=/cache $IMAGE /build/builder)
docker attach $id
test "$(docker wait $id)" -eq 0
docker commit $id $IMAGE > /dev/null