deployment

  1. clone this repo
git clone https://github.com/bc-ticketing/deployment.git
  1. edit .env file with necessary environment variables such as passwords, api key etc.

  2. download latest changes from docker hub:

docker-compose pull
  1. run containers
docker-compose up

How to update ganache-cli with new snapshot

  1. Delete existing db:
cd ganache-snapshot
rm -rf ganache_db/
  1. Start a new ganache-cli with desired configuration:
ganache-cli -m <MNEMONIC> -a <NUMBER_OF_ACCOUNTS> --db ganache_db
  1. run migration scripts
cd path-to-idetix-repo
truffle migrate --reset --network ganachecli
  1. Stop ganache-cli
  2. Build the docker image
docker build -t idetix/ganache-cli .
  1. Push to dockerhub
docker push idetix/ganache-cli