Skip to content

0.8.7

Latest

Choose a tag to compare

@marcepartment marcepartment released this 10 Nov 14:59

Added

  • Valkey service. ROLL_VALKEY=1 with VALKEY_VERSION runs
    ghcr.io/epartment/roll/valkey:${VALKEY_VERSION} (environments/includes/valkey.base.yml). Like
    Dragonfly it runs as the redis service, so existing app/etc/env.php files keep connecting to
    redis:6379 and roll redis keeps working (it calls valkey-cli); valkey resolves as a
    network alias. Data lives in its own valkey volume. roll backup valkey,
    roll restore --services=valkey, roll describe, roll config versions valkey and the version
    pin check all know about it. Adobe lists Valkey instead of Redis from Magento 2.4.8, so
    roll magento2-init now configures Valkey 9 for 2.4.9 and Valkey 8 for 2.4.8 (it wrote Redis
    8.0 for both before). It adds the Valkey lines when the project's init.env template is a
    custom one from ~/.roll/environments or .roll/environments that predates them, instead of
    switching Redis off and leaving no store running.

Changed

  • At most one of ROLL_REDIS, ROLL_DRAGONFLY and ROLL_VALKEY may be on. roll env and
    roll config conflicts refuse two or more. Switching Dragonfly or Valkey on is now enough by
    itself: when .env.roll does not set ROLL_REDIS, it derives as 0 instead of the default 1.
    Before, ROLL_DRAGONFLY=1 without an explicit ROLL_REDIS=0 made every roll env command fail
    with the collision error.

Fixed

  • roll restore and roll pull no longer litter the project with *.backup.<epoch> files.
    Before overwriting .env.roll, app/etc/env.php, auth.json, composer.json or
    composer.lock with the archived copy, the restore saved the old file beside it, so every pull
    whose files differed from the build server's left another copy in the project root and app/etc
    (1.3 MB per composer.lock, credentials in env.php and auth.json), usually hidden by the
    project's .gitignore. The restore now overwrites without a copy: tracked files come back with
    git checkout, and after a pull the archived env.php and auth.json are the ones wanted.
  • A failed decryption no longer empties env.php or auth.json. Encrypted configuration was
    decrypted straight into the target, which the shell truncates before gpg runs, so a wrong
    passphrase or a damaged archive left an empty file. It now decrypts into a temporary file and
    writes the target only on success.
  • RedisInsight's preset connection reaches the store. It pointed at <env>-redis, a container
    hostname only the Redis fragment sets, so it did not resolve when Dragonfly or Valkey ran the
    service; it now uses the service name redis.