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

tests: add basic test for docker #2421

Merged
merged 5 commits into from Feb 14, 2017

Conversation

mvo5
Copy link
Contributor

@mvo5 mvo5 commented Dec 6, 2016

As sugested on the malinlist. Limited to classic currently but we want to expand to core once its fully working there.

@mvo5 mvo5 force-pushed the feature/autopkgtest-for-docker branch 2 times, most recently from def4d67 to aeabc2f Compare December 6, 2016 18:01
@mvo5 mvo5 force-pushed the feature/autopkgtest-for-docker branch from aeabc2f to 8537058 Compare December 6, 2016 18:28
@mvo5
Copy link
Contributor Author

mvo5 commented Dec 6, 2016

Loic told me that we need extra kernel modules for this to work on linode. So probably apt install linux-image-extra-virtual.

@mvo5
Copy link
Contributor Author

mvo5 commented Feb 10, 2017

I just re-tested this. Docker needs the aufs kernel module which is not available in our default virtual kernels it seems. This is why we need to install the linux-image-extra-virtual bits. When I did that manually (via spread -debug) and installed the right kernel and manually loaded the kernel module it worked for me.

Copy link
Collaborator

@zyga zyga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, posted a question about running this on core. Even if we don't want to / cannot do that now it'd be nice to describe this in the test.

@@ -0,0 +1,20 @@
summary: Check that the docker snap works

systems: [ubuntu-16.04-64]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also test this on core?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes!

@mvo5
Copy link
Contributor Author

mvo5 commented Feb 13, 2017

This seems to be ok now:

$ spread -v -debug linode:ubuntu-16.04-64:tests/main/docker
2017/02/13 21:26:28 Preparing linode:ubuntu-16.04-64:tests/main/...
2017/02/13 21:27:08 Preparing linode:ubuntu-16.04-64:tests/main/docker...
2017/02/13 21:27:47 Executing linode:ubuntu-16.04-64:tests/main/docker (1/1)...
2017/02/13 21:27:50 Restoring linode:ubuntu-16.04-64:tests/main/docker...
2017/02/13 21:27:52 Restoring linode:ubuntu-16.04-64:tests/main/...
2017/02/13 21:27:57 Restoring project on linode:ubuntu-16.04-64...
2017/02/13 21:27:58 Discarding linode:ubuntu-16.04-64 (Spread-B)...
2017/02/13 21:27:58 Removing configuration from linode:ubuntu-16.04-64 (Spread-B)...
2017/02/13 21:27:59 Removing disks from linode:ubuntu-16.04-64 (Spread-B)...
2017/02/13 21:28:00 Successful tasks: 1
2017/02/13 21:28:00 Aborted tasks: 0

Would be nice of course if we could run it without manual: true

@niemeyer niemeyer merged commit c6abf3b into snapcore:master Feb 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants