You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[plugins] Move conf files out of .devbox and more DEV-1259 DEV-1258 (#362)
## Summary
This changes how some plugins work (FKA package configuration) and makes a few related improvements.
Specifically:
* conf files are moved out of `.devbox/conf` and moved to `./devbox.d`. (or `.DevboxDir`)
* Files created outside of `.devbox` directory are never overridden.
* Hidden files are now saved in `.devbox/virtenv` (or `.Virtenv`)
* mariadb plugin has been disabled (not yet ready for prime time, it's the only plugin that requires shims)
* Added service to postgresql (I forget it in previous PR)
* Only files stored in `bin` get file mode 755 and sym links. Everything else gets 644 and no link.
* Updated all plugins to use new variables.
* Added `web/index.html` example file to nginx and apache plugins.
Everything is still hidden behind flag so no user change.
TODO (in follow up):
* Only create non-`.devbox` files when doing `devbox add` (vs now they get created on `shell`, `run`, `generate` etc) (DEV-1260)
## How was it tested?
Added: `postgresql`, `nginx`, and `php`.
* Inspected configs in `./devbox.d` directory.
* Inspected .devbox/virtenv directory.
* Started all services.
* Created simple `web/index.html` for nginx and curled it. All working.
"readme": "* This package creates shims and stores them in .devbox/conf/mariadb/bin\n* Use mysql_install_db to initialize data directory\n* Use mysqld to start the server",
4
+
"match": "disabled",
5
+
"readme": "* This package creates shims and stores them in .devbox/virtenv/mariadb/bin\n* Use mysql_install_db to initialize data directory\n* Use mysqld to start the server",
Copy file name to clipboardExpand all lines: internal/pkgcfg/package-configuration/nginx.json
+9-6Lines changed: 9 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,21 @@
1
1
{
2
2
"name": "nginx",
3
3
"version": "0.0.1",
4
-
"readme": "nginx is configured to use .devbox/conf/nginx.conf\n\nTo customize:\n* Use $NGINX_CONFDIR to change the configuration directory\n* Use $NGINX_LOGDIR to change the log directory\n* Use $NGINX_PIDDIR to change the pid directory\n* Use $NGINX_RUNDIR to change the run directory\n* Use $NGINX_SITESDIR to change the sites directory\n* Use $NGINX_TMPDIR to change the tmp directory. Use $NGINX_USER to change the user\n* Use $NGINX_GROUP to customize.",
4
+
"readme": "nginx can be configured with env variables\n\nTo customize:\n* Use $NGINX_CONFDIR to change the configuration directory\n* Use $NGINX_LOGDIR to change the log directory\n* Use $NGINX_PIDDIR to change the pid directory\n* Use $NGINX_RUNDIR to change the run directory\n* Use $NGINX_SITESDIR to change the sites directory\n* Use $NGINX_TMPDIR to change the tmp directory. Use $NGINX_USER to change the user\n* Use $NGINX_GROUP to customize.",
0 commit comments