Hello everyone! How do you handle the upgrades whe...
# docker
p
Hello everyone! How do you handle the upgrades when running meltano on docker in production? I am using the default Dockerfile from files-docker bundle that uses the latest meltano image (meltano/meltano:latest). So I understand that when building/rebuilding the image the
RUN meltano install
step will upgrade(i.e. install latest) meltano package, update files, recompile models as specified in the meltano upgrade CLI reference. For the system database (which in my case is running externally on a postgresql), how will the upgrade happen? During the build my CICD pipeline has no access to the production meltano system database. While running the newly build docker image using the default docker-compose.prod.yml , there is no step which does
meltano upgrade database
. Should upgrading the database happen in a custom entrypoint file? (I am using a custom entrypoint.sh files do to other stuff like creating/updating meltano users, copying a custom airflow webserver_config.py file to
.meltano/run/airflow
folder etc.) Or is there a better way?
d
@pankaj_saini All
meltano
commands that need the system database automatically run migrations when they're run, so there's no need to
meltano upgrade database
manually
p
Oh, that is beautiful ❤️meltano
Thanks @douwe_maan!