+LIBVIRT_PATH = '/srv/cci/libvirt-xml'
Pls mount '/srv/cci', use assist-cci as the container dir.
Got it!
Thanks, RenWen
Thanks, Xueliang
+docker_rm 'libvirt-helper'
+cmd = %w[
- docker run
- --name libvirt-helper
- --restart=always
- -d
+] + env + %W[
- -e LIBVIRT_PATH=#{LIBVIRT_PATH}
- -e LIBVIRT_HELPER_PORT=#{LIBVIRT_HELPER_PORT}
- -e LKP_SRC=#{DEFAULT_LKP}
- -e CCI_SRC=#{DEFAULT_CCI}
- -v #{ENV['LKP_SRC']}:#{DEFAULT_LKP}
- -v #{ENV['CCI_SRC']}:#{DEFAULT_CCI}
- -v #{DEFAULT_CONFIG_DIR}:#{DEFAULT_CONFIG_DIR}:ro
- -p #{LIBVIRT_HELPER_PORT}:#{LIBVIRT_HELPER_PORT}
- -v /etc/localtime:/etc/localtime:ro
- -v #{LIBVIRT_PATH}:#{LIBVIRT_PATH}
- -w #{DEFAULT_CCI}/container/libvirt-helper/
- libvirt-helper
+]
+cmd += ['sh', '-c', 'umask 002 && ruby ./libvirt_app.rb']
+system(*cmd)
2.23.0