Add support for building images
This commit is contained in:
parent
1727586dd0
commit
88b04aaa9c
3 changed files with 29 additions and 6 deletions
2
plum/tests/fixtures/simple-dockerfile/Dockerfile
vendored
Normal file
2
plum/tests/fixtures/simple-dockerfile/Dockerfile
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
FROM ubuntu
|
||||
CMD echo "success"
|
||||
|
|
@ -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))
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue