Skip to content

Commit 429a381

Browse files
akofinkxprazak2
authored andcommitted
Add a dockerfile for easy development (#9)
Signed-off-by: Andrew Kofink <akofink@redhat.com>
1 parent d0340dd commit 429a381

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# docker build . -t openscap_parser # build the container image
2+
# docker run -itv $PWD:/app:z openscap_parser rake # run tests
3+
# docker run -itv $PWD:/app:z openscap_parser pry --gem # console
4+
5+
FROM ruby:2.5
6+
7+
RUN gem update bundler
8+
9+
WORKDIR /app
10+
11+
COPY . ./
12+
13+
RUN bundle -j4
14+
15+
CMD bash

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,16 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
4141

4242
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
4343

44+
### With Docker
45+
46+
A Dockerfile is provided to allow a containerized development environment:
47+
48+
```
49+
docker build . -t openscap_parser # build the container image
50+
docker run -itv $PWD:/app:z openscap_parser rake # run tests
51+
docker run -itv $PWD:/app:z openscap_parser pry --gem # console
52+
```
53+
4454
## Contributing
4555

4656
Bug reports and pull requests are welcome on GitHub at https://github.com/elobato/openscap_parser. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.

0 commit comments

Comments
 (0)