KamaFi Retirement Snapshot
How to run it
From the root directory
docker build -f .ci/dockerfiles/kamafi-retirement-snapshot-data-migrations-local.dockerfile -t kamafi-retirement-snapshot_data_migration .
docker run migration
Re-create the docker images
docker-compose up --force-recreate
From root directory /kamafi-retirement-snapshot
docker-compose up
This will then run the docker-compose.yml
configuration, which will do the following:
- Create a PostgreSQL database
- Run the
KamaFi.Retirement.Snapshot.Data.Migrations
to create theretirement_snapshot
database, run the EF migrations and insert the fake data. Essentially what is defined in the project
-
Stop the container(s) using the following command:
docker-compose down
-
Delete all containers using the following command:
docker rm -f $(docker ps -a -q)
-
Delete all volumes using the following command:
docker volume rm $(docker volume ls -q)
-
Restart the containers using the following command:
docker-compose up -d