1# Copyright 2015 The Chromium Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5"""This module provides some tools to interact with LXC containers, for example: 6 1. Download base container from given GS location, setup the base container. 7 2. Create a snapshot as test container from base container. 8 3. Mount a directory in drone to the test container. 9 4. Run a command in the container and return the output. 10 5. Cleanup, e.g., destroy the container. 11""" 12try: 13 from autotest_lib.site_utils.lxc.constants import * 14 from autotest_lib.site_utils.lxc.container import Container 15 from autotest_lib.site_utils.lxc.container import ContainerId 16 from autotest_lib.site_utils.lxc.container_bucket import ContainerBucket 17 from autotest_lib.site_utils.lxc.container_factory import ContainerFactory 18 from autotest_lib.site_utils.lxc.lxc import install_packages 19except ImportError: 20 from constants import * 21 from container import Container 22 from container import ContainerId 23 from container_bucket import ContainerBucket 24 from container_factory import ContainerFactory 25 from lxc import install_packages 26