Add support for building images

This commit is contained in:
Ben Firshman 2013-12-13 20:36:10 +00:00
commit 88b04aaa9c
3 changed files with 29 additions and 6 deletions

View file

@ -0,0 +1,2 @@
FROM ubuntu
CMD echo "success"

View file

@ -78,4 +78,14 @@ class NameTestCase(DockerClientTestCase):
db.stop()
web.stop()
def test_start_container_builds_images(self):
service = Service(
name='test',
client=self.client,
build='plum/tests/fixtures/simple-dockerfile',
)
container = service.start()
self.client.wait(container)
self.assertIn('success', self.client.logs(container))