Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Podman-compose build doesn't work with Containerfile after v1.1.0 #1089

Open
omaxx opened this issue Dec 21, 2024 · 0 comments
Open

Podman-compose build doesn't work with Containerfile after v1.1.0 #1089

omaxx opened this issue Dec 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@omaxx
Copy link

omaxx commented Dec 21, 2024

Describe the bug
As per #167 podman-compose build should works with Dockerfile as well as with Containerfile

version 1.0.6 works
versions 1.1.0 and 1.2.0 give error:
OSError: Dockerfile not found in

To Reproduce
compose.yaml:

services:
  web:
    build: ./web

file Containerfile in web folder.

Expected behavior
with version 1.0.6:

❯ podman-compose build
podman-compose version: 1.0.6
['podman', '--version', '']
using podman version: 5.3.1
podman build -f ./web/Containerfile -t devops_web ./web
STEP 1/10: FROM registry.access.redhat.com/ubi9/ubi:9.5

Actual behavior
with versions 1.1.0 and 1.2.0:

❯ podman-compose build
Traceback (most recent call last):
  File "/usr/local/bin/podman-compose", line 8, in <module>
    sys.exit(main())
             ~~~~^^
  File "/usr/local/Cellar/podman-compose/1.2.0/libexec/lib/python3.13/site-packages/podman_compose.py", line 3504, in main
    asyncio.run(async_main())
    ~~~~~~~~~~~^^^^^^^^^^^^^^
  File "/usr/local/Cellar/[email protected]/3.13.1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/asyncio/runners.py", line 194, in run
    return runner.run(main)
           ~~~~~~~~~~^^^^^^
  File "/usr/local/Cellar/[email protected]/3.13.1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/usr/local/Cellar/[email protected]/3.13.1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/asyncio/base_events.py", line 720, in run_until_complete
    return future.result()
           ~~~~~~~~~~~~~^^
  File "/usr/local/Cellar/podman-compose/1.2.0/libexec/lib/python3.13/site-packages/podman_compose.py", line 3500, in async_main
    await podman_compose.run()
  File "/usr/local/Cellar/podman-compose/1.2.0/libexec/lib/python3.13/site-packages/podman_compose.py", line 1743, in run
    retcode = await cmd(self, args)
              ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/Cellar/podman-compose/1.2.0/libexec/lib/python3.13/site-packages/podman_compose.py", line 2422, in compose_build
    s = await t
        ^^^^^^^
  File "/usr/local/Cellar/[email protected]/3.13.1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/asyncio/tasks.py", line 634, in _wait_for_one
    return f.result() if resolve else f
           ~~~~~~~~^^
  File "/usr/local/Cellar/podman-compose/1.2.0/libexec/lib/python3.13/site-packages/podman_compose.py", line 2373, in build_one
    raise OSError("Dockerfile not found in " + ctx)
OSError: Dockerfile not found in /Users/maxim/Projects/DevOps/web
@omaxx omaxx added the bug Something isn't working label Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant