0.0
Low commit activity in last 3 years
No release in over a year
A Dockerfile parser implemented in ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 13.0
~> 3.0
~> 2.0

Runtime

>= 0
 Project Readme

DockerfileRB

The intent of this gem is to use a PEG (citrus) to parse a Dockerfile into a hash of Ruby objects.

Installation

Add this line to your application's Gemfile:

gem 'dockerfile-rb'

And then execute:

$ bundle

Or install it yourself as:

$ gem install dockerfile-rb

Usage

Example usage:

require 'dockerfile-rb'

dockerfile = DockerfileRB.parse(File.read('/path/to/Dockerfile'))
puts dockerfile.inspect

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/gscho/dockerfile-rb.

License

The gem is available as open source under the terms of the MIT License.