+# This is a single-use container. +# The container will run if you run the 'submit' to submit jobs. +# After the command execute over, the container will been removed itself. +# Do not need to delete manually for it has been added option '--rm'. +date_suffix=$(date +%m%d-%H%M)
It's easy to conflict to users, better use random string
I add this is just to avoid users conflict. same to random string
+cmd=(
docker run
--rm
Can you listen the submit command and keep the container hang up always? Just like submit always be executed in the container.
the container just run if user submit jobs. no need to keep the container run all the time. I don't think user allowed a container always running in there service.
Thanks, Luan Shengde
Thanks, Xueliang
--name=submit-$USER-$data_suffix
-it
-v /etc/compass-ci:/etc/compass-ci:ro
-v $HOME/.config:/root/.config:ro
-v $HOME/.ssh:/root/.ssh:rw
submit
/root/lkp-tests/sbin/submit "$@"
+)
+"${cmd[@]}"
-- 2.23.0