1. 20 7月, 2016 2 次提交
    • A
      tests/docker/docker.py: support --include-executable · 504ca3c2
      Alex Bennée 提交于
      When passed the path to a binary we copy it and any linked libraries (if
      it is dynamically linked) into the docker build context. These can then
      be included by a dockerfile with the line:
      
        # Copy all of context into container
        ADD . /
      
      This is mainly intended for setting up foreign architecture docker
      images which use qemu-$arch to do cross-architecture linux-user
      execution. It also relies on the host and guest file-system following
      reasonable multi-arch layouts so the copied libraries don't clash with
      the guest ones.
      Signed-off-by: NAlex Bennée <alex.bennee@linaro.org>
      Message-id: 1468934445-32183-3-git-send-email-famz@redhat.com
      Signed-off-by: NFam Zheng <famz@redhat.com>
      504ca3c2
    • A
      tests/docker/docker.py: docker_dir outside build · a9f8d038
      Alex Bennée 提交于
      Instead of letting the build_image create the temporary working dir we
      move the creation to the build command. This is preparation for the
      later patches where additional files can be added to the build context
      before the build step is run.
      
      We also ensure we remove the build context after we are done (mkdtemp
      doesn't do this automatically for you).
      Signed-off-by: NAlex Bennée <alex.bennee@linaro.org>
      Reviewed-by: NFam Zheng <famz@redhat.com>
      Message-id: 1468934445-32183-2-git-send-email-famz@redhat.com
      Signed-off-by: NFam Zheng <famz@redhat.com>
      a9f8d038
  2. 01 6月, 2016 1 次提交
    • F
      tests: Add utilities for docker testing · 4485b04b
      Fam Zheng 提交于
      docker.py is added with a number of useful subcommands to manager docker
      images and instances for QEMU docker testing. Subcommands are:
      
      run: A wrapper of "docker run" (or "sudo -n docker run" if necessary),
      which takes care of killing and removing the running container at
      SIGINT.
      
      clean: Tear down all the containers including inactive ones that are
      started by docker_run.
      
      build: Compare an image from given dockerfile and rebuild it if they're
      different.
      Signed-off-by: NFam Zheng <famz@redhat.com>
      Message-id: 1464755128-32490-2-git-send-email-famz@redhat.com
      4485b04b