Lines Matching full:container
6 This module helps to deploy config files from host to container. It reads
25 source: config file in host to be copied to container.
26 target: config file's location inside container.
28 container. If it's set to false, the existing file inside container will
30 permission: Permission to set to the config file inside container.
34 /etc/resolv.conf inside container.
35 2. Copy all files in ssh to /root/.ssh in container.
48 shadow_config to container when AUTOTEST_DIR/containers/ssp_deploy_config is not
74 # container.
76 # Path to folder that contains autotest code inside container.
84 """Exception raised if any error occurs when setting up test container."""
88 """An object to deploy config to container.
91 ssp_deploy_shadow_config, and sets up the container accordingly.
93 1. Copy given config files to specified location inside container.
95 container.
96 3. Make sure the config files have proper permission inside container.
132 def __init__(self, container):
135 @param container: The container needs to deploy config.
138 self.container = container
149 self.tmp_append = os.path.join(self.container.rootfs, APPEND_FOLDER)
156 """Deploy a config before container is started.
158 Most configs can be deployed before the container is up. For configs
172 target = os.path.join(self.container.rootfs,
188 """Deploy a config after container is started.
190 For configs to be appended after the existing config files in container,
191 they must be copied to a temp location before container is up (deployed
192 in function _deploy_config_pre_start). After the container is up, calls
202 self.container.attach_run('cat \'%s\' >> \'%s\'' %
204 self.container.attach_run(
210 """Update the shadow config used in container with correct values.
215 container. If one chooses to use a shadow SSP deploy config file, the
219 properly in container yet, and produces noise in the log.
224 container. This allows the RPC to pass ACL check as if the call is
232 # container does not support master ssh connection yet.
233 self.container.attach_run(
245 self.container.attach_run('echo $\'\n[AUTOTEST_WEB]\nhost: %s\n\' >> %s'
253 self.container.attach_run('echo $\'\n[SERVER]\nhostname: %s\n\' >> %s' %
260 # inside container can make RPC through this IP.
261 self.container.attach_run(
269 """Modify ssh config for it to work inside container.
274 to work inside container.
279 self.container.attach_run('sed -i \'s/UseProxyIf=false//g\' \'%s\'' %
282 # ERROR in container before master ssh connection works. This is
290 self.container.attach_run(
294 # Inject ssh config for moblab to ssh to dut from container.
297 self.container.attach_run(
302 self.container.attach_run(
309 """Deploy configs before the container is started.
316 """Deploy configs after the container is started.