add run_in_docker

This commit is contained in:
2025-09-09 11:41:59 +08:00
parent 434159b16b
commit aead975ce4
5 changed files with 48 additions and 4 deletions

5
run_in_docker.sh Executable file
View File

@@ -0,0 +1,5 @@
#! /usr/bin/env bash
# cnmon
image=text2video:v0.1
device_id=0
docker run -v `pwd`:/workspace -v /mnt:/mnt --device=/dev/cambricon_dev$device_id:/dev/cambricon_dev0 --device=/dev/cambricon_ctl:/dev/cambricon_ctl $image ./test.sh