Is it possible to have `.meltano` outside of the m...
# troubleshooting
a
Is it possible to have
.meltano
outside of the main project dir? Use case: Customer asked to prepare dockerized setup for local development. I want to have base docker image that contains meltano, all the deps pre-installed. Also I need to mount host directory with meltano project for development. But when I do that
.meltano
directory gets overriden and we get really weird issues with incompatible host and local paths etc. Solution: Ideally I would have some env variable like
MELTANO_DOTDIR
, that I would point to
/opt/meltano
in docker image.
Everything works fine for me locally with
pipx
, but in this specific case I need to prepare dockerized env per customer request.
v
Have you looked at the docker file generated from the files docker setup? I'm not clear on what the issue is with using docker, could you give the steps your are using that are not working? • Yes meltano works on docker. • You can put configuration files in different places. • No I don't think you can change the meltano directory location directory today (if you need it a feature request would help!) Maybe that helps?
a
Yes, that's what I'm basing my setup on.
I found inelegant workaround at the moment: I made
.meltano
a symlink that points to
/opt/meltano
and commited it to source control. This way I can do
meltano install
at
docker build
stage and use it later when host source directory is mounted on top of
/project
But it would be nicer to have env variable 🙂