Package org.openrewrite.docker.tree
Interface Docker
- All Superinterfaces:
org.openrewrite.Tree
- All Known Subinterfaces:
Docker.ArgumentContent,Docker.CommandForm,Docker.CopyAddForm,Docker.Instruction
- All Known Implementing Classes:
Docker.Add,Docker.Arg,Docker.Argument,Docker.Cmd,Docker.Copy,Docker.CopyShellForm,Docker.Entrypoint,Docker.Env,Docker.EnvironmentVariable,Docker.ExecForm,Docker.Expose,Docker.File,Docker.Flag,Docker.From,Docker.Healthcheck,Docker.HeredocBody,Docker.HeredocForm,Docker.Label,Docker.Literal,Docker.Maintainer,Docker.Onbuild,Docker.Port,Docker.Run,Docker.Shell,Docker.ShellForm,Docker.Stage,Docker.Stopsignal,Docker.User,Docker.Volume,Docker.Workdir
public interface Docker
extends org.openrewrite.Tree
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classADD instruction - adds files from source to destination (can extract archives and fetch URLs)static classARG instruction - defines a build argumentstatic classAn argument which can be plain text, quoted string, or environment variablestatic interfaceContent within an argument (text, quoted string, or variable reference)static classCMD instruction - provides defaults for executing containerstatic interfaceBase for command forms (used by RUN, CMD, ENTRYPOINT)static classCOPY instruction - copies files from source to destinationstatic interfaceBase for COPY/ADD forms (shell form, exec form, or heredoc)static classShell form for COPY/ADD instructions: sources followed by destination.static classENTRYPOINT instruction - configures container to run as executablestatic classENV instruction - sets environment variablesstatic classEnvironment variable reference like $VAR or ${VAR}static classExec form: CMD ["executable", "param1", "param2"] Also used for COPY/ADD JSON array form.static classEXPOSE instruction - documents ports that the container listens onstatic classRoot node representing a complete Dockerfile or Containerfilestatic classA flag like --platform=linux/amd64static classFROM instruction - sets the base imagestatic classHEALTHCHECK instruction - tells Docker how to test container healthstatic classRepresents a single heredoc body within a heredoc command.static classUnified heredoc form supporting both single and multiple heredocs.static interfaceBase interface for all Dockerfile instructionsstatic classLABEL instruction - adds metadata to an imagestatic classA literal text value, either plain (unquoted) or quoted (single/double quotes).static classMAINTAINER instruction - sets the author field (deprecated but still supported)static classONBUILD instruction - prefixes another instruction to be executed laterstatic classA port specification in an EXPOSE instruction.static classRUN instruction - executes commandsstatic classSHELL instruction - sets the default shellstatic classShell form: CMD command param1 param2static classA build stage in a multi-stage Dockerfile.static classSTOPSIGNAL instruction - sets the signal to stop the containerstatic classUSER instruction - sets the user and optionally groupstatic classVOLUME instruction - creates a mount pointstatic classWORKDIR instruction - sets the working directory -
Method Summary
Modifier and TypeMethodDescriptiondefault <R extends org.openrewrite.Tree,P>
Raccept(org.openrewrite.TreeVisitor<R, P> v, P p) default <P> @Nullable DockeracceptDocker(DockerVisitor<P> v, P p) default <P> booleanisAcceptable(org.openrewrite.TreeVisitor<?, P> v, P p) <D extends Docker>
DwithPrefix(Space prefix) Methods inherited from interface org.openrewrite.Tree
cast, getId, getMarkers, isScope, print, print, print, printer, printTrimmed, printTrimmed, printTrimmed, withId, withMarkers
-
Method Details
-
accept
default <R extends org.openrewrite.Tree,P> R accept(org.openrewrite.TreeVisitor<R, P> v, P p) - Specified by:
acceptin interfaceorg.openrewrite.Tree
-
acceptDocker
-
isAcceptable
default <P> boolean isAcceptable(org.openrewrite.TreeVisitor<?, P> v, P p) - Specified by:
isAcceptablein interfaceorg.openrewrite.Tree
-
getPrefix
Space getPrefix() -
withPrefix
-