Suppress redis logs, separate file with redis config
This commit is contained in:
parent
2fa0a50d61
commit
5413a3e7a1
|
@ -12,7 +12,10 @@ echo "Resetting block in redis"
|
||||||
docker network create redis_net > /dev/null 2>&1 || true
|
docker network create redis_net > /dev/null 2>&1 || true
|
||||||
docker kill redis > /dev/null 2>&1 || true
|
docker kill redis > /dev/null 2>&1 || true
|
||||||
docker rm redis > /dev/null 2>&1 || true
|
docker rm redis > /dev/null 2>&1 || true
|
||||||
docker run --rm --network redis_net -d --name redis -v "$PWD/validator$N/$TARGET_NETWORK/db:/data" redis:5.0.5-alpine > /dev/null 2>&1 || true
|
docker run --rm --network redis_net -d --name redis \
|
||||||
|
-v "`pwd`/validator$N/$TARGET_NETWORK/db:/data" \
|
||||||
|
-v "`dirname "$(pwd)"`/src/oracle/configs/redis.conf:/usr/local/etc/redis/redis.conf" \
|
||||||
|
redis:5.0.5-alpine > /dev/null 2>&1 || true
|
||||||
|
|
||||||
../src/oracle/scripts/resetToBlock/run.sh redis_net $1
|
../src/oracle/scripts/resetToBlock/run.sh redis_net $1
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
loglevel warning
|
|
@ -62,6 +62,8 @@ services:
|
||||||
image: redis:5.0.5-alpine
|
image: redis:5.0.5-alpine
|
||||||
volumes:
|
volumes:
|
||||||
- '${PWD}/${TARGET_NETWORK}/db:/data'
|
- '${PWD}/${TARGET_NETWORK}/db:/data'
|
||||||
|
- './configs/redis.conf:/usr/local/etc/redis/redis.conf'
|
||||||
|
command: ["redis-server", "/usr/local/etc/redis/redis.conf"]
|
||||||
networks:
|
networks:
|
||||||
- test_network
|
- test_network
|
||||||
rabbitmq:
|
rabbitmq:
|
||||||
|
|
|
@ -66,6 +66,8 @@ services:
|
||||||
image: redis:5.0.5-alpine
|
image: redis:5.0.5-alpine
|
||||||
volumes:
|
volumes:
|
||||||
- '${PWD}/${TARGET_NETWORK}/db:/data'
|
- '${PWD}/${TARGET_NETWORK}/db:/data'
|
||||||
|
- './configs/redis.conf:/usr/local/etc/redis/redis.conf'
|
||||||
|
command: ["redis-server", "/usr/local/etc/redis/redis.conf"]
|
||||||
networks:
|
networks:
|
||||||
- redis-signer-net
|
- redis-signer-net
|
||||||
- redis-keygen-net
|
- redis-keygen-net
|
||||||
|
|
|
@ -14,8 +14,8 @@ redis.on('connect', () => {
|
||||||
logger.info('Connected to redis')
|
logger.info('Connected to redis')
|
||||||
})
|
})
|
||||||
|
|
||||||
redis.on('error', () => {
|
redis.on('error', e => {
|
||||||
logger.warn('Redis error')
|
logger.warn('Redis error %o', e)
|
||||||
})
|
})
|
||||||
|
|
||||||
module.exports = redis
|
module.exports = redis
|
||||||
|
|
Loading…
Reference in New Issue