summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Hwang <mhwang@research.att.com>2017-10-13 10:58:32 -0400
committerMichael Hwang <mhwang@research.att.com>2017-10-13 10:59:28 -0400
commit13c16b374b01315275979f31e6709ffadd05dff3 (patch)
tree9f9a4c94435a1595f0a9fc6aeaa1ee05509b9d34
parent8fe709322f264bf9b32e144531f1740dbb11746d (diff)
Fix consul binary unzipping in DockerBp
Change-Id: I2c7435f3127cc472521101554f57dcb41ec4a3fc Issue-Id: DCAEGEN2-151 Signed-off-by: Michael Hwang <mhwang@research.att.com>
-rw-r--r--blueprints/DockerBP.yaml-template5
1 files changed, 3 insertions, 2 deletions
diff --git a/blueprints/DockerBP.yaml-template b/blueprints/DockerBP.yaml-template
index 32ee931..a64525d 100644
--- a/blueprints/DockerBP.yaml-template
+++ b/blueprints/DockerBP.yaml-template
@@ -129,8 +129,9 @@ inputs:
# Download Consul from Nexus
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y -q unzip
- curl -Ss https://releases.hashicorp.com/consul/0.8.3/consul_0.8.3_linux_amd64.zip > /opt/consul/bin/consul_0.8.3_linux_amd64.zip
- unzip /opt/consul/bin/consul_0.8.3_linux_amd64.zip
+ CONSUL_BIN_DIR=/opt/consul/bin
+ curl -Ss https://releases.hashicorp.com/consul/0.8.3/consul_0.8.3_linux_amd64.zip > $CONSUL_BIN_DIR/consul_0.8.3_linux_amd64.zip
+ unzip $CONSUL_BIN_DIR/consul_0.8.3_linux_amd64.zip -d $CONSUL_BIN_DIR
cat <<EOF > /opt/consul/config/consul.json
{
"bind_addr" : "0.0.0.0",