File: travis_consul.sh

package info (click to toggle)
docker-libkv 0.2.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 372 kB
  • sloc: sh: 85; makefile: 5
file content (18 lines) | stat: -rwxr-xr-x 396 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

if [  $# -gt 0 ] ; then
    CONSUL_VERSION="$1"
else
    CONSUL_VERSION="0.5.2"
fi

# install consul
wget "https://releases.hashicorp.com/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_linux_amd64.zip"
unzip "consul_${CONSUL_VERSION}_linux_amd64.zip"

# make config for minimum ttl
touch config.json
echo "{\"session_ttl_min\": \"1s\"}" >> config.json

# check
./consul --version