For general contribution and community guidelines, please see the community repo.
- Fork the project
- Clone your fork
- Make local changes to your fork by editing files
- Commit your changes
- Push your local changes to the remote server
- Create new Pull Request
From here your pull request will be reviewed and once you've responded to all feedback it will be merged into the project. Congratulations, you're a contributor!
Create a sandbox environment in Docker using the ./dev
folder:
$ cd dev
dev $ ./start.sh
This will drop you into a bash shell in a container called cli
.
The sandbox also includes a Postgres container and Conjur server container. The environment is already setup to connect the CLI to the server:
- CONJUR_APPLIANCE_URL
http://conjur
- CONJUR_ACCOUNT
cucumber
To login to conjur, type the following and you'll be prompted for a password:
root@2b5f618dfdcb:/# conjur authn login admin
Please enter admin's password (it will not be echoed):
The required password is the API key at the end of the output from the
start.sh
script. It looks like this:
=============== LOGIN WITH THESE CREDENTIALS ===============
username: admin
api key : 9j113d35wag023rq7tnv201rsym1jg4pev1t1nb4419767ms1cnq00n
============================================================
At this point, you can use any CLI command you like.
To install dev packages, run bundle
from within the container:
root@2b5f618dfdcb:/# cd /usr/src/cli-ruby/
root@2b5f618dfdcb:/usr/src/cli-ruby# bundle
Then you can run the cucumber tests:
root@2b5f618dfdcb:/usr/src/cli-ruby# cucumber
...
To create a new release, follow the instructions in our general release guidelines here.
Note: this project documents the version in two places:
- The VERSION file
- In
lib/conjur/version.rb
Both version files must be updated when this project is preparing for a release.