Asconfig
A CLI tool for managing Aerospike configuration files.
Overview
Asconfig allows you to validate and compare Aerospike configuration using a versioned YAML schema directory. For more information and usage examples see the Aerospike Configuration Tool docs.
Build
Build asconfig using the included makefile and display usage information.
git clone https://github.com/aerospike/asconfig.git
cd asconfig
git submodule update --init
make
./bin/asconfig --helpThe built binary is available at bin/asconfig.
Install or uninstall asconfig.
make installmake uninstallCleanup build and test files.
make cleanBuilding rpm, deb, and tar packages is also done using the makefile. You will have to install fpm and rpmbuild to build all of these.
make rpm deb tarThe packages will be available in the pkg/ directory.
Testing
Asconfig has unit and integration tests.
You can run the tests using the make file.
Unit Tests
make unitIntegration Tests
Integration tests require that docker is installed and running.
A path to an Aerospike feature key file should be defined at the FEATKEY_DIR environment variable.
For more information about the feature key file see the feature-key docs.
FEATKEY_DIR=/path/to/aerospike/features/dir make integrationAll Tests
FEATKEY_DIR=/path/to/aerospike/features/dir make testTest Coverage
FEATKEY_DIR=/path/to/aerospike/features/dir make view-coverage