forked from scylladb/scylla-cluster-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-hydra.sh
executable file
·34 lines (34 loc) · 1.68 KB
/
install-hydra.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env bash
HYDRA_LINK_PATH=/usr/local/bin/hydra
if ! docker --version ; then
echo "Docker not installed!!!"
curl -fsSL get.docker.com -o get-docker.sh
sh get-docker.sh
# Docker post install, adds ability to run Docker as current user
groupadd docker || true
usermod -aG docker ${USER} || true
echo "==================================================================================================="
echo "!!!! In order to run Docker as a current user, please logout from your current session !!!!"
echo "More info: https://docs.docker.com/install/linux/linux-postinstall/#manage-docker-as-a-non-root-user"
echo "==================================================================================================="
fi
echo "Docker is installed."
if [ ! -L "${HYDRA_LINK_PATH}" ]; then
echo "Installing Hydra"
ln -s $(pwd)/docker/env/hydra.sh ${HYDRA_LINK_PATH}
fi
echo "Hydra installed."
if ! aws --version; then
echo "Installing AWS CLI..."
yum install -y epel-release
yum install -y python-devel python-pip
pip install --upgrade pip
grep -v '^#' requirements-python.txt| grep awscli | xargs -t -L 1 pip install
fi
echo "AWS CLI installed."
echo "================================== NOTES ================================================="
echo "To check that Hydra is installed, run 'hydra ls' anywhere in bash."
echo "It will run 'ls' command in the SCT Docker container."
echo "When running Hydra for the first time it will build the SCT Docker image. Please be patient!"
echo "==================================================================================================="
echo "Please run 'aws configure' to configure AWS CLI"