Skip to content

Commit ee7c480

Browse files
tommysitubenjih
authored andcommitted
Add simple script to download and install hoverfly and hoverctl in ubuntu
1 parent 785c164 commit ee7c480

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

get_hoverfly.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env bash
2+
3+
HOVERFLY_VERSION=v0.12.1
4+
HOVERFLY_DOWNLOAD_URL=https://github.com/SpectoLabs/hoverfly/releases/download
5+
6+
7+
# Download distribution package for Linux
8+
machine_type=$(uname -m)
9+
if [[ ${machine_type} == "x86_64" ]]; then
10+
11+
wget -O /tmp/hoverfly.zip ${HOVERFLY_DOWNLOAD_URL}/${HOVERFLY_VERSION}/hoverfly_bundle_linux_amd64.zip
12+
else
13+
wget -O /tmp/hoverfly.zip ${HOVERFLY_DOWNLOAD_URL}/${HOVERFLY_VERSION}/hoverfly_bundle_linux_386.zip
14+
fi
15+
16+
17+
# Unzip and copy to PATH
18+
unzip -d /tmp/hoverfly /tmp/hoverfly.zip
19+
sudo cp /tmp/hoverfly/hoverfly /usr/local/bin/
20+
sudo cp /tmp/hoverfly/hoverctl /usr/local/bin/

0 commit comments

Comments
 (0)