Lines Matching full:container
7 container. It reads the settings from a setting file (ssp_deploy_config), and
32 source: config file in host to be copied to container.
33 target: config file's location inside container.
35 container. If it's set to false, the existing file inside container will
37 permission: Permission to set to the config file inside container.
48 /etc/resolv.conf inside container.
49 2. Copy all files in ssh to /root/.ssh in container.
53 source: a folder in host to be mounted in container.
54 target: the folder's location inside container.
55 mount: true to mount the source folder onto the target inside container.
57 readonly: true if the mounted folder inside container should be readonly.
69 host to path "/usr/local/autotest/results/shared" inside the container. The
70 folder can be written to inside container. If the source folder doesn't exist,
83 shadow_config to container when AUTOTEST_DIR/containers/ssp_deploy_config is not
109 # container.
120 """Exception raised if any error occurs when setting up test container."""
124 """An object to deploy config to container.
127 ssp_deploy_shadow_config, and sets up the container accordingly.
129 1. Copy given config files to specified location inside container.
131 container.
132 3. Make sure the config files have proper permission inside container.
205 def __init__(self, container, config_file=None): argument
208 @param container: The container needs to deploy config.
211 self.container = container
231 tmp_append = os.path.join(self.container.rootfs,
241 """Deploy a config before container is started.
243 Most configs can be deployed before the container is up. For configs
258 self.container.copy(deploy_config.source, target)
262 """Deploy a config after container is started.
264 For configs to be appended after the existing config files in container,
265 they must be copied to a temp location before container is up (deployed
266 in function _deploy_config_pre_start). After the container is up, calls
276 self.container.attach_run('cat \'%s\' >> \'%s\'' %
278 self.container.attach_run(
284 """Update the shadow config used in container with correct values.
289 container. If one chooses to use a shadow SSP deploy config file, the
293 properly in container yet, and produces noise in the log.
298 container. This allows the RPC to pass ACL check as if the call is
306 # container does not support master ssh connection yet.
307 self.container.attach_run(
319 self.container.attach_run('echo $\'\n[AUTOTEST_WEB]\nhost: %s\n\' >> %s'
327 self.container.attach_run('echo $\'\n[SERVER]\nhostname: %s\n\' >> %s' %
334 # inside container can make RPC through this IP.
335 self.container.attach_run(
343 """Modify ssh config for it to work inside container.
348 to work inside container.
353 self.container.attach_run('sed -i \'s/UseProxyIf=false//g\' \'%s\'' %
356 # ERROR in container before master ssh connection works. This is
364 self.container.attach_run(
368 # Inject ssh config for moblab to ssh to dut from container.
371 self.container.attach_run(
376 self.container.attach_run(
383 """Deploy configs before the container is started.
391 self.container.mount_dir(mount_config.source,
397 """Deploy configs after the container is started.