Implement Sablier Traefik Plugin for Workload Management#751
Implement Sablier Traefik Plugin for Workload Management#751SamJUK wants to merge 2 commits intowardenenv:mainfrom
Conversation
| storage: | ||
| file: | ||
| sessions: | ||
| default-duration: 5m |
There was a problem hiding this comment.
I believe that this config should be configurable, because you could work on the code and don't use env much more time. You will lose console history if it will be closed by stoping environment
There was a problem hiding this comment.
Agreed, implemented the same way as traefik.yml for consistency. It can be configured via ${WARDEN_HOME_DIR}/etc/sablier/sablier.yml, Although it will be overwritten on svc up calls.
Opened PR #813 which looks to migrate the Traefik config to environment variables. Where users can override / expand the configuration via the ~/.warden/docker-compose.yml file. Sablier can be refactored to the same approach if approved.
b33e426 to
3469570
Compare
3469570 to
5d4ca13
Compare
| global: | ||
| checkNewVersion: false | ||
| sendAnonymousUsage: false | ||
| experimental: |
There was a problem hiding this comment.
If PR #813 is approved. This can be refactored into docker/docker-compose.sablier.yml as environment variables. Preventing the need to install the plugin even if Sablier is disabled.
Overview
Implement the Sablier Traefik Plugin, allowing Warden to dynamic start and stop project containers on request rather than having to manage them with env up/down saving system resources for us forgetful people. Especially useful if your working on multiple large projects simultaneously, or for certain edge use cases (we run Warden also as a Ephemeral/Feature hosts deployment with a lot of projects for example).
Implementation Notes
WARDEN_SABLIER_ENABLE =1in the service.envTRAEFIK_SABLIER_DURATION=2h(How long before Sablier sleeps the containers)TRAEFIK_VERSION=2.9Configuration
Service Config:
WARDEN_SABLIER_ENABLE=0- Enables Sablier globally for the installation (Unable to think of a good use case of enablement on project basis)Project :
TRAEFIK_SABLIER_DURATION=30m- How long Sablier waits to sleep containersTRAEFIK_SABLIER_THEME=ghost- Sablier theme to use List of Default ThemesAdvanced:
${WARDEN_HOME_DIR}/etc/sablier/theme- Directory if you want to declare any custom Sablier Themes${WARDEN_HOME_DIR}/etc/sablier/sablier.yml- Sablier Service Configuration Overrides