-
Notifications
You must be signed in to change notification settings - Fork 998
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(build): Canonicalize build from source instructions. Add CLA ter…
…ms (#454)
- Loading branch information
Showing
4 changed files
with
24 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Thanks for your interest in contributing to Dragonfly™. By contributing to this project | ||
in any way form or media you grant Attos Technologies Ltd. and its affiliates a perpetual, worldwide, non-exclusive, free of charge, royalty-free, irrevocable license to use, | ||
modify, make available, reproduce, make derivatives, publicly display and perform, sublicense, sell, and distribute your contributions and any derivatives thereof as part of Dragonfly™. | ||
You represent that You are legally entitled to grant the above license. You acknowledge that Attos currently distributes Dragonfly™ under the BSL license, and agree that your contribution may be distributed under BSL as part of Dragonfly™. You also represent that your contributions are your original work and that neither the content contributed, nor making the contribution to Dragonfly™ violates any third party’ rights. If you are making this contribution while being engaged by any other company or entity, please make sure you have the necessary permissions required to do so. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,16 +4,24 @@ Thank you for your interest in Dragonfly DB. | |
|
||
Feel free to browse our [Discussions](https://github.com/dragonflydb/dragonfly/discussions) and [Issues](https://github.com/dragonflydb/dragonfly/issues) | ||
|
||
# Best Practices | ||
|
||
## Fork and Clone the DragonflyDB repository | ||
## Build from source | ||
|
||
See [building from source](./docs/build-from-source.md) | ||
|
||
Please note that in order to build development/debug version, | ||
it's better to alter the configure and build steps above with: | ||
|
||
```sh | ||
./helio/blaze.sh # without '-release' flag. Creates build-dbg subfolder | ||
cd build-dbg && ninja dragonfly | ||
``` | ||
# Fork https://github.com/dragonflydb/dragonfly | ||
|
||
# Clone from your fork | ||
[email protected]:<YOURUSERNAME>/dragonfly.git | ||
|
||
cd dragonfly | ||
## Before you make your changes | ||
|
||
```sh | ||
cd dragonfly # project root | ||
|
||
# IMPORTANT! Enable our pre-commit message hooks | ||
# This will ensure your commits match our formatting requirements | ||
|
@@ -24,27 +32,12 @@ This step must be done on each machine you wish to develop and contribute from t | |
|
||
Once you have done these things, we look forward to adding your contributions and improvements to the Dragonfly DB project. | ||
|
||
## Build from source | ||
``` | ||
# to install dependencies | ||
sudo apt install ninja-build libunwind-dev libboost-fiber-dev libssl-dev \ | ||
autoconf-archive libtool cmake g++ | ||
# Configure the build | ||
./helio/blaze.sh -release | ||
# Build | ||
cd build-opt && ninja dragonfly | ||
# Run | ||
./dragonfly --alsologtostderr | ||
``` | ||
|
||
## Unit testing | ||
``` | ||
# Build specific test | ||
cd build-opt && ninja [test_name] | ||
# e.g cd build-opt && ninja generic_family_test | ||
cd build-dbg && ninja [test_name] | ||
# e.g cd build-dbg && ninja generic_family_test | ||
# Run | ||
./[test_name] | ||
|
@@ -94,7 +87,6 @@ normalize formatting of code. You need to install and enable pre-commit to have | |
when you do your own commits. | ||
|
||
## License terms for contributions | ||
This Project welcomes contributions, suggestions, and feedback. Dragonfly uses the BSL license. You represent that if you do not own copyright in the code that you have the authority to submit it under the BSL. All feedback, suggestions, or contributions are not confidential. | ||
|
||
Please see our [CLA agreement](./CLA.txt) | ||
|
||
## THANK YOU FOR YOUR CONTRIBUTIONS | ||
## THANK YOU FOR YOUR CONTRIBUTIONS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters