# Council Daemon v1.6.0 update guide ## From source If you running the daemon from source: - stop the app - pull main branch: `git pull origin main` - checkout current commit: `git checkout 93850891c529111f0a8cf15c18c3a18fdc7611a2` - install the deps: `yarn` - rebuild the app: `yarn build` - start the daemon: `yarn start:prod` ## Docker image If you are using a docker image, pull the new image: ```bash docker pull lidofinance/lido-council-daemon@sha256:b72998cb4fc0b6dd8c81dc0d3c0b8798d1bade2dcde4cd8b8706dec633d4a4cf ``` Stop previous version and then run the new one: ```bash docker run -i -t \ -v ${PWD}/.volumes/council/cache:/council/cache/ \ -p 3000:3000/tcp \ -e PORT='3000' \ -e LOG_LEVEL='debug' \ -e LOG_FORMAT='simple' \ -e RPC_URL='<rpc url>' \ -e KAFKA_SSL='true' \ -e KAFKA_SASL_MECHANISM='plain' \ -e KAFKA_USERNAME='<kafka user>' \ -e KAFKA_PASSWORD='<kafka password>' \ -e KAFKA_BROKER_ADDRESS_1='<kafka address>' \ -e KAFKA_TOPIC=defender \ -e WALLET_PRIVATE_KEY \ lidofinance/lido-council-daemon@sha256:b72998cb4fc0b6dd8c81dc0d3c0b8798d1bade2dcde4cd8b8706dec633d4a4cf ``` ### Envs Please make sure that these variables are set correctly (creds for Kafka are the same as before): ```env RPC_URL=<mainnet RPC url> KAFKA_USERNAME=<username> KAFKA_PASSWORD=<password> KAFKA_BROKER_ADDRESS_1=pkc-l7q2j.europe-north1.gcp.confluent.cloud:9092 WALLET_PRIVATE_KEY ``` The other ENV variables do not need to be changed, they should have default values: ```env PORT=3000 LOG_LEVEL=debug LOG_FORMAT=json PUBSUB_SERVICE=kafka KAFKA_TOPIC=defender KAFKA_SASL_MECHANISM=plain KAFKA_SSL=true ``` The new version will reset the cache, the start will about an hour.