diff options
author | baude <bbaude@redhat.com> | 2018-02-10 11:57:05 -0600 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-02-11 10:21:46 +0000 |
commit | d26266659d8649b36b91e8f8f78f8073007554ac (patch) | |
tree | 68f943994c26a639f23ba13fa7e024bbe204f41d /test/e2e/libpod_suite_test.go | |
parent | 773aa61f6622f52696434d883bb82c7d25125fd8 (diff) | |
download | podman-d26266659d8649b36b91e8f8f78f8073007554ac.tar.gz podman-d26266659d8649b36b91e8f8f78f8073007554ac.tar.bz2 podman-d26266659d8649b36b91e8f8f78f8073007554ac.zip |
Honor ENTRYPOINT in image
When an image has an ENTRYPOINT defined, we should be honoring it. The
problem is described in issue #321.
Also, added buildah binary to test runtimes for testing entrypoint and
will also allow us to test podman build as well.
Signed-off-by: baude <bbaude@redhat.com>
Closes: #322
Approved by: rhatdan
Diffstat (limited to 'test/e2e/libpod_suite_test.go')
-rw-r--r-- | test/e2e/libpod_suite_test.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/e2e/libpod_suite_test.go b/test/e2e/libpod_suite_test.go index b8e650e30..afe91134e 100644 --- a/test/e2e/libpod_suite_test.go +++ b/test/e2e/libpod_suite_test.go @@ -449,3 +449,14 @@ func (p *PodmanTest) GetContainerStatus() string { session.WaitWithDefaultTimeout() return session.OutputToString() } + +// BuildImage uses podman build and buildah to build an image +// called imageName based on a string dockerfile +func (p *PodmanTest) BuildImage(dockerfile, imageName string) { + dockerfilePath := filepath.Join(p.TempDir, "Dockerfile") + err := ioutil.WriteFile(dockerfilePath, []byte(dockerfile), 0755) + Expect(err).To(BeNil()) + session := p.Podman([]string{"build", "-t", imageName, "--file", dockerfilePath, p.TempDir}) + session.Wait(120) + Expect(session.ExitCode()).To(Equal(0)) +} |