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 """ 12 13 from base_image import BaseImage 14 from constants import * 15 from container import Container 16 from container import ContainerId 17 from container_bucket import ContainerBucket 18 from container_factory import ContainerFactory 19 from lxc import install_package 20 from lxc import install_packages 21 from lxc import install_python_package 22 from shared_host_dir import SharedHostDir 23 from zygote import Zygote 24