|
|
[[_TOC_]]
|
|
|
|
|
|
# Jenkins configuration
|
|
|
|
|
|
See: continuous-integration.md
|
|
|
|
|
|
# MySQL systemd-managed configurations using a ramdisk (2018-01-24)
|
|
|
|
|
|
```
|
|
|
amp config:set --db_type=mysql --mysql_dsn=mysql://root:secret@127.0.0.1:3306
|
|
|
```
|
|
|
|
|
|
# MySQL buildkit-managed configurations using a ramdisk (deprecated)
|
|
|
|
|
|
On test-ubu1204-5, the ramdisk uses this arrangement:
|
|
|
|
|
|
* The ramdisk is declared in /etc/fstab. This allows it to startup during boot without any special user-privileges. (No root or sudo.)
|
|
|
* The jenkins user has amp config set with these options:
|
|
|
|
|
|
| db_type | mysql_ram_disk | How to connect to the database as admin [mysql_dsn,mysql_mycnf,mysql_ram_disk,mysql_osx_ram_disk,pg_dsn] |
|
|
|
| ram_disk_dir | /mnt/mysql | Directory to create as a RAM disk |
|
|
|
| ram_disk_size | 500 | Amount of space to allocate for ramdisk (MB) |
|
|
|
| ram_disk_type | manual | Type of RAM disk [auto,linux,osx,manual] |
|
|
|
|
|
|
Which means:
|
|
|
|
|
|
* `db_type=mysql_ram_disk` means that amp will auto-create the mysql data files and start the mysqld (on-demand)
|
|
|
* `ram_disk_dir=/mny/mysql` and `ram_disk_type=manual` means that it will use the ramdisk that's already created. (it has a feature to create ramdisks on osx/linux, but that requires root/sudo, so we don't use it on the shared server)
|
|
|
|
|
|
Amp boots MySQL on demand, when the user runs `civibuild` or `amp create`.
|
|
|
|
|
|
[mattermost reference](https://chat.civicrm.org/civicrm/pl/s4urz6trobbpigma7ywc56fk3a) |
|
|
\ No newline at end of file |