Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try Docker as Beaker provider #8

Open
dfarrell07 opened this issue Jan 16, 2015 · 4 comments
Open

Try Docker as Beaker provider #8

dfarrell07 opened this issue Jan 16, 2015 · 4 comments

Comments

@dfarrell07
Copy link
Owner

Most people seem to use Vagrant as the provider Beaker uses for standing up test VMs. I have that setup working well, but it's quite slow. Docker would allow caching of unchanged steps, dramatically speeding up the process.

This is a long-term TODO.

@dfarrell07
Copy link
Owner Author

Using the Beaker workflow described in the numbered points here dramatically speeds up testing, making this less critical.

@dfarrell07
Copy link
Owner Author

Vagrant Beaker tests have been historically unstable and are currently quite broken on my system. It's also not easy/possible to run VM-based tests on ODL'c CI VMs (nested virt issues), so moving containers is desirable for that future use-case. For both of these reasons, I'm bumping the prio of this TODO and am actively working on it.

@dfarrell07 dfarrell07 self-assigned this Dec 1, 2015
@dfarrell07
Copy link
Owner Author

Commit 3aa0ccf added Docker-based Beaker tests for CentOS 7. They pass atm.

@dfarrell07
Copy link
Owner Author

Working on a Fedora 23 Docker-based Beaker test.

Using the official fedora:23 box, which at the moment backs up to fedora-23-20160104.

The box starts, Puppet installs and the Beaker tests start. Once we try to puppet module install puppetlabs-stdlib, the test fails with

Notice: Preparing to install into /etc/puppet/modules ...
    Notice: Downloading from https://forgeapi.puppetlabs.com ...
    Error: Could not extract contents of module archive: Execution of 'find . -type d -exec chmod 755 {} +' returned 127: sh: find: command not found
    Error: Try 'puppet help module install' for usage

So find isn't installed in the F23 container, which makes sense for size but breaks Puppet's module install process.

This is my spec/acceptance/nodeset/fedora-23-docker.yml file

HOSTS:
  fedora-23-docker:
    roles:
      - master
    platform: el-7-x86_64
    image: fedora:23
    docker_cmd: '["/sbin/init"]'
    hypervisor: docker

CONFIG:
  log_level: verbose
  type: foss

@dfarrell07 dfarrell07 removed their assignment Dec 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant