podman-compose
podman-compose copied to clipboard
podman-compose does not propagate build exit codes
Describe the bug
podman-compose does not propagate exit statuses from podman build
To Reproduce
FROM docker.io/alpine:latest
RUN exit 1
services:
minimal:
build:
context: .
Output
$ podman build .
STEP 1/2: FROM docker.io/alpine:latest
STEP 2/2: RUN exit 5
Error: building at STEP "RUN exit 5": while running runtime: exit status 5
$echo $?
5
$ podman-compose build
podman-compose version: 1.0.6
['podman', '--version', '']
using podman version: 4.9.3
podman build -f ./Dockerfile -t podman_minimal .
STEP 1/2: FROM docker.io/alpine:latest
STEP 2/2: RUN exit 5
Error: building at STEP "RUN exit 5": while running runtime: exit status 5
exit code: 5
$ echo $?
0
Expected behavior podman-compose should propagate the exit status from the failing build setp, or at a bare minimum return a non-zero code for failed build.
Actual behavior Always return status 0.
Version
$ podman-compose version
podman-compose version: 1.0.6
['podman', '--version', '']
using podman version: 4.9.3
podman-compose version 1.0.6
podman --version
podman version 4.9.3
exit code: 0
Environment:
- OS: WSL