edgeai-tidl-tools
edgeai-tidl-tools copied to clipboard
Dockerfile fails to run
Hello!
I'm currently having issues launching the dockerfile. The build went well (docker build -t edgeai-tidl-tools .
), but when trying to launch it I get:
$ sudo docker run edgeai-tidl-tools
/curr_entrypoint.sh: line 6: ./setup.sh: No such file or directory
CMake Error: The source directory "/examples" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
make: *** No targets specified and no makefile found. Stop.
/curr_entrypoint.sh: line 11: ./scripts/run_python_examples.sh: No such file or directory
python3: can't open file './scripts/gen_test_report.py': [Errno 2] No such file or directory
total 88
drwxr-xr-x 1 root root 4096 Oct 21 12:56 bin
drwxr-xr-x 2 root root 4096 Apr 24 2018 boot
drwxr-xr-x 2 root root 4096 Oct 21 13:00 build
-rwxr-xr-x 1 root root 244 Oct 21 12:58 curr_entrypoint.sh
drwxr-xr-x 5 root root 360 Oct 21 13:00 dev
-rwxr-xr-x 1 root root 40 Oct 21 12:58 dev_entrypoint.sh
-rwxrwxr-x 1 root root 244 Oct 21 12:48 entrypoint.sh
drwxr-xr-x 1 root root 4096 Oct 21 13:00 etc
drwxr-xr-x 2 root root 4096 Apr 24 2018 home
drwxr-xr-x 1 root root 4096 Oct 21 12:52 lib
drwxr-xr-x 2 root root 4096 Sep 13 19:28 lib64
drwxr-xr-x 2 root root 4096 Sep 13 19:27 media
drwxr-xr-x 2 root root 4096 Sep 13 19:27 mnt
drwxr-xr-x 2 root root 4096 Sep 13 19:27 opt
dr-xr-xr-x 497 root root 0 Oct 21 13:00 proc
-rw-r--r-- 1 root root 45 Oct 21 13:00 report.txt
-rw-rw-r-- 1 root root 670 Oct 21 12:48 requirements_pc.txt
drwx------ 1 root root 4096 Oct 21 12:56 root
drwxr-xr-x 5 root root 4096 Sep 13 19:28 run
drwxr-xr-x 2 root root 4096 Sep 13 19:28 sbin
drwxr-xr-x 2 root root 4096 Sep 13 19:27 srv
dr-xr-xr-x 13 root root 0 Oct 21 13:00 sys
drwxrwxrwt 1 root root 4096 Oct 21 12:58 tmp
drwxr-xr-x 1 root root 4096 Sep 13 19:27 usr
drwxr-xr-x 1 root root 4096 Sep 13 19:28 var
Any ideas? Thanks!
I've fixed it by adding this to the Dockerfile
:
COPY setup.sh /setup.sh
COPY examples /examples
COPY scripts /scripts
COPY test_data /test_data
I can make a PR if you want
I tried this above solution but my docker run gets stuck at:
-- Compiling for x86 with j7 config
-- Configuring incomplete, errors occurred!
See also "/build/CMakeFiles/CMakeOutput.log".
make: *** No targets specified and no makefile found. Stop.
X64 Architecture
Running 3 Models - ['cl-tfl-mobilenet_v1_1.0_224', 'ss-tfl-deeplabv3_mnv2_ade20k_float', 'od-tfl-ssd_mobilenet_v2_300_float']
Any suggestions on how to solve it?