warden
warden copied to clipboard
Scoped environment config loading
This pull request allows developers to provide user-level and project-level customizations to Warden development environments. For example, if a developer wants to create a phpMyAdmin service for all environments, he could create a ~/.warden/environments/includes/db.base.yml
or perhaps in <project_dir>/.warden/environments/includes/db.base.yml
:
version: "3.5"
services:
phpmyadmin:
hostname: ${WARDEN_ENV_NAME}-phpmyadmin
image: phpmyadmin/phpmyadmin:latest
environment:
- PMA_HOST=db
depends_on:
db:
condition: service_started
labels:
- traefik.enable=true
- traefik.http.routers.${WARDEN_ENV_NAME}-phpmyadmin.priority=3
- traefik.http.routers.${WARDEN_ENV_NAME}-phpmyadmin.tls=true
- traefik.http.routers.${WARDEN_ENV_NAME}-phpmyadmin.rule=Host(`phpmyadmin.${TRAEFIK_DOMAIN}`)
- traefik.http.services.${WARDEN_ENV_NAME}-phpmyadmin.loadbalancer.server.port=80
It also allows developers to develop (and share) custom environment types, without having to edit Warden core files.
Would this resolve #285?
@navarr yes, I do think so. One could change the default image for a given service and warden env up
!
@davidalger, could you review this PR?
When to expect this feature to be merged to stable release? It'll be highly eligible in my project.
Found out that the scoped loading was missing for the Mutagen configuration loading, so I added that!
@davidalger please review this PR
@ Maintainers Whats the status of the PR? +1
@davidalger Have you had a chance to review this yet? :)
@davidalger what can I do to help to merge this PR? 🙏
Anyone still interested in this PR?
@davidalger UP
I believe that we can create community driven fork due to @davidalger lack of free time
@Den4ik, actually, it's already there https://github.com/swiftotter/den/discussions/5
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Manually merged from Den in 5a24ca7d50790e35d7856ef5aaa9002040ff5e46