Ideas on re-using internal recipes / automated dev setups #3475
marvinhinz
started this conversation in
General
Replies: 1 comment 1 reply
-
I was thinking about C adding ability for Deployer import() functionality to require external recipes via https. Will it help? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there,
currently we are using deployer on a central ssh jump server, that has access to all of our webservers.
Our developers usually dont have direct ssh access to those from their machines, only to the central login server. From there they can deploy by
cd projects/projectname && dep deploy prod
. All the projects deploy.php files and our many custom recipes and deploy flows are centralized in a single git repo. That works pretty well for us.Now i am evaluating docker and automatic dev environments. Ideally when a developer checks out an existing project locally, i'd like to have a deploy.php in the git repo root, that contains some internal logic for reusing dockerfile & docker-compose templates and automated project setup commands.
I really dislike the idea of copy pasting the same docker-compose.yml and reusing it for similar projects. From experience this will lead to configuration drift quickly.
All that could be solved by using deployer on localhost (dev machine), and some central custom recipes that act as as pre-processor. Maybe there are already solutions for this kind of problem, but i could not find something fitting.
So the question is how can i reuse our custom deployer code on multiple projects.
Maybe it would be nice if deployer had a function to require external recipes directly, and load them automatically:
Sure this could also be achieved by including the
composer-namespace/name
in the root composer.json, and something like:But this will lead to file not found errors when for example executing
dep dev:setup
before issuing composer install.For us this also would have a slight drawback, as we mostly keep the project parts inside separate folders inside the repo, so we currently dont have a composer.json at the repo root.
Would love to get some opinions on this :)
Beta Was this translation helpful? Give feedback.
All reactions