1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
# Installation
Before you get started, please make sure that you have the following:
- Ruby 2.0 or higher
- Mac OS, Linux, or other Unix-line operating system (Windows is not supported)
- Ability to install gems, e.g. with [rbenv](https://github.com/rbenv/rbenv) or [rvm](https://rvm.io/), or root privileges to install into the system Ruby
- Puppet agent for [Linux](https://docs.puppet.com/puppet/latest/reference/install_linux.html) or [Mac OS X](https://docs.puppet.com/puppet/latest/reference/install_osx.html), or installed as a gem - required if you are going to compile Puppet catalogs locally without querying a master
## Installing from rubygems.org
`octocatalog-diff` is published on [rubygems](https://rubygems.org/gems/octocatalog-diff).
On a standard system with internet access, installation may be as simple as typing:
```
gem install octocatalog-diff
```
Once the gem is installed, please proceed to [Configuration](/doc/configuration.md).
For general information on installing gems, see: [RubyGems Basics](http://guides.rubygems.org/rubygems-basics/#installing-gems).
## Installing from source
To install from source, you'll need a git client and internet access.
1. Clone the repository
```
git clone https://github.com/github/octocatalog-diff.git
```
1. Bootstrap the repository (this will install dependent gems in the project)
```
cd octocatalog-diff
./script/bootstrap
```
1. RECOMMENDED: Make sure the tests pass on your machine
```
rake
```
Note: If tests fail on your machine with a clean checkout of the master branch, we would definitely appreciate if you would report it. Please [open an issue](https://github.com/github/octocatalog-diff/issues/new) with the output and some information about your system (e.g. OS, ruby version, etc.) to let us know.
Once the code is downloaded and bootstrapped, please proceed to [Configuration](/doc/configuration.md).
## Running from an alternate branch
We have prepared specific instructions for running `octocatalog-diff` from a non-master branch, for testing changes that may be requested by the developers.
- [Running octocatalog-diff from a branch](/doc/dev/run-from-branch.md)
|