lower ttl min for consul in integration tests

Signed-off-by: Alexandre Beslic <abronan@docker.com>
This commit is contained in:
Alexandre Beslic 2015-06-15 17:36:34 -07:00
parent f50cd10061
commit 4fa9dbbfe0
2 changed files with 12 additions and 1 deletions

View File

@ -12,7 +12,7 @@ DISCOVERY="consul://${STORE_HOST}/test"
CONTAINER_NAME=swarm_consul CONTAINER_NAME=swarm_consul
function start_store() { function start_store() {
docker_host run --name=$CONTAINER_NAME -h $CONTAINER_NAME -p $STORE_HOST:8500 -d progrium/consul -server -bootstrap-expect 1 -data-dir /test docker_host run -v $(pwd)/discovery/consul/config:/config --name=$CONTAINER_NAME -h $CONTAINER_NAME -p $STORE_HOST:8500 -d progrium/consul -server -bootstrap-expect 1 -config-file=/config/consul.json
} }
function stop_store() { function stop_store() {

View File

@ -0,0 +1,11 @@
{
"session_ttl_min": "1s",
"data_dir": "/data",
"ui_dir": "/ui",
"client_addr": "0.0.0.0",
"ports": {
"dns": 53
},
"recursor": "8.8.8.8",
"disable_update_check": true
}