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

buildah: add heredoc support for RUN, COPY and ADD #5092

Merged
merged 2 commits into from Nov 17, 2023

Commits on Nov 17, 2023

  1. vendor: bump imagebuilder to v1.2.6-0.20231110114814-35a50d57f722

    Signed-off-by: Aditya R <arajan@redhat.com>
    flouthoc committed Nov 17, 2023
    Copy the full SHA
    69f52f8 View commit details
    Browse the repository at this point in the history
  2. buildah: add heredoc support for RUN, COPY and ADD

    Following PR is a attempt to add `Heredoc` support to buildah.
    
    Once this PR is merged buildah is supposed to honor heredoc syntax while
    processing containerfiles
    
    Expected syntax to work
    
    ```Dockerfile
    FROM docker.io/library/python:latest
    RUN <<EOF
    echo "Hello" >> /hello
    echo "World!" >> /hello
    EOF
    
    RUN python3 <<EOF
    with open("/hello", "w") as f:
        print("Hello", file=f)
        print("Something", file=f)
    EOF
    
    RUN ls -a
    RUN cat hello
    ```
    
    Signed-off-by: Aditya R <arajan@redhat.com>
    flouthoc committed Nov 17, 2023
    Copy the full SHA
    bbb55b8 View commit details
    Browse the repository at this point in the history