summaryrefslogtreecommitdiff
path: root/test/e2e/build_test.go
diff options
context:
space:
mode:
authorcdoern <cbdoer23@g.holycross.edu>2022-03-15 12:13:41 -0400
committercdoern <cbdoer23@g.holycross.edu>2022-03-22 10:33:05 -0400
commit5e1e13c18c22e2cd43021cb647eda328324f6c96 (patch)
tree5b71e120fcefdde1e39e52735747ab09ee174cb4 /test/e2e/build_test.go
parente59f71d230cf5435dc569add90e22cc644e38647 (diff)
downloadpodman-5e1e13c18c22e2cd43021cb647eda328324f6c96.tar.gz
podman-5e1e13c18c22e2cd43021cb647eda328324f6c96.tar.bz2
podman-5e1e13c18c22e2cd43021cb647eda328324f6c96.zip
add contextDir to tar on remote
podman build fails on remote build when using a relative context directory. This is because the context dir was not being added to the tar, so when remote the compat build function would not be able to stat the contextDir. resolves #13293 Signed-off-by: cdoern <cbdoer23@g.holycross.edu>
Diffstat (limited to 'test/e2e/build_test.go')
-rw-r--r--test/e2e/build_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/e2e/build_test.go b/test/e2e/build_test.go
index c5903f037..096c98727 100644
--- a/test/e2e/build_test.go
+++ b/test/e2e/build_test.go
@@ -734,10 +734,11 @@ RUN ls /dev/test1`, ALPINE)
err = os.Mkdir("relative", 0755)
Expect(err).To(BeNil())
containerFilePath := filepath.Join("relative", "Containerfile")
- fmt.Println(containerFilePath)
+ err = os.Mkdir("relative/build-root", 0755)
+ Expect(err).To(BeNil())
err = ioutil.WriteFile(containerFilePath, []byte(containerFile), 0755)
Expect(err).To(BeNil())
- build := podmanTest.Podman([]string{"build", "-f", "./relative/Containerfile"})
+ build := podmanTest.Podman([]string{"build", "-f", "./relative/Containerfile", "./relative/build-root"})
build.WaitWithDefaultTimeout()
Expect(build).To(Exit(0))
err = os.RemoveAll("relative")