https://github.com/percona-lab/sandboxes
Databases sandboxes for dev and qa
https://github.com/percona-lab/sandboxes
Last synced: about 1 year ago
JSON representation
Databases sandboxes for dev and qa
- Host: GitHub
- URL: https://github.com/percona-lab/sandboxes
- Owner: Percona-Lab
- Created: 2021-11-09T17:25:37.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-09T17:38:13.000Z (over 4 years ago)
- Last Synced: 2025-02-06T16:59:09.373Z (about 1 year ago)
- Language: Shell
- Size: 3.91 KB
- Stars: 0
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sandboxes for use in dev and QA environments
## Purpose
The general idea behind this project is to have a virtual machine where we can run MySQL, MongoDB and Postgres databases and use them
in PMM testing so devs and qas have the same testing environments.
## Starting the virtual machine
1. `vagrant up`
2. `vagrant ssh`
## MongoDB
The MongoDB sandbox is based on [mlaunch](http://blog.rueckstiess.com/mtools/mlaunch.html) and it has:
- Shards
- 2 Mongos
- Config servers
- Arbiters
- Authentication
- SSL enabled.
The default user is `pmm` and password is `secret`.
In the `data/certs` directory you can find the SSL certificates.
To start the sandbox just run `./start_mongo.sh` inside the virtual machine.
Usage example:
```
mongo :27019/admin \
--username=pmm \
--password=secret \
--tls \
--tlsCertificateKeyFile data/certs/client.pem \
--tlsCAFile data/certs/CA.crt \
--tlsAllowInvalidHostnames \
--tlsAllowInvalidCertificates
```