mirror of
https://github.com/containers/podman-compose.git
synced 2025-07-20 13:52:19 +02:00
Current error message does not provide the exact path where the Dockerfile is being searched. This commit distinguishes two types of errors when Dockerfile is not found in build context: - when the context does not have provided custom-named Dockerfile, the path in the error message is absolute: "OSError: Dockerfile not found in .../podman-compose/tests/integration/build_fail/context_no_file/custom-named-Dockerfile" - when the context does not have any Dockerfile, the path in the error message is: "OSError: Dockerfile not found in .../podman-compose/tests/integration/build_fail/context_no_file" Only this error message was used before the fix. Signed-off-by: Monika Kairaityte <monika@kibit.lt> Co-authored-by: Siteshwar Vashisht <svashisht@redhat.com>
15 lines
312 B
YAML
15 lines
312 B
YAML
version: "3"
|
|
services:
|
|
test:
|
|
build: ./context
|
|
image: build-fail-img
|
|
test_no_dockerfile:
|
|
build:
|
|
context: ./context_no_file
|
|
image: busybox
|
|
test_no_custom_dockerfile:
|
|
build:
|
|
context: ./context_no_file
|
|
dockerfile: Dockerfile-alt
|
|
image: busybox
|