Vauxoo / docker-odoo-image

Base docker image for instances
GNU General Public License v2.0
18 stars 28 forks source link

Make tests for each docker build in this repo #111

Open LuisAlejandro opened 8 years ago

LuisAlejandro commented 8 years ago

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

LuisAlejandro commented 7 years ago

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 commented 7 years ago

Thank you I'll review it the next week

LuisAlejandro commented 7 years ago

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!