Skip to content

Commit 45a4e4a

Browse files
authored
Merge pull request Xilinx#1219 from Xilinx/feature/no_cache
Running docker build without cache
2 parents dd0655b + f0aafa2 commit 45a4e4a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

run-docker.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ SCRIPTPATH=$(dirname "$SCRIPT")
102102
: ${FINN_SINGULARITY=""}
103103
: ${FINN_SKIP_XRT_DOWNLOAD=""}
104104
: ${FINN_XRT_PATH=""}
105+
: ${FINN_DOCKER_NO_CACHE="0"}
105106

106107
DOCKER_INTERACTIVE=""
107108

@@ -190,6 +191,10 @@ if [ -d "$FINN_XRT_PATH" ];then
190191
export LOCAL_XRT=1
191192
fi
192193

194+
if [ "$FINN_DOCKER_NO_CACHE" = "1" ]; then
195+
FINN_DOCKER_BUILD_EXTRA+="--no-cache "
196+
fi
197+
193198
# Build the FINN Docker image
194199
if [ "$FINN_DOCKER_PREBUILT" = "0" ] && [ -z "$FINN_SINGULARITY" ]; then
195200
# Need to ensure this is done within the finn/ root folder:

0 commit comments

Comments
 (0)