If you are using VSCode and remote-containers extension, you are ready to go. Simply reopen in container.
If not, you can use the .misc/docker/dev/docker-compose.yml file:
docker-compose -f .misc/docker/dev/docker-compose.yml up -d
docker-compose -f .misc/docker/dev/docker-compose.yml exec asis bashUse the following command:
mix setupIf you only want to update the dependencies, use:
mix update.depsAdditionally, to seed data, use:
# Seed everything
mix seed
# Seed synchronously (single thread)
mix seed sync
# Seed everything from a module
mix seed geo
# Seed an entity from a module
mix seed geo.world
# Seed multiple entities or modules
mix seed icd_10 geo.city registries
# Seed multiple entities or modules synchronously (single thread)
mix seed sync consolidations geo.country registries.birth_registryTo start the server:
mix startTo drop the database, seed, and start the server, use:
mix reseed
mix startRemember to stop the metabase container before performing any operation that drops the database:
docker-compose -f .misc/docker/dev/docker-compose.yml stop metabase