Repository navigation
Backport latest docker-starter improvements - #108
Merged
Merged
Conversation
* Git worktree isolation (project name suffix, shifted ports, `castor docker:ports`) * One-shot psql queries with `castor pg -- "SELECT ..."` (adds `docker_compose_exec()`) * Rename `.castor/database.php` to `.castor/postgres.php` * Simplify `docker:push` by delegating to buildx bake's native compose support (keeps `--tag`) * Builder: remove the broken `sudo` package, do not display the user name in PS1 * Autocomplete the `--service` option, simplify `workers_stop`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backports the recent changes of jolicode/docker-starter.
-wt-<name>and ports are shifted.castor aboutshows the right URLs, andcastor docker:portsdisplays them.castor pg -- "SELECT now();"orcastor pg -- -c "\dt", with the psql exit code propagated. Addsdocker_compose_exec()and renames.castor/database.phpto.castor/postgres.php.docker:push(docker-starter#429): delegates tobuildx bake's native compose support instead of generating an HCL file. The qotd-specific--tagoption is kept (--set <service>.tags=…+--push). The--dry-runoutput is equivalent to the previous one in dev and prod, with and without--tag.sudopackage, which cannot work with a UID that has no/etc/passwdentry (docker-starter#433), and showbuilderin PS1 instead of "I have no name!" (docker-starter#432).--serviceoption ofbuild/up/stop, simplifyworkers_stop.Note: docker-starter uses
docker\get_service_namesas the autocomplete callback, but Symfony passes aCompletionInputto it, which would be taken as the profile name. A dedicatedcomplete_service_names(CompletionInput $input)is used here instead.