Skip to content

Commit ae9e25c

Browse files
committed
[Docker] Derive FINN_DOCKER_TAG from the SCRIPTPATH
Previously the FINN_DOCKER_TAG has been derived by "git describe" in the current working directory, which fails if this is not the base of the FINN repository. As we know the SCRIPTPATH, which always resides in the base of the FINN repository, we can nagivate there, derive the docker tag and navigate back to the working directory.
1 parent 912cadf commit ae9e25c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

run-docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ SCRIPTPATH=$(dirname "$SCRIPT")
8888
: ${PLATFORM_REPO_PATHS="/opt/xilinx/platforms"}
8989
: ${XRT_DEB_VERSION="xrt_202220.2.14.354_22.04-amd64-xrt"}
9090
: ${FINN_HOST_BUILD_DIR="/tmp/$DOCKER_INST_NAME"}
91-
: ${FINN_DOCKER_TAG="xilinx/finn:$(git describe --always --tags --dirty).$XRT_DEB_VERSION"}
91+
: ${FINN_DOCKER_TAG="xilinx/finn:$(OLD_PWD=$(pwd); cd $SCRIPTPATH; git describe --always --tags --dirty; cd $OLD_PWD).$XRT_DEB_VERSION"}
9292
: ${FINN_DOCKER_PREBUILT="0"}
9393
: ${FINN_DOCKER_RUN_AS_ROOT="0"}
9494
: ${FINN_DOCKER_GPU="$(docker info | grep nvidia | wc -m)"}

0 commit comments

Comments
 (0)