Change Log
UNRELEASED
Add documentation about running vite in Warden for Laravel (wardenenv/warden#846 by @bap14)
Version 0.14.1 (2023-07-10)
Enhancements:
warden statuscommand added that shows running Warden environments (#669 by @bap14)
Bug Fixes:
Updated Mutagen connection detection so that Mutagen doesn’t resync every time in versions >= 0.15.0
Version 0.14.0 (2023-06-19)
Dependency Changes:
All commands now use the Docker Compose plugin (
docker compose) instead of the standalone command (docker-compose)
Please be aware that this will change your container names from using underscores to using dashes (e.g. vanilla_db_1 becomes vanilla-db-1). This is configured through the environment variableDOCKER_COMPOSE_COMMANDwhich defaults todocker compose.
Enhancements
ElasticSearch 8.7 and 8.8 images are available
Drupal environment type added (#646 by @bap14)
Version 0.13.1 (2023-03-21)
Bug Fixes:
Removed changelog item about Backup and Restore commands that were reverted
Incremented version from 0.12.0 to 0.13.1
Version 0.13.0 (2023-03-20)
Enhancements:
Updated environment default Node version from 10 to 12 (#425 by @davidalger)
Ignore the only root .git directory (#496 by @ihor-sviziev)
Allow dnsmasq service to be disabled (#462 by by @davidhiendl)
Update Magento2 defaults to 2.4.6 (#618 by by @lalittmohan)
The ability to specify
MYSQL_DISTRIBUTION=(mysql|mariadb)andMYSQL_DISTRIBUTION_VERSION(dd5ff by @rootindex)Add
WARDEN_OPENSEARCH=1andOPENSEARCH_VERSION(2bd95 by @navarr)Migration from Selenium to Seleniarm (471dc by @navarr)
Scoped environment config loading (#451 by @tdgroot)
Portainer made optional and off by default (03783 by @bap14)
Persist MySQL command history (45a16 by @navarr)
Bug Fixes:
Update default URL for ElasticsearchHQ by @ihor-sviziev in wardenenv/warden#428
Corrected syntax of env-init.help command by @davidalger in wardenenv/warden#490
Add
traefik.docker.networklabel to specify docker network exclusively by @tdgroot in wardenenv/warden#458Require docker compose 2.2.3 when compose v2 is active by @davidalger in wardenenv/warden#489
Version 0.12.0 (2021-08-28)
Enhancements:
Added Elastic HQ support available at elastichq.mydomain.test for viewing Elasticsearch data (#350 by @Den4ik)
Update selenium to standalone latest version resolving issues with old hub/chrome image combinations (#349 by @Den4ik)
Environment and image build improvements (#363 by @Den4ik)
Introduces new redis sub-command for easy access to the running redis container (#413 by @werfu)
SSH known hosts will now be persisted via an additional
sshdirectory:/home/www-data/.sshvolume on php-fpm containers (#315 by @ihor-sviziev)Docker images for Nginx 1.18 are now available (#414 by @darrakurt)
Bug Fixes:
Fixed loadEnvConfig inability to parse .env with CRLF line endings (issue #380)
Version 0.11.0 (2021-04-22)
Upgrade Notes:
PHP and Varnish images have been rebuilt on a CentOS 8 base image (previously used a CentOS 7 base image). This eliminates the need for IUS for installing Git and MariaDB clients as these can now be installed from the default EL RPMs. This also allows for constants supported by more recent versions of Curl to be used in PHP code, latest calendar / locale features available in newer versions of ICU libraries to be used, etc.
Please note that builds for PHP versions 5.5, 5.6, 7.0 and 7.1 have been dropped. Images will remain on Docker Hub so they’ll continue to be available for existing projects actively using them, they simply will see no further enhancements or maintenance.
To ensure you have the latest re-builds of Warden images and update your projects: warden env pull && warden env up
For full details on what went into these rebuilds, please see #345.
Huge shout out to @tdgroot who helped with updating the builds, testing, etc.
Enhancements:
Shopware and Symfony environments will now use Composer v2 by default (issue #359)
Version 0.10.2 (2021-04-03)
Bug Fixes:
Fixed bug where Live Reload might not work when Varnish was disabled due to routing priorities (#337 by @alinalexandru)
Enhancements:
Version 0.10.1 (2021-03-01)
Bug Fixes:
Fixed a bug where SSH Agent forwarding would break following container restart (#307 by @ihor-sviziev)
Fixed a issue where Xdebug 3 images would generate excessive profile data when running CLI commands in debug container (#309 by @Den4ik)
Please note that you must pull the latest php-fpm images via warden env pull to get these bug fixes relating to configuration in the pre-built images.
Enhancements:
Version 0.10.0 (2021-02-13)
Upgrade Notes:
Various updates to PHP images have occurred since the last major release including a transition to using Remi vs IUS for RPMs. It’s highly recommended you re-pull to get the latest images and update your projects:
warden env pull && warden env upWarden now requires
mutagen0.11.8 or later for environments leveraging sync sessions on Mac OS. Reference issue #235 for details. This is to resolve an incompatibility between earlier versions of Mutagen and Docker Desktop 2.3.0.5 and later.There is a new docs page on DNS resolver configuration thanks to @Skullsneeze
The docs page on Installing Warden includes a new section titled Trusted CA Root Certificate with additional post-install information largely relevant to Linux users.
Images for Varnish 6.4 and 6.5 are now available in addition to 6.0 LTS and 4.1 to support users who desire to remain closer to the bleeding edge.
Redis 6 and Elasticsearch 7.11 images have recently been made available.
When updating to Composer v2 using the new
COMPOSER_VERSION=2setting, make sure you removehirak/prestissimofrom global (if present)composer global remove hirak/prestissimoWarden will no longer attempt to auto-configure DNS resolution for
*.teston non-Darwin systems due to a combination of security reasons, lack of per-TLD resolver configuration (as is used on Darwin/Mac OS) and the myriad permutations of resolver configuration across various Linux based distros. The dnsmasq container will still be started, but a warning will now be emitted on Linux directing users to the new docs page on DNS resolver configuration.
Bug Fixes:
The
.ideadirectory is no longer ignored from Mutagen sync allowingbin/magento dev:urn-catalog:generateto be generate metadata the IDE uses (issue #291)Installing on WSL will no longer report innocuous errors related to lack of systemd support on WSL as the install routine no longer makes calls to
systemctlon Linux systems (issue #220)
Enhancements:
Added opt-in support for Xdebug 3 (see docs for details; new environments will set
PHP_XDEBUG_3=1) (#279 by @Den4ik)Added ability to provide persistent additional configuration to
dnsmasqservice (issue #214)Added ability to easily specify alternate nameservers for
dnsmasqto use (issue #214)Added ability to customize bundled environment compositions by overriding them in the Warden home dir (#228 by @k4emic)
Added ability to override sync configuration on a per-project basis or provide one on env types such as
localwhere default one does not exist (#246 by @Den4ik)Updated version of Portainer from 1.24.X to 2.0.X (#245 by @MarcoFaul)
Added support for
COMPOSER_VERSIONin.envto configurecomposerto run the newer Composer v2. At this time the default remains Composer v1 for compatibility reasons (issue #296)Added modman support for
magento1environment type (#290 by @norgeindian)
Version 0.9.1 (2020-08-25)
Bug Fixes:
Fixed bug on WSL2 where Xdebug connect back host was improperly set (#213 by @ihor-sviziev)
Version 0.9.0 (2020-08-06)
Upgrade Notes:
Removed deprecated first-class commands
warden start,warden stop,warden up,warden down, andwarden restart; please usewarden svc <verb>to manage global services such as Traefik, Portainer, Mailhog, etc (#205 by @davidalger)
Enhancements:
Added a new
wordpressenvironment type pre-configured for running the Wordpress application (#206 by @jamescowie)
Version 0.8.2 (2020-08-03)
Enhancements:
Changed all
:delegatedmounts to:cachedmounts to preserve existing behavior of mounts when new behavior in Docker Desktop Edge 2.3.2.0 is promoted to stable channel (#204 by @davidalger)
Version 0.8.1 (2020-07-30)
Enhancements:
Updated default version of PHP for new
magento2environments to PHP 7.4Updated default version of Elasticsearch for new
magento2environments to Elasticsearch 7.6Updated default version of Elasticsearch where unspecified in project’s
.envfile to Elasticsearch 7.8Dropped Elasticsearch image builds for versions prior to 6.8 and versions 7.0 through 7.5
Bug Fixes:
Fixed issue where nginx would unexpectedly exit on Linux due to incorrect default value for
XDEBUG_CONNECT_BACK_HOSTin base nginx configuration (issue #200)
Version 0.8.0 (2020-07-27)
Upgrade Notes:
To ensure Traefik 2.2 version update takes effect, run
warden svc upafter updating.Pre-existing projects may need to be re-created to avoid warnings from docker-compose regarding unused named volumes.
The
BYPASS_VARNISHflag (deprecated in 0.5.0) has been removed. Use toggleWARDEN_VARNISH=0to disable Varnish.Recently updated
php-fpmimages now include thecrontabspackage withcrondrunning in the background. Be sure you have the latest images by runningwarden env pullin the project directory followed bywarden env upto use this functionality. To configure a crontab that is persistent, a crontab file may be mounted at/var/spool/cron/www-data(std crontab path) via custom configuration in the project’s.warden/warden-env.ymlfile.
Enhancements:
Added
warden vnccommand to launch VNC tunnel via SSH or (when installed) launch Remmina (#116 by @lbajsarowicz)Updated
warden env,warden svcandwarden dbto print help text when called without any parameters specifiedUpdated volume declarations for RabbitMQ and Redis services to use named volumes (avoid use of anonymous volumes)
Updated version of Traefik from 2.1 to 2.2
Updated
warden debugto also passhost.docker.internalinto thephp-debugcontainer for theXDEBUG_REMOTE_HOSTvalue on WSL when Microsoft is present in/proc/sys/kernel/osrelease(#196 by @LeeSaferite)Updated nginx configuration to pass
XDEBUG_CONNECT_BACK_HOSTas environment variable in base config allowing it to be overridden by exported env variable on all host OS envs (#199 by @LeeSaferite)
Version 0.7.0 (2020-07-22)
Upgrade Notes:
With
mailhogbeing changed from running on a per-project basis to running as a global service (see issue #175) you will need to ensurewarden svc uphas been run after updating Warden. On pre-existing projects that already had their own Mailhog container running,warden env up --remove-orphanswill clean it up.
Enhancements:
Added
warden blackfirecommand for easily running profiles via the CLI tool (#188 by @navarr)Changed
mailhogservice to run as a single global service rather than as a per-project service (issue #175)Updated
warden db importto strip usages of@@GLOBAL.GITD_PURGEDand@@SESSION.SQL_LOG_BINfrom database dumps during import process to avoid failures importing databases originating from Amazon RDS (issue #162)Added Mutagen sync configuration for
magento1environment type (issue #97)
Version 0.6.0 (2020-07-02)
Upgrade Notes:
Warden now requires
docker-compose1.25.0 or later; see issue #165Warden now requires
mutagen0.11.4 or later for environments leveraging sync sessions on Mac OS (currently Magento 2 and Shopware 6 use Mutagen).
Enhancements:
Added
warden svccommand to control global services replacingwarden start,warden stop,warden up,warden down, andwarden restartand offering further flexibility as this works similar towarden envin that any verb known todocker-composemay be used in orchestrating global services such astraefik,dnsmasqandportainer; for example,warden svc updoes whatwarden updid previously.Updated
warden envto report an error if Docker does not appear to be running.Updated
warden env upto imply-d(--detach) to work in like manner towarden svc up(formerlywarden up)The
warden synccommand now allows use of mutagen sub-commandsflushandresetThe following version defaults were updated (these defaults apply when versions remain unspecified in a project’s
.envfile; new project.envfiles may differ by environment type)PHP-FPM default updated from 7.3 to 7.4
Elasticsearch default updated from 6.8 to 7.7
RabbitMQ default updated from 3.7 to 3.8
MariaDB default updated from 10.3 to 10.4
Updated
warden env-initcommand to prompt user before overwriting an existing.envfile in a project directory (#166 by @Lunaetic)Updated
warden env-initcommand to prompt user for required arguments when missing (#170 by @Lunaetic)Added support for Magepack advanced JS bundling (#138 by @vbuck)
Added a new
shopwareenvironment type including Mutagen configuration for file sync on macOS (issue #169)Added support for implementing custom commands in
~/.warden/commandsor<project>/.warden/commands(#172 by @davidalger)Added new feature flag
WARDEN_NGINXto enable/disable service on per-project basis. This will allow (for example) using alocalenv type for a static site by addingWARDEN_NGINX=1to the project’s.envfile.Added ability to pass arguments to and override the database name
db connectanddb importoperate on (issue #22)
Bug Fixes:
Fixed issue where specifying
-vflag would short circuit argument parsing (this flag was removed; previously was only used withwarden sync listwherewarden sync list -lnow accomplishes the same thing by passing the-lflag to mutagen to list in detail)Fixed bug where quoted arguments like
"foo bar"would be passed into sub-route as two arguments,fooandbar(technical detail of argument parsing; no known cases where this caused an issue)Fixed incorrect var name in output of
warden env-initfor Laravel env type
Deprecated Functionality:
The
warden startcommand has been deprecated and will be removed in the 0.7.0 release; please usewarden svc startinstead.The
warden stopcommand has been deprecated and will be removed in the 0.7.0 release; please usewarden svc stopinstead.The
warden upcommand has been deprecated and will be removed in the 0.7.0 release; please usewarden svc upinstead.The
warden downcommand has been deprecated and will be removed in the 0.7.0 release; please usewarden svc downinstead.The
warden restartcommand has been deprecated and will be removed in the 0.7.0 release; please usewarden svc restartinstead.
Version 0.5.3 (2020-06-23)
Bug Fixes:
Reverted filtering of GTID SET commands as added in 0.5.2 release to resolve db import errors (issue #162)
Version 0.5.2 (2020-06-11)
Enhancements:
Fixed inability to run
warden debug -c '<command>'in like manner towarden shell -c ...Fixed issue where GTID related SET statements in a database dump failed the import (issue #162)
Version 0.5.1 (2020-05-28)
Upgrade Notes:
All docker images have been re-located to a new Docker Hub organization created specifically for use with Warden. All built-in environment types having been updated to reference the images on docker.io/wardenenv rather than quay.io/warden. Images currently on Quay will remain available (for at least the next 90-days) in order to preserve functionality of Warden prior to the 0.5.1 release, but these will no longer be updated and are considered deprecated immediately. Where references to quay.io/warden exist in per-project configuration within the .warden directory, it is strongly recommended these references be updated to use images from docker.io/wardenenv. You can quickly check an environment’s configuration for references to images on Quay via the following command:
warden env config | grep quay.io
The backstory, and reason for moving the images, is that in Warden 0.2.0 (circa January 2020) images were relocated from a single Docker Hub repository to individual repositories on Quay.io both as a means of breaking down a mon-repo and also to leverage images scanning of Quay.io. Since that time, Quay.io has had multiple outages, including a recent one which lasted for 19 hours with intermittent inability to pull images as even read-only operations were failing as the service failed to be scaled. This morning Quay.io is down yet again, prompting all-out inability to pull images. Given the saddening instability of Quay.io and the inability to setup a local mirror as you can with Docker Hub it has become painstakingly obvious that the images must be moved back to Docker Hub for a long-term and stable home, with the added benefit that you will now be able to use a local registry service as a pass-through mirror for reducing network bandwidth and/or ensuring you have a copy of all images local to your network should at any time Docker Hub encounter issues in the future.
The new long-term home for Warden docker images can be found here at https://hub.docker.com/u/wardenenv.
Change Summary:
Updated images to reside in the
docker.io/wardenenvregistry on Docker HubRemoved usages of images previously on
quay.io/wardenDeprecated images on
quay.io/wardenfor planned removal at some point in the future (to be not less than 90-days from today)
Version 0.5.0 (2020-05-21)
Upgrade Notes:
If PHP_VERSION is not defined in a project’s .env type the default version is now 7.3 across the board for all environment types. This should not pose any issues for recent magento1 or magento2 setups, but laravel environments will likely require an update to the project’s .env to continue using PHP 7.2 or rather than 7.3 for local development.
There is a breaking change where custom environment config specific to Linux has been used in the form of placing a .warden/warden-env.linux-gnu.yml file in the project directory. The value used for WARDEN_ENV_SUBT on Linux is now linux rather than linux-gnu. After upgrading, these files will need to be re-named from .warden/warden-env.linux-gnu.yml to .warden/warden-env.linux.yml. Where continued compatibility with prior versions of Warden is desired (for example, to not require the entire team to upgrade Warden at once), a symlink may be placed to point the old file name to the new one allowing Warden to load the definition correctly on both new and old implementations: warden-env.linux-gnu.yml -> warden-env.linux.yml
The BYPASS_VARNISH flag will continue to work as before but has been deprecated to be removed in a future release. It will no longer be included in the .env file created for new magento2 environments. Please use the new feature toggle WARDEN_VARNISH=0 to disable Varnish instead.
Enhancements:
Added
symfonyenvironment type for use with Symfony 4+ (#146 by @lbajsarowicz)Added
COMPOSER_MEMORY_LIMIT=-1to env on allphp-*containers (#154 by @navarr)Added new feature flag
WARDEN_DBto enable/disable service on per-project basis.Added new feature flag
WARDEN_ELASTICSEARCHto enable/disable service on per-project basis.Added new feature flag
WARDEN_VARNISHto enable/disable service on per-project basis.Added new feature flag
WARDEN_RABBITMQto enable/disable service on per-project basis.Added new feature flag
WARDEN_REDISto enable/disable service on per-project basis.Added new feature flag
WARDEN_MAILHOGto enable/disable service on per-project basis.Updated
WARDEN_ALLUREto now enable Allure container on any environment type.Updated
WARDEN_SELENIUMto now enable Selenium containers on any environment type.Updated
WARDEN_BLACKFIREto now enable Blackfire containers on any environment type.Updated
env-initcommand to include locked values forMARIADB_VERSION,NODE_VERSION,PHP_VERSION, andREDIS_VERSIONforlaravelenvironment types.Updated
localenv type so it can now include common services by adding the above feature flags to the project.envfile.
Version 0.4.4 (2020-05-14)
Enhancements:
Updated
php-fpmimages to usefpm-loadersvariant of base image to include IonCube & SourceGuardian from upstream imagesUpdated
php-fpmimages fix for directory ownership of mounted volume paths for future flexibility by moving it to thedocker-entrypointscript with an env varCHOWN_DIR_LISTto specify what directories to chown on container startup
Bug Fixes:
Fixed missing SSH agent forwarding in
php-blackfirecontainerFixed lack of
extra_hostsinphp-blackfireandblackfire-agentcontainers (issue #145)Fixed missing
extra_hostsline for non-subdomain entry in/etc/hostsonseleniumcontainerFixed
$OSTYPEcheck for compatibility with OpenSUSE which useslinuxrather thanlinux-gnu(#149 by @Den4ik)
Version 0.4.3 (2020-05-02)
Enhancements:
Updated init routine allowing
WARDEN_HOME_DIRandWARDEN_COMPOSER_DIRto be overridden via environment variablesUpdated environment configuration to reference
WARDEN_SSL_DIReliminating hard-coded~/.warden/sslreferencesUpdated warden global docker config to reference
WARDEN_HOME_DIReliminating hard-coded~/.wardenreferencesUpdated
warden upto return an error when docker is not running rather than blindly attempt to start global services
Version 0.4.2 (2020-04-15)
Enhancements:
Added
WARDEN_SYNC_IGNOREto support passing a comma-separated list of additional per-session-ignores to Mutagen when sync sessions are started (#142 by @davidalger)Added pause, resume and monitor to
warden synccommand (#141 by @fooman)Changed Mutagen sync to pause on
warden env stopand resume onwarden env up -d(#141 by @fooman)
Bug Fixes:
Removed exclusion of (commonly large) files types (*.sql, *.gz, *.zip, *.bz2) from sync sessions (as introduced in 0.4.0) because it broke the ability to use artifact repositories with composer (#142 by @davidalger)
Version 0.4.1 (2020-04-11)
Bug Fixes:
Removed
tmpfsvolumes from sub-directories of/var/www/htmlwhenWARDEN_TEST_DB=1was set due to compatibility issues (#139 by @lbajsarowicz)
Version 0.4.0 (2020-04-02)
Upgrade Notes:
The introduction of SSH Agent Forwarding support in PR #121 results in Warden now requiring Docker Desktop 2.2.0.0 or later for macOS clients. Please upgrade Docker Desktop prior to upgrading to the latest Warden release to avoid errors relating to unauthorized mounts.
Enhancements:
Added MySQL 5.6 and 5.7 images to Quay repository for use with Warden environments
Added support for Integration, Unit and API Tests leveraging a
MySQL 5.7container running ontempfsmemory disk (#115 by @lbajsarowicz)Added
WARDEN_ALLUREsetting to control Allure separately from Selenium for use reporting on Integration and Unit tests (#117 by @lbajsarowicz)Added ssh agent forwarding support on both macOS and Linux hosts (#121 by @davidalger)
Updated entrypoint in php-fpm images to support mounting PEM files into
/etc/pki/ca-trust/source/anchors(3a841b7d)Updated config for Mutagen sync to exclude large files (*.sql, *.gz, *.zip, *.bz2) from sync sessions
Bug Fixes:
Fixed issue where
-inWARDEN_ENV_NAMEwould results in0.0.0.0being used inextra_hostspassed to containersFixed race condition caused by docker-compose starting two containers with identical mounts simultaneously (issue #110)
Fixed issue with incorrect network name reference when uppercase characters are present in
WARDEN_ENV_NAME(issue #127)Fixed issue where Mutagen sync autostart would attempt to start when php-fpm container was not running (ex: when executing
warden env up -d dbto start only the db service)
Version 0.3.1 (2020-03-06)
Upgrade Notes:
If you’re upgrading from version 0.2.x to 0.3.x for the first time, please reference upgrade notes for Warden 0.3.0 and plan accordingly.
Bug Fixes:
Fixed issue where
env upandenv startwould exit with an error on env types not using Mutagen sessionsFixed issue where
env downandenv stopwould exit with an error on env types not using Mutagen sessions
Version 0.3.0 (2020-03-06)
Upgrade Notes:
The fix for issue #65 required removing the warden network from each environment’s services (see commit 36cb0174) and as a result environments referencing the warden network in per-project .warden/*.yml configuration files may need to be updated for compatibility with Warden 0.3.0.
Should you see an error like the following when running warden env ... then this applies to you:
ERROR: Service "nginx" uses an undefined network "warden"
To resolve this issue, simply remove the following from each service defined in .warden/*.yml files on the project similar to what was done in commit 36cb0174 on the base environment definitions:
networks:
- warden
- default
Bug Fixes:
Updated to no longer connect environment containers to
wardennetwork and instead peertraefikandtunnelcontainers with each project when it is started (issue #65)
Enhancements:
Added automatic start of Mutagen sync on
env upandenv startwhen sync is not connected (issue #90)Added automatic stop of Mutagen sync on
env downandenv stop(issue #90)Updated routing rules so Traefik will now by default route both example.com and *.example.com to application (#111 by davidalger)
Version 0.2.4 (2020-02-29)
Bug Fixes:
Updated environment path (
WARDEN_ENV_PATHin scripts) to use physical vs logical current working directory to resolve issues with using symlinked file paths (issue #101)Removed confusingly quoted placeholder values related to Blackfire from env file generated by
env-initRemoved timeout for Selenium Hub, increased timeout for MFTF’s
command.phpendpoint to 10 minutes (#107 by lbajsarowicz)Fixed issue where
warden sync startwould infinitely wait when Mutagen encountered an error (#100 by Lunaetic)
Version 0.2.3 (2020-02-14)
Bug Fixes:
Fixed mutagen version check (issue #95); (#94 by blakesaunders)
Enhancements:
Added
explicit_defaults_for_timestamp=ontodbsettings onmagento2environment allowingsetup:db:statusto report clean (2.3.4 and later) (issue #89)
Version 0.2.2 (2020-02-09)
Enhancements:
Updated sign-certificates command to specify “O” value and “extendedKeyUsage” to comply with stricter SSL guidelines (issue #85)
Bug Fixes:
Fixed missing CN value on CA used to sign SSL certificates (issue #85)
Version 0.2.1 (2020-01-30)
Upgrade Notes:
If you’re upgrading from version 0.1.x to 0.2.x for the first time, please reference upgrade notes for Warden 0.2.0 and plan accordingly.
Enhancements:
Added support for using
~/.warden/.envto configure aspects of Global Services (see docs for details) (issue #13)Updated
sync startto no longer callmutagen daemon startas Mutagen now does this automatically.Updated
warden installto include short hostname in the common name used when signing the Root CA used by Warden allowing easier identification and interoperability when a single user is running Warden across multiple workstations.
Version 0.2.0 (2020-01-27)
Upgrade Notes:
As mentioned below this release of Warden brings with it an update to Traefik 2.1. The v2 line of Traefik completely overhauled the labelling system used to define routes. It also opens the door to new possibilities. All labeling on built-in environment configurations has been updated for compatibility with new versions of Traefik. However, this is a breaking change in the two following scenarios:
The
localenvironment type is being used. Whenlocalenv type is used, all config is contained in the project’s.warden/directory and routes setup via labels on the custom containers will naturally need to be updated.Projects using custom labels applied via override files such as
.warden/warden-env.ymlmay need to be updated.
Please reference the updated base environment definitions for examples of how to update the labels on custom definitions.
Environments referencing laravel.conf in custom configuration within .warden directory must update their configuration to reference the generic application.conf instead as the file was renamed in the Nginx image for re-use in the future on additional environment types.
Docker images have all been re-located and/or mirrored to Quay with all built-in environment types having been updated to reference the images at the new location. Images currently on Docker Hub will remain available in order to preserve functionality of Warden 0.1.x release line (UPDATE These images have been removed as of May 28th, 2020), but will no longer be updated and compatibility with all functionality in Warden 0.2.0 is not guaranteed. Where these images are referenced in per-project configuration within the .warden directory, it is strongly suggested these references be updated to use images at the new locations:
Enhancements:
Added native support for multi-domain projects without requiring per-project routing configuration. This is accomplished using wildcard rules in the new Traefik labeling configuration allowing Warden to automatically route any sub-domain of the
TRAEFIK_DOMAINvalue in.envto the nginx and/or varnish container for handling by the application.Added
warden debugcommand which launches user into Xdebug enabledphp-debugcontainer for debugging CLI based workflows (issue #33; #35 by molotovbliss)Added labels to
fpmcontainers inmagento2environment to support use of Live Reload via an injected JS snippet in the site header or footer (issue #62)Added
WARDEN_ENV_NAMEas prefix to each container hostname in compose configs (issue #29)Added
BYPASS_VARNISHflag which when set in project.envfile will cause Traefik to route requests directly tonginxcontainer rather thanvarnish(issue #63)Added
laravelenvironment type to support local development of Laravel based applications (issue #60)Added Allure reporting support to Selenium setup for MFTF (#69 by lbajsarowicz)
Updated Traefik container and configuration to deploy Traefik 2.1; this is a potentially breaking change as Traefik v2 overhauled the labeling used to auto-configure routing on containers. All labeling on built-in environment configurations has been updated, but where labels are used to configure Traefik in per-project configuration files such as in
.warden/warden-env.ymlthe project may require a coordinated update to labeling for continued interoperability of the customizations with Warden 0.2.0+Updated Mutagen usage to rely on new commands and configuration in Mutagen 0.10+ (Warden will now throw an error if you attempt to start a sync and have a version of Mutagen older than 0.10.3 installed)
Updated configuration setup for SSH tunnel container so it will automatically re-instate the needed configuration (if missing) when running
up,start, orrestartto mitigate issue caused by macOS Catalina updates wiping out customizations to/etc/ssh/ssh_config(issue #59)Updated
env-initcommand to include default values for available variables in the project’s.envmaking customization a bit easier (issue #32)Updated default Elasticsearch version for
magento2environments from 5.4 to 6.8 (issue #66)Updated Selenium setup for MFTF to use hub and headless nodes by default (issue #67; #68 by lbajsarowicz)
Updated environment templates to pass
TRAEFIK_DOMAINandTRAEFIK_SUBDOMAINintophp-fpmandphp-debugfor use in documented install routine (issue #42)Updated default PHP version for
magento2environments from 7.2 to 7.3 (issue #75)Updated default Varnish version for
magento2environments from 4.1 to 6.0 (LTS)Changed
laravel.confin nginx image to genericapplication.confUpdated defaults for nginx on
magento2environments to be set in the docker env vs built into the nginx image; the image now defaults to loading the genericapplication.confwith/var/www/htmlas webroot
Bug fixes:
Fixed broken incorrect Blackfire environment template name for magento1 env type (issue #48)
Fixed inability to get help content specific to env sub-commands using
warden env <command> -h
Version 0.1.12 (2019-12-10)
Bug fixes:
Fixed issue breaking SSH tunnel as used for port-forwards.
Version 0.1.11 (2019-11-26)
Enhancements:
Added option to enable and setup Selenium for use with MFTF via flag in project’s
.envfile (#40 by lbajsarowicz)Added error message to
warden installwhendocker-composeversion in$PATHis incompatible (#41 by lbajsarowicz)
Version 0.1.10 (2019-09-23)
Added native support to Warden for using the split-database system in Magento Commerce during local development (#5 by navarr)
Added support for optional Blackfire profiling which can be enabled via settings in the project’s
.envfile (#12 by navarr)
Version 0.1.9 (2019-09-19)
Pinned image for Traefik to use
traefik:v1.7imgae vstraefik:latestto resolve issues caused by Traefik 2.0 having breaking changes in the configuration API
Version 0.1.8 (2019-09-06)
Introduced
NODE_VERSIONenvironment variable to specify which version of NodeJS to install in FPM images during container startup (by default v10 is now pre-installed inmage1-fpmandmage2-fpmimages at the time of this release; latest images must be pulled from Docker Hub for this to work).Fixed issue where if sub-directory included a relative symlink pointing
.envat parent project’s.envfile,--project-dirpassed todocker-composecould be specified incorrectly when running warden from within the given sub-directory.
Version 0.1.7 (2019-08-23)
All published ports now listen on
127.0.0.1by default as opposed to0.0.0.0for a local environment that is fully inaccessible to the outside world apart from using a proxy (such as Charles).
Version 0.1.6 (2019-08-10)
Changed the default value
env-inituses forTRAEFIK_SUBDOMAINtoapp(previously it would match the environment type)Added mount of
~/.warden/ssl/rootca/certs:/etc/ssl/warden-rootca-cert:roto each env type’sphp-fpmandphp-debugcontainers to support FPM images appending this CA root to the trusted ca-bundle on container startAdded
extra_hostsentry to set an entry in/etc/hostswithinphp-fpmandphp-debugcontainers pointing the project’s primary domain to the Traefik service IP address socurlandSoapClient(for example) may work inside a project’s FPM servicesAdded FPM containers to the “warden” network so they’ll be able to route http requests to Traefik
Version 0.1.5 (2019-07-19)
Changed Mutagen polling interval from 20 to 10 seconds
Removed
generateddirectory from exclusions in Mutagen sync configuration (having this ignored breaks ability to step into generated class files during Xdebug sessions)Fixed issue with Mutagen sync cofiguration causing
pub/static(and other files) to have incorrect permissions resulting in 404’ing static resourcesFixed issue causing
warden envto break when run from a path which contained a space (issue #3)
Version 0.1.4 (2019-07-15)
Removed exclusion of ‘node_modules’ from Mutagen sync for Magento 2 to avoid breaking Dotdigitalgroup_Email module in vendor directory (this module includes a node_modules dir pre-installed).
Version 0.1.3 (2019-07-10)
Added ability on linux to prevent warden from touching dns configuration when
~/.warden/nodnsconfigis present.Updated install routine to properly trust CA root on Ubuntu (previously warden install would simply fail)
Updated DNS auto-configuration on linux systems to handle systemd-resolved usage.
Fixed issue on Ubuntu where dnsmasq container would fail to bind to port 53.
Fixed issue where lack of
~/.composerdir (resulting in creation by docker) can cause permissions error inside containers.Fixed issue with
bin/magento setup:installallowing it to pass permissions checks (#2 by fooman)Fixed issue where
envandenv-initcommands failed to reset shell colors when printing error messages (issue #4)
Version 0.1.2 (2019-07-03)
Added
warden shellcommand for easily dropping into thephp-fpmcontainer (container name is configurable for supporting “local” environment types)Added
max_allowed_packet=1024Mtodbcontainers for M1 and M2 environments to avoid imports or upgrade routines from failing on large packets.Changed
php-fpmandphp-debugto use custom images based oncentos:7as opposed to thealpine3.9based official php-fpm images to avoid seg-faults when Source Guardian loader is installed alongside Xdebug.Fixed issue with DEFINER stripping in
db importallowing it to correctly strip from both TRIGGERS and ALGORITHM clauses.
Version 0.1.1 (2019-06-27)
Fixed bug where ‘db’ commands broke due to template overhaul in 0.1.0 release.
Version 0.1.0 (2019-06-27)
Changed the env type setup to automatically include additional configuration based on $OSTYPE.
Changed the environment template structure to utilize per-OSTYPE docker-compose config additions where environments differ from one host OS to another (such as
magento2env type, which uses plain mounts onlinux-gnubut sync sessions ondarwin)Fixed a few error messages so they won’t change shell text color permanently when they output.
Fixed sync command to output error message when any sub-command is run on an env lacking a mutagen configuration.
Version 0.1.0-beta7
Added Xdebug support via additional
php-debugcontainer which Nginx routes to based on presence ofXDEBUG_SESSIONcookie.Fixed Elasticsearch images used in Magento 2 environment templates and configured for lower overall memory utilization upon container start for a smaller env footprint.
Version 0.1.0-beta6
Added support for extending environment configuration on a per-project basis via
.warden/warden-env.ymland.warden/warden-env.<WARDEN_ENV_TYPE>.ymlfilesAdded
localenv type to support projects which do not conform to any of the templated environments suppoprted out-of-the-boxChanged Traefik configuration to automatically use the warden docker network (eliminates need for
traefik.docker.network=wardenlabel on all proxied containersChanged Traefik configuration to require containers be explicitly enabled for Traefik via the label
traefik.enable=trueChanged docker-compose environment type templates to version 3.5 for better extendability in project override files
Fixed bug where resolver setup on macOS would fail if
/etc/resolverdir was already present during install (#1 by fooman)
Version 0.1.0-beta5
Fixed issue with docker-compose exit codes would result in error messages from global trap
Added auto-install of mutagen where not already present when any sync command is run
Added support for WARDEN_WEB_ROOT env setting to publish a sub-dir into /var/www/html
Changed images for php-fpm to use environment type specfic images from davidalger/warden repository
Version 0.1.0-beta4
Added “env” command for controlling docker based per-project environments (currently this simply passes all commands and arguments through to docker-compose).
Added “env-init” to add
.envfile with Warden configuration to the current working directory.Added “sync” command with start/stop/list sub-commands for controlling per-project mutagen sessions.
Added “db” command for connecting to mysql and importing databases into the db service.
Added three environment types:
magento1,magento2-mutagen,magento2-nativewith auto-selecting the correct M2 environment on Linux/macOS.Fixed dnsmasq setup on Linux (nameserver is now configured on Linux when NetworkManager service is active during install; tested on Fedora 29)
Version 0.1.0-beta3
Fixed infinite loop on initial setup routine.
Version 0.1.0-beta2
Updated assertion to automatically execute “warden install” if installed metadata indicator is older than bin/warden.
Fixed issue on Linux hosts where ssh_key.pub was unusable inside tunnel container due to bad permissions.
Version 0.1.0-beta1
Initial beta release.