-
Notifications
You must be signed in to change notification settings - Fork 235
/
Copy pathmariadb.json
33 lines (33 loc) · 1.21 KB
/
mariadb.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
"name": "mariadb",
"version": "0.0.4",
"description": "* This plugin wraps mysqld and mysql_install_db to work in your local project\n* This plugin will create a new database for your project in MYSQL_DATADIR if one doesn't exist on shell init\n* Use mysqld to manually start the server, and `mysqladmin -u root shutdown` to manually stop it",
"env": {
"MYSQL_BASEDIR": "{{ .DevboxProfileDefault }}",
"MYSQL_HOME": "{{ .Virtenv }}/run",
"MYSQL_DATADIR": "{{ .Virtenv }}/data",
"MYSQL_UNIX_PORT": "{{ .Virtenv }}/run/mysql.sock",
"MYSQL_PID_FILE": "{{ .Virtenv }}/run/mysql.pid",
"MYSQL_CONF": "{{ .DevboxDir }}/my.cnf"
},
"create_files": {
"{{ .Virtenv }}/run": "",
"{{ .Virtenv }}/flake/flake.nix": "mariadb/flake.nix",
"{{ .Virtenv }}/setup_db.sh": "mariadb/setup_db.sh",
"{{ .Virtenv }}/process-compose.yaml": "mariadb/process-compose.yaml",
"{{ .DevboxDir }}/my.cnf": "mariadb/my.cnf"
},
"packages": {
"path:{{ .Virtenv }}/flake": {},
"glibcLocales": {
"version": "latest",
"platforms": ["x86_64-linux", "aarch64-linux"]
}
},
"__remove_trigger_package": true,
"shell": {
"init_hook": [
"bash {{ .Virtenv }}/setup_db.sh"
]
}
}