aaron-wolmutt commented on issue #54894:
URL: https://github.com/apache/airflow/issues/54894#issuecomment-3673342426

   I can get the image builds to start with podman outside of breeze. Looks 
like it is possible to build the images with
   
   ```bash
   # run podmans buldkit container
   podman run -d --name buildkitd --privileged \
        docker.io/moby/buildkit:latest
   ```
   and
   ```bash
   buildctl --addr=podman-container://buildkitd build \
      --frontend dockerfile.v0 \
      --local context=. \
      --local dockerfile=. \
      --export-cache type=inline \
      --output type=docker,name=mynewimage | podman load
   ```
   Or for the ci image build
   
   ```bash
   buildctl build \
     --frontend=dockerfile.v0 \
     --local context=. \
     --local dockerfile=. \
     --opt filename=Dockerfile.ci \
     --opt target=main \
     --opt platform=linux/amd64 \
     --output type=docker,name=example:latest \
     --progress=plain | podman load
   
   ```
   So would we want to add the podman buildkit image build to breeze? I noticed 
that buildkit detection is already in breeze.  
   
   ```python
   # dev/breeze/src/airflow_breeze/utils/run_utils.py
   
   def check_if_buildx_plugin_installed() -> bool:
       """
       Checks if buildx plugin is locally available.
   
       :return True if the buildx plugin is installed.
       """
       check_buildx = ["docker", "buildx", "version"]
       docker_buildx_version_result = run_command(
           check_buildx,
           no_output_dump_on_exception=True,
           capture_output=True,
           text=True,
           check=False,
       )
       if docker_buildx_version_result.returncode == 0:
           return True
       return False
   
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to