Deploy Databases and Services Easily for Development and Testing Pipelines.
Deploy Databases and Services Easily for Development and Testing Pipelines.
Peanut
Deploy Databases and Services Easily for Development and Testing Pipelines.
Dashboard Screenshots
Peanut provides a REST API, Admin Dashboard and a command line tool to deploy and configure the commonly used services like databases, message brokers, graphing, tracing, caching tools ... etc. It perfectly suited for development, manual testing, automated testing pipelines where mocking is not possible and test drives.
Under the hood, it works with the containerization runtime like docker to deploy and configure the service. Destroy the service if it is a temporary one.
Technically you can achieve the same with a bunch of yaml files or using a configuration management tool or a package manager like helm but peanut is pretty small and fun to use & should speed up your workflow!
Supported Services:
To run peanut on ubuntu, You can use the following bash script since it may take a while for a cold start. the script will install etcd, docker, docker-compose and peanut.
$ bash .env
$ cd ..
# Validate js code format
$ make check_ui_format
# Format UI
$ make format_ui
# Run Vuejs app
$ make serve_ui
# Build Vuejs app
$ make build_ui
# Build the Vuejs app
$ make packageIn order to interact with peanut API server, you can either do basic API calls or use the provided command line tool. It is still not finished yet but it will be ready soon.
Here is a list of all supported services so far and the API call to deploy them.
$ curl -X POST http://127.0.0.1:8000/api/v1/service \
-d '{"service":"mysql","configs": {"rootPassword": "root", "database": "peanut", "username": "peanut", "password": "secret"}}' \
-H 'x-api-key: ~api~key~here~'$ curl -X POST http://127.0.0.1:8000/api/v1/service \
-d '{"service":"mariadb","configs": {"rootPassword": "root", "database": "peanut", "username": "peanut", "password": "secret"}}' \
-H 'x-api-key: ~api~key~here~'$ curl -X POST http://127.0.0.1:8000/api/v1/service \
-d '{"service":"postgresql","configs": {"database": "peanut", "username": "peanut", "password": "secret"}}' \
-H 'x-api-key: ~api~key~here~'$ curl -X POST http://127.0.0.1:8000/api/v1/service \
-d '{"service":"redis","configs": {"password": "secret"}}' \
-H 'x-api-key: ~api~key~here~'$ curl -X POST http://127.0.0.1:8000/api/v1/service \
-d '{"service":"etcd"}' \
-H 'x-api-key: ~api~key~here~'$ curl -X POST http://127.0.0.1:8000/api/v1/service \
-d '{"service":"grafana","configs": {"username": "admin", "password": "admin", "allowSignup": "false", "anonymousAccess": "true"}}' \
-H 'x-api-key: ~api~key~here~'$ curl -X POST http://127.0.0.1:8000/api/v1/service \
-d '{"service":"elasticsearch"}' \
-H 'x-api-key: ~api~key~here~'$ curl -X POST http://127.0.0.1:8000/api/v1/service \
-d '{"service":"mongodb","configs": {"database": "peanut", "username": "peanut", "password": "secret"}}' \
-H 'x-api-key: ~api~key~here~'$ curl -X POST http://127.0.0.1:8000/api/v1/service \
-d '{"service":"graphite"}' \
-H 'x-api-key: ~api~key~here~'…$ curl -X POST http://127.0.0.1:8000/api/v1/service \
-d '{"service":"zipkin"}' \
-H 'x-api-key: ~api~key~here~'$ curl -X POST http://127.0.0.1:8000/api/v1/service \
-d '{"service":"memcached"}' \
-H 'x-api-key: ~api~key~here~'$ curl -X POST http://127.0.0.1:8000/api/v1/service \
-d '{"service":"mailhog"}' \
-H 'x-api-key: ~api~key~here~'$ curl -X POST http://127.0.0.1:8000/api/v1/service \
-d '{"service":"jaeger"}' \
-H 'x-api-key: ~api~key~here~'$ curl -X POST http://127.0.0.1:8000/api/v1/service \
-d '{"service":"rabbitmq"}' \
-H 'x-api-key: ~api~key~here~'$ curl -X POST http://127.0.0.1:8000/api/v1/service \
-d '{"service":"consul"}' \
-H 'x-api-key: ~api~key~here~'$ curl -X POST http://127.0.0.1:8000/api/v1/service \
-d '{"service":"vault","configs": {"token": "peanut"}}' \
-H 'x-api-key: ~api~key~here~'$ curl -X POST http://127.0.0.1:8000/api/v1/service \
-d '{"service":"cassandra"}' \
-H 'x-api-key: ~api~key~here~'$ curl -X POST http://127.0.0.1:8000/api/v1/service \
-d '{"service":"minio","configs": {"username": "admin12345678", "password": "admin12345678"}}' \
-H 'x-api-key: ~api~key~here~'$ curl -X POST http://127.0.0.1:8000/api/v1/service \
-d '{"service":"registry"}' \
-H 'x-api-key: ~api~key~here~'$ curl -X POST http://127.0.0.1:8000/api/v1/service \
-d '{"service":"ghost"}' \
-H 'x-api-key: ~api~key~here~'$ curl -X POST http://127.0.0.1:8000/api/v1/service \
-d '{"service":"httpbin"}' \
-H 'x-api-key: ~api~key~here~'$ curl -X POST http://127.0.0.1:8000/api/v1/service \
-d '{"service":"nagios"}' \
-H 'x-api-key: ~api~key~here~'$ curl -X POST http://127.0.0.1:8000/api/v1/service \
-d '{"service":"etherpad"}' \
-H 'x-api-key: ~api~key~here~'To create a temporary service, you will need to add extra parameter while creating it.
…To list all services running on a single or multi nodes.
$ curl -X GET http://127.0.0.1:8000/api/v1/service \
-H 'x-api-key: ~api~key~here~'To delete a service.
$ curl -X DELETE http://127.0.0.1:8000/api/v1/service/:serviceId \
-H 'x-api-key: ~api~key~here~'To get async job status like a deployment status.
$ curl -X DELETE http://127.0.0.1:8000/api/v1/job/:serviceId/:jobId \
-H 'x-api-key: ~api~key~here~'To get service versions.
$ curl -X GET http://127.0.0.1:8000/api/v1/tag/$serviceType/$fromCacheStatus \
-H 'x-api-key: ~api~key~here~'
$ curl -X GET http://127.0.0.1:8000/api/v1/tag/mysql/true \
-H 'x-api-key: ~api~key~here~'For transparency into our release cycle and in striving to maintain backward compatibility, Peanut is maintained under the Semantic Versioning guidelines and release process is predictable and business-friendly.
See the Releases section of our GitHub project for changelogs for each release version of Peanut. It contains summaries of the most noteworthy changes made in each release.
If you have any suggestions, bug reports, or annoyances please report them to our issue tracker at https://github.com/clivern/peanut/issues
If you discover a security vulnerability within Peanut, please send an email to [email protected]
We are an open source, community-driven project so please feel free to join us. see the contributing guidelines for more details.
© 2021, Clivern. Released under MIT License.
Peanut is authored and maintained by @clivern.
No open issues yet, or sync has not completed.