I’m trying to migrate an existing dockerized H2 installation to an external MySQL database. However, I can’t figure out how to run the database migration commands (as described here) on the docker installation. Am I supposed to run exec [container id] /bin/bash and then set the new environment variables inside the container?
The default docker command for changing environment variables, i.e:
This is a long shot, but did you manage to do this?
After being hung up on this unresolved issue, I found a way to temporarily move forward. I’ll be building a custom jar file, and I’d like to migrate an existing demo container using H2 to a Postgres container.
I’m going to try to bind-mount a custom script over the normal /app/run_metabase.sh entrypoint to accomplish the migration, but I’m sure other people have run into this same issue. It seems like it could work…