|
1 | 1 | {
|
2 |
| - "name": "mysql", |
3 |
| - "version": "0.0.3", |
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. This DB will be started in `insecure` mode, so be sure to add a root password after creation if needed.\n* Use mysqld to manually start the server, and `mysqladmin -u root shutdown` to manually stop it", |
5 |
| - "env": { |
6 |
| - "MYSQL_BASEDIR": "{{ .DevboxProfileDefault }}", |
7 |
| - "MYSQL_HOME": "{{ .Virtenv }}/run", |
8 |
| - "MYSQL_DATADIR": "{{ .Virtenv }}/data", |
9 |
| - "MYSQL_UNIX_PORT": "{{ .Virtenv }}/run/mysql.sock", |
10 |
| - "MYSQL_PID_FILE": "{{ .Virtenv }}/run/mysql.pid" |
11 |
| - }, |
12 |
| - "create_files": { |
13 |
| - "{{ .Virtenv }}/run": "", |
14 |
| - "{{ .Virtenv }}/flake/flake.nix": "mysql/flake.nix", |
15 |
| - "{{ .Virtenv }}/setup_db.sh": "mysql/setup_db.sh", |
16 |
| - "{{ .Virtenv }}/process-compose.yaml": "mysql/process-compose.yaml" |
17 |
| - }, |
18 |
| - "packages": { |
19 |
| - "path:{{ .Virtenv }}/flake": {}, |
20 |
| - "glibcLocales": { |
21 |
| - "version": "latest", |
22 |
| - "platforms": ["x86_64-linux", "aarch64-linux"] |
23 |
| - } |
24 |
| - }, |
25 |
| - "__remove_trigger_package": true, |
26 |
| - "shell": { |
27 |
| - "init_hook": [ |
28 |
| - "bash {{ .Virtenv }}/setup_db.sh" |
29 |
| - ] |
| 2 | + "name": "mysql", |
| 3 | + "version": "0.0.4", |
| 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. This DB will be started in `insecure` mode, so be sure to add a root password after creation if needed.\n* Use mysqld to manually start the server, and `mysqladmin -u root shutdown` to manually stop it", |
| 5 | + "env": { |
| 6 | + "MYSQL_BASEDIR": "{{ .DevboxProfileDefault }}", |
| 7 | + "MYSQL_HOME": "{{ .Virtenv }}/run", |
| 8 | + "MYSQL_DATADIR": "{{ .Virtenv }}/data", |
| 9 | + "MYSQL_UNIX_PORT": "{{ .Virtenv }}/run/mysql.sock", |
| 10 | + "MYSQL_PID_FILE": "{{ .Virtenv }}/run/mysql.pid", |
| 11 | + "MYSQL_CONF": "{{ .DevboxDir }}/my.cnf" |
| 12 | + }, |
| 13 | + "create_files": { |
| 14 | + "{{ .Virtenv }}/run": "", |
| 15 | + "{{ .Virtenv }}/flake/flake.nix": "mysql/flake.nix", |
| 16 | + "{{ .Virtenv }}/setup_db.sh": "mysql/setup_db.sh", |
| 17 | + "{{ .Virtenv }}/process-compose.yaml": "mysql/process-compose.yaml", |
| 18 | + "{{ .DevboxDir }}/my.cnf": "mysql/my.cnf" |
| 19 | + }, |
| 20 | + "packages": { |
| 21 | + "path:{{ .Virtenv }}/flake": {}, |
| 22 | + "glibcLocales": { |
| 23 | + "version": "latest", |
| 24 | + "platforms": ["x86_64-linux", "aarch64-linux"] |
30 | 25 | }
|
| 26 | + }, |
| 27 | + "__remove_trigger_package": true, |
| 28 | + "shell": { |
| 29 | + "init_hook": ["bash {{ .Virtenv }}/setup_db.sh"] |
31 | 30 | }
|
| 31 | +} |
0 commit comments