Description
Dockerfile parser, pretty-printer and embedded DSL.
Description
All functions for parsing and pretty-printing Dockerfiles are exported through Language.Docker
. For more fine-grained operations look for specific modules that implement a certain functionality. See the GitHub project for the source-code and examples.
README.md
haskell-language-docker
Dockerfile parser, pretty-printer and embedded DSL
Provides de ability to parse docker files, a pretty-printer and EDSL for writting Dockerfiles in Haskell.
Parsing files
import Language.Docker
main = do
ef <- parseFile "./Dockerfile"
print ef
Parsing strings
import Language.Docker
main = do
c <- readFile "./Dockerfile"
print (parseString c)
Create Dockerfiles
Use the dockerfile-creator package.