You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 27, 2018. It is now read-only.
The one thing I don't like is the redundancy of commands, i.e. they all use the same few setup commands. Sample shows where the elasticsearch is used in dev and test environments, not staging or production. This sample could probably be cleanup up further with some yaml inheritance, but note that lists are not merged in yaml inheritance, only dictionaries, so it's a bit of a trade-off of dry vs readable and extensible.
Since multiple environments can be setup the same, why not try and DRY this up? We already use
Dry::Config
, so it's easy enough.The goal would be to executed
docker-rails <name>
, where in the file below, the name matches an environment (but it's just a name, no magic there).i.e.
docker-rails test
vsdocker-rails parallel_tests
vsdocker-rails development
Here's a first draft of what would be inherited and ultimately fed to
docker-compose
:The text was updated successfully, but these errors were encountered: