@cryptotaxi247 / netdata-1 / commits / e91416dcf

netdata/packaging: [ci skip] Nit - pass container parameter

Pavlos Emm. Katsoulakis committed Jul 10, 2019 at 17:28 UTC e91416dcfad067486299dcf42dac59850e4d1ab4
3 files changed +3 -3
.travis/package_management/common.py
+1 -1
@@ -37,7 +37,7 @@ def run_command(container, command):
37 if command_result != 0:
38 raise Exception("Command failed with exit code %d" % command_result)
39
40 -def run_command_in_host(cmd):
40 +def run_command_in_host(container, cmd):
41 print("Issue command in host: %s" % str(cmd))
42
43 proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
.travis/package_management/configure_deb_lxc_environment.py
+1 -1
@@ -46,7 +46,7 @@ common.run_command(container, ["useradd", "-m", os.environ['BUILDER_NAME']])
46
47 # Fetch package dependencies for the build
48 print("2. Installing package dependencies within LXC container")
49 -common.install_common_dependendencies()
49 +common.install_common_dependendencies(container)
50
51 print ("3. Run install-required-packages scriptlet")
52 common.run_command(container, ["wget", "-T", "15", "-O", "/home/%s/.install-required-packages.sh" % (os.environ['BUILDER_NAME']), "https://raw.githubusercontent.com/netdata/netdata-demo-site/master/install-required-packages.sh"])
.travis/package_management/configure_rpm_lxc_environment.py
+1 -1
@@ -47,7 +47,7 @@ common.run_command(container, ["useradd", "-m", os.environ['BUILDER_NAME']])
47
48 # Fetch package dependencies for the build
49 print("2. Installing package dependencies within LXC container")
50 -common.install_common_dependendencies()
50 +common.install_common_dependendencies(container)
51
52 # Exceptional cases, not available everywhere
53 #