Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadFromBytes ¶
ReadFromBytes reads commands from bytes. The bytes most often will be the Dockerfile string literal converted to bytes.
func ReadFromBytesWithOriginalSource ¶
ReadFromBytesWithOriginalSource reads commands from bytes and passes the original source to the build context. Use this method to automatically resolve the ADD / COPY dependencies.
Types ¶
type ReadResult ¶
type ReadResult interface { Commands() []interface{} ExcludePatterns() []string }
ReadResult contains the parsed commands and optionally .dockerignore patterns.
func ReadFromString ¶
func ReadFromString(input string, tempDirectory string) (ReadResult, error)
ReadFromString reads commands from string.
- literal Dockerfile content, ADD and COPY will not work
- http:// or http:// URL
- SPECIAL: git+http:// and git+https:// URL the format is: git+http(s)://host:port/path/to/repo.git:/path/to/Dockerfile[#<commit-hash | branch-name | tag-name>]
- ssh://, git:// or git+ssh:// URL
- absolute path to the local file
Click to show internal directories.
Click to hide internal directories.