Skip to content

Commit 27d0d20

Browse files
authored
move glibcLocales to plugins (#2442)
## Summary Add `glibcLocales` to the Plugins for PostgreSQL, MySQL, and MariaDB so users don't have to add it on Linux ## How was it tested? Run e2e tests, test in Devspaces
1 parent d4325c9 commit 27d0d20

File tree

4 files changed

+21
-11
lines changed

4 files changed

+21
-11
lines changed

examples/databases/postgres/devbox.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
{
22
"packages": {
3-
"postgresql": "latest",
4-
"glibcLocales": {
5-
"version": "latest",
6-
"platforms": ["x86_64-linux", "aarch64-linux"]
7-
}
3+
"postgresql": "latest"
84
},
95
"shell": {
106
"init_hook": null

plugins/mariadb.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,13 @@
1515
"{{ .Virtenv }}/setup_db.sh": "mariadb/setup_db.sh",
1616
"{{ .Virtenv }}/process-compose.yaml": "mariadb/process-compose.yaml"
1717
},
18-
"packages": [
19-
"path:{{ .Virtenv }}/flake"
20-
],
18+
"packages": {
19+
"path:{{ .Virtenv }}/flake": {},
20+
"glibcLocales": {
21+
"version": "latest",
22+
"platforms": ["x86_64-linux", "aarch64-linux"]
23+
}
24+
},
2125
"__remove_trigger_package": true,
2226
"shell": {
2327
"init_hook": [

plugins/mysql.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,13 @@
1515
"{{ .Virtenv }}/setup_db.sh": "mysql/setup_db.sh",
1616
"{{ .Virtenv }}/process-compose.yaml": "mysql/process-compose.yaml"
1717
},
18-
"packages": [
19-
"path:{{ .Virtenv }}/flake"
20-
],
18+
"packages": {
19+
"path:{{ .Virtenv }}/flake": {},
20+
"glibcLocales": {
21+
"version": "latest",
22+
"platforms": ["x86_64-linux", "aarch64-linux"]
23+
}
24+
},
2125
"__remove_trigger_package": true,
2226
"shell": {
2327
"init_hook": [

plugins/postgresql.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
"name": "postgresql",
33
"version": "0.0.2",
44
"description": "To initialize the database run `initdb`.",
5+
"packages": {
6+
"glibcLocales": {
7+
"version": "latest",
8+
"platforms": ["x86_64-linux", "aarch64-linux"]
9+
}
10+
},
511
"env": {
612
"PGDATA": "{{ .Virtenv }}/data",
713
"PGHOST": "{{ .Virtenv }}"

0 commit comments

Comments
 (0)