jan_kyri
04/25/2022, 10:43 AMmeltano install to cache taps & targets?
I’m containerizing Meltano with the default image and this is the step which always takes the longest and it wasn’t immediately clear how to optimize.visch
04/25/2022, 11:20 AMjan_kyri
04/25/2022, 12:38 PMvisch
04/25/2022, 1:02 PMjan_kyri
04/25/2022, 1:28 PMdocker build and the meltano install step runs, it takes the same time and reinstalls all plugins from scratch, for example rebuilding dbt every single time.
I would know how to avoid that with plain Docker by building a base image which holds all base requirements and using the base image in a downstream image with changing configuration.
As meltano install abstracts this layer away from my Dockerfile, my use case is to replicate the above process in meltano to decrease build time as much as possible.visch
04/25/2022, 1:33 PMlog-level=debug may help point to the commands that are running that you could look at ways to reduce the timetaylor
04/25/2022, 2:27 PMjan_kyri
04/25/2022, 3:58 PMmeltano install dependencies from scratch. In our case, this includes dbt core, for example.
This is a lot of idle waiting for dbt core to compile for the nth time although no transformer config was actually changed. Can these packages be cached indipendent of meltano.yml contents? I guess is there another way to inject them in the Dockerfile other than meltano install ?taylor
04/25/2022, 4:13 PMwaiting for dbt core to compile for the nth time although no transformer config was actually changedI guess I don’t understand the workflow here. Why are you having to compile it so much?
jan_kyri
04/25/2022, 4:16 PMmeltano.yml changed, hence running another docker build command, and in doing so meltano install installs the dependencies seemingly from scratch.taylor
04/25/2022, 4:17 PMedgar_ramirez_mondragon
04/25/2022, 4:28 PM.meltano/aaronsteers
04/25/2022, 6:40 PM