- clone this repo
git clone https://github.com/bc-ticketing/deployment.git
-
edit
.env
file with necessary environment variables such as passwords, api key etc. -
download latest changes from docker hub:
docker-compose pull
- run containers
docker-compose up
- Delete existing db:
cd ganache-snapshot
rm -rf ganache_db/
- Start a new ganache-cli with desired configuration:
ganache-cli -m <MNEMONIC> -a <NUMBER_OF_ACCOUNTS> --db ganache_db
- run migration scripts
cd path-to-idetix-repo
truffle migrate --reset --network ganachecli
- Stop ganache-cli
- Build the docker image
docker build -t idetix/ganache-cli .
- Push to dockerhub
docker push idetix/ganache-cli