On Mon, Jan 25, 2021 at 05:58:46PM +0800, Xiao Shenwei wrote:
+require 'set' +require_relative '../defconfig.rb'
+names = Set.new %w[
- LIFECYCLE_PORT
+]
+defaults = relevant_defaults(names) +env = docker_env(defaults)
+DEFAULT_CCI = '/c/cci' +DEFAULT_LKP = '/c/lkp-tests' +LIFECYCLE_PORT = defaults['LIFECYCLE_PORT'] || '11311' +docker_rm "lifecycle-#{LIFECYCLE_PORT}"
+cmd = %W[
- docker run
- --restart=always
- --name lifecycle-#{LIFECYCLE_PORT}
- -d
- -u 1090:1090
- -p #{LIFECYCLE_PORT}:#{LIFECYCLE_PORT}
+] + env + %W[
- -e CCI_SRC=#{DEFAULT_LKP}
what's mean DEFAULT_LKP and why named CCI_SRC
It's the mount dest in container.
Thanks, Xueliang
Thanks, Shenwei
- -v /etc/localtime:/etc/localtime:ro
- lifecycle-#{LIFECYCLE_PORT}
+]
+cmd += ['sh', '-c', 'umask 002 && ./lifecycle']
+system(*cmd) diff --git a/container/lifecycle/start-depends b/container/lifecycle/start-depends new file mode 100755 index 0000000..8357fca --- /dev/null +++ b/container/lifecycle/start-depends @@ -0,0 +1 @@
+es
2.23.0