+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
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