Repository navigation
0.8.0
The 0.8.0 development work. Two changes need reading before upgrading — unpinned service versions
now warn (and become an error in 0.9.0), and gum becomes a dependency. Both are covered in
RELEASE-NOTES-0.8.0.md.
Added
roll env doctor— seventeen checks over Docker, containers, ports, search engine and disk, with
--format jsonand an exit code you can gate on.--format jsononroll status,roll env describe,roll registry listandroll env doctor.
No ANSI, no credentials, values escaped.roll has-command <name>— exit 0/1, no output, for feature detection in scripts.roll env up --wait, backed by new healthchecks for db, redis, elasticsearch, opensearch,
rabbitmq, varnish and nginx. The search engines are probed through/_cluster/healthrather than a
port, because those containers can hold a port open while the cluster inside them is dead.roll env sh <service> '<command>'— runs throughsh -cinside the container, so redirects and
pipes apply there rather than on the host.roll config check-pinsandroll config fix-pinsfor the version-pin migration.roll myloader --normalize-source-ddl— strips theENCRYPTIONtable option and remaps
utf8mb4_0900_*collations so a MySQL 8 dump loads into MariaDB. Without the flag, a failed run
now names the cause instead of reportingTrace/breakpoint trap.ROLL_PUBLISH_PORTS=0runs an environment without publishing host ports, for hosts running many
environments at once.ROLL_BROWSERSYNC=1publishing ports on php-fpm was a known cause of
"port is already allocated" that no.roll/roll-env.ymloverride could fix.ELASTICSEARCH_JAVA_OPTS/OPENSEARCH_JAVA_OPTSreplace the hardcoded 512MB search-engine heap.ROLL_ENV_INIT_FORCE=1letsroll env-initoverwrite an existing.env.rollnon-interactively.copyfromcontainer,copytocontainer,magento2/themeandconvertmoved in from the internal
command pack, each with its outstanding bugs fixed in transit:copytocontainer --allwas
unreachable andcopytocontainer <folder>copied the whole project root into the destination,
copyfromcontainer --realpathtested a container path against the host filesystem and built a
destination whose parent never existed, theme discovery was relative to the working directory and
only ever examined the first theme, the Gulp-or-Yarn choice is now made per theme so mixed
projects build correctly, andconvertoverwroteELASTICSEARCH_VERSIONwith a hardcoded value
and wrote aROLL_NO_STATIC_CACHINGkey no schema defines — it now translates that legacy
negative-form value intoROLL_MAGENTO_STATIC_CACHING.roll registry listnow carries real descriptions and categories, from@description:and
@category:headers in the help files.- Documentation: driving RollDev from a script, service version pins,
unattended operation, and thedoctorcommand.
Changed
- Unpinned service versions now warn, and will be an error in 0.9.0. The fallback is the version
the project was already running, so nothing changes behaviour today. A version set in global config
(~/.roll/.env) counts as unpinned: it is not in the repository, so a colleague without that line
still resolves a different image.fix-pinswrites the inherited value in that case, not
RollDev's built-in default. - gum is a dependency for interactive prompts. Every prompt is also reachable by flag,
environment variable or positional argument, so scripted use works without it, androll install
warns rather than failing when it is missing. - Every prompt now resolves flag/env first, uses gum only on a terminal, and otherwise fails naming
the flag that would have answered it — an unattended run can no longer hang on a prompt. roll env-initvalidates the environment name against Compose's project-name rules at creation,
instead of letting it fail later.roll tableplusis now a RollDev command in its own right, with Setapp-aware discovery and a
clear message on Linux rather than an obscure failure.dialogis no longer used anywhere.
Fixed
magento2environments came up without Varnish, a search engine or RabbitMQ unless the
toggles were spelled out. The environment-type defaults ran after the schema defaults had already
filled those variables in, so every${VAR:-1}deriving them was unreachable.- A restored volume came back owned by root, so Elasticsearch could not start.
roll restore
creates each volume withdocker volume createand then extracts into it as root with
--strip-components=1, which discards the archive's top-level entry — the only one carrying the
data directory's own ownership. Docker's copy-up did not compensate, because it fires only for an
empty volume and the restore populates this one before any service mounts it. Services that start
as root chown their data directory themselves; Elasticsearch and OpenSearch run as uid 1000 and
died at boot withAccessDeniedException: .../data/.es_temp_filewhile the restore reported
success. The owner is now derived from the restored content after each extraction. roll dbworks against MariaDB 11, which ships onlymariadb-dump/mariadb.roll registry categoriesno longer dies on macOS — bash 4 syntax under a bash 3.2 shell.roll backup --helpandroll status --helpno longer exit 2 on macOS. bash 3.2 mis-parses a lone
apostrophe inside a heredoc nested in$( ); Ubuntu-only CI could not see it.roll db/env/redis/svc/restore/restore-full/duplicate --helpno longer fork until killed. Those
commands take arbitrary flags, so roll hands--helpto them directly, and each re-invoked itself.roll redis --helpwas unreachable rather than recursive, and now renders.roll restorewith no backups reports it instead of dying on an internal error.roll env upno longer does a redundant compose pass every time: the network-existence check was
single-quoted, so the command substitution inside it never ran and the filter never matched.roll env describeback to ~1s from ~9s, and it no longer builds container names by string
concatenation, which broke whenever Compose named them differently. Same fix inroll vnc.roll fixownsandroll fixpermsaccept more than one path.isOnlineno longer always reports offline on Linux —ping -tis a timeout on BSD and a TTL on
GNU — soroll svc uprefreshes images there.- WSL environments get the
.linux.ymlcompose fragments. - The Portainer and Startpage service defaults are read from configuration rather than from literals
that disagreed with the schema. - An unsupported Linux distribution now warns with the CA path instead of silently skipping the
trust-store step duringroll install. roll env-init x vuejsproduces a valid project; thevuejsandlocaltypes had noinit.env.boxno longer aborts underset -uon bash 4.4 and later: it declared its width variable
without initialising it, and those versions applyset -uinside arithmetic contexts where bash
3.2 substitutes 0. Only reachable from a caller that sets-u, which is why it surfaced in the
prompt harness rather than inrollitself.
Security
- The TablePlus connection URI, which carries the database password, is no longer passed as a
process argument where anything able to readpscould see it. - The ssh-agent socket is
chmod 600and owned bywww-data, rather thanchmod 777, and the
fixup only runs when there is an agent socket to fix. - Traefik's docker socket is mounted read-only.
- Six
eval "$(cat ~/.roll/.env …)"sites are replaced with schema-validated config loading. --format jsonoutput carries no credentials, and values are escaped rather than concatenated.
Internal
- ShellCheck runs on macOS as well as Ubuntu, over
commands/**, the help files,utils/and the
CI scripts, and passes on both. The Ubuntu leg had been red for most of the cycle: Ubuntu ships
ShellCheck 0.9.0, which reports four findings (SC2002, SC2015, SC2236) that the 0.11.0 on macOS
no longer raises, so a green local run said nothing about CI. Those four are fixed in code rather
than silenced in.shellcheckrc. - A smoke suite runs on both platforms: the Docker-free command set, a prompt-contract harness, and
a parse check that catches the bash 3.2 heredoc trap and any command re-invoking its own help. - New shared libraries:
utils/interact.sh(prompts and styled output),utils/backup.sh(the
backup/restore/duplicate primitives, replacing eleven byte-identical copies) and
utils/magento2-init.sh(re-runnable install phases).restore-fullis nowrestore --include-sourcewith the old name kept as an alias, so existing scripts keep working; those two
files drop from 2 087 lines to 625.
Known issue
- A restored Elasticsearch volume comes back unwritable — the volume root is owned by uid 0 while the
image runs as uid 1000 — so the service will not start afterroll restore. The database restores
correctly. This predates the release; it is newly visible becauseenv up --waitand the
healthchecks now catch it, whereenv uppreviously returned success.