mirror of
https://github.com/docker/docs.git
synced 2026-04-01 08:48:56 +07:00
lower ttl min for consul in integration tests
Signed-off-by: Alexandre Beslic <abronan@docker.com>
This commit is contained in:
@@ -12,7 +12,7 @@ DISCOVERY="consul://${STORE_HOST}/test"
|
||||
CONTAINER_NAME=swarm_consul
|
||||
|
||||
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() {
|
||||
|
||||
11
test/integration/discovery/consul/config/consul.json
Normal file
11
test/integration/discovery/consul/config/consul.json
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user