Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Make tests for each docker build in this repo #111

Open
LuisAlejandro opened this issue Apr 28, 2016 · 3 comments
Open

Make tests for each docker build in this repo #111

LuisAlejandro opened this issue Apr 28, 2016 · 3 comments

Comments

@LuisAlejandro
Copy link
Contributor

LuisAlejandro commented Apr 28, 2016

Based on #112, each image should be tested for a common set of tasks:

  • Is every software listed on the definition available and behaving correctly?
  • Can we make basic operations on the OS? (Install/uninstall software, restart services, uncompress archives, etc).
  • Is the performance OK?
@LuisAlejandro
Copy link
Contributor Author

I've been implementing this feature on my docker images using rspec and serverspec (ruby) because its dead simple.

Here you have some resources to start:

@moylop260
Copy link
Contributor

Thank you
I'll review it the next week

@LuisAlejandro
Copy link
Contributor Author

I've implemented this on my own images, you can check out my test script for a debian image here:
https://github.com/LuisAlejandro/dockershelf/blob/develop/debian/test-image.rb

And how to run it here:
https://github.com/LuisAlejandro/dockershelf/blob/develop/test-image.sh#L43

And here:
https://github.com/LuisAlejandro/dockershelf/blob/develop/.travis.yml#L53

I've also made a test script for python images, but it's not complete yet:
https://github.com/LuisAlejandro/dockershelf/blob/develop/python/test-image.rb

Greetings!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants