david942j/seccomp-tools

Building from source...

theKidOfArcrania opened this issue · 4 comments

How to build seccomp-tools from source? Are there any steps to do or what not? (sorry I don't do much ruby dev so I don't really know right tools to use to build it)

I recommend to use rbenv to have user-wide Ruby environment. (You can use system-wide Ruby but you need to add sudo prefix before some commands)

Setup

  • Install bundler
    • $ gem install bundler
  • Clone the source
    • $ git clone https://github.com/david942j/seccomp-tools && cd seccomp-tools
  • Install dependencies
    • $ bundle install

Development

For building and testing:

  • $ bundle exec rake

The rake command will do things defined in Rakefile,
which will generate README.md, run rubocop, compile extension (ptrace.so), and run tests.

If you want to, for example, run rubocop and tests only, use:

  • $ bundle exec rake rubocop spec

I will add these tips in README.md as well

README.md is updated 93ed95f

hi I tried all the commands, but I still don't know where the executable is. Where should I find it?

You can do bundle exec rake install then you can execute seccomp-tools which is built from source.