Skip to content

Commit

Permalink
force podman-remote to use Dockerfile,
Browse files Browse the repository at this point in the history
because in case Containerfile exists as well, it will use that instead

* STONEBLD-1929

Signed-off-by: Robert Cerven <[email protected]>
  • Loading branch information
rcerven committed Nov 7, 2023
1 parent ed80d31 commit 8aa34fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions atomic_reactor/tasks/binary_container_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ def build_container(
f"--tag={dest_tag}",
"--no-cache", # make sure the build uses a clean environment
"--pull-always", # as above
# ensure that Dockerfile is always used even when Containerfile exists
"--file=Dockerfile",
]
if memory_limit:
# memory limit (format: <number>[<unit>], where unit = b, k, m or g)
Expand Down
1 change: 1 addition & 0 deletions tests/tasks/test_binary_container_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ def test_build_container(self, authfile, is_flatpak, x86_build_dir, memory_limit
f"--tag={X86_UNIQUE_IMAGE}",
"--no-cache",
"--pull-always",
"--file=Dockerfile",
]
if memory_limit:
options.append(f"--memory={memory_limit}")
Expand Down

0 comments on commit 8aa34fc

Please sign in to comment.