Skip to content

Commit

Permalink
Merge pull request #1219 from Xilinx/feature/no_cache
Browse files Browse the repository at this point in the history
Running docker build without cache
  • Loading branch information
auphelia authored Oct 24, 2024
2 parents dd0655b + f0aafa2 commit 45a4e4a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions run-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ SCRIPTPATH=$(dirname "$SCRIPT")
: ${FINN_SINGULARITY=""}
: ${FINN_SKIP_XRT_DOWNLOAD=""}
: ${FINN_XRT_PATH=""}
: ${FINN_DOCKER_NO_CACHE="0"}

DOCKER_INTERACTIVE=""

Expand Down Expand Up @@ -190,6 +191,10 @@ if [ -d "$FINN_XRT_PATH" ];then
export LOCAL_XRT=1
fi

if [ "$FINN_DOCKER_NO_CACHE" = "1" ]; then
FINN_DOCKER_BUILD_EXTRA+="--no-cache "
fi

# Build the FINN Docker image
if [ "$FINN_DOCKER_PREBUILT" = "0" ] && [ -z "$FINN_SINGULARITY" ]; then
# Need to ensure this is done within the finn/ root folder:
Expand Down

0 comments on commit 45a4e4a

Please sign in to comment.