My preference is to follow the composition root pattern - put components representing logical chunks of infrastructure in separate files and instantiate them in the main file
d
damp-table-85095
09/13/2020, 1:18 AM
If part of my script entails building a docker image and deploying it on some platform, how would you instantiate a component from the main file to get that done? Is there some sort of aggregate component you could create and then instantiate out of main?