Class Docker.HeredocForm

java.lang.Object
org.openrewrite.docker.tree.Docker.HeredocForm
All Implemented Interfaces:
Docker, Docker.CommandForm, Docker.CopyAddForm, org.openrewrite.Tree
Enclosing interface:
Docker

public static class Docker.HeredocForm extends Object implements Docker.CommandForm, Docker.CopyAddForm
Unified heredoc form supporting both single and multiple heredocs.

Single heredoc example: RUN <<EOF\ncommands\nEOF Multi-heredoc example: RUN <<EOF1 cat >file1.sh &&\ <<EOF2 cat >file2.sh

Consists of a shell preamble (containing heredoc markers and optional shell commands) followed by ordered heredoc bodies. Also used for COPY/ADD heredoc form.

  • Constructor Details

    • HeredocForm

      public HeredocForm()
  • Method Details