-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #380 from gwsystems/mt-dbf
Merging this since it is mainly bash scripts added for multi tenancy testbed.
- Loading branch information
Showing
28 changed files
with
794 additions
and
487 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
#!/bin/bash | ||
|
||
if ! command -v http > /dev/null; then | ||
if [[ $(whoami) == "root" ]]; then | ||
apt update | ||
apt install -y httpie | ||
else | ||
sudo apt update | ||
sudo apt install -y httpie | ||
fi | ||
fi | ||
|
||
if ! command -v hey > /dev/null; then | ||
HEY_URL=https://hey-release.s3.us-east-2.amazonaws.com/hey_linux_amd64 | ||
wget $HEY_URL -O hey | ||
chmod +x hey | ||
|
||
if [[ $(whoami) == "root" ]]; then | ||
mv hey /usr/bin/hey | ||
else | ||
sudo mv hey /usr/bin/hey | ||
fi | ||
fi | ||
|
||
if ! command -v loadtest > /dev/null; then | ||
if ! command -v npm > /dev/null; then | ||
if [[ $(whoami) == "root" ]]; then | ||
apt update | ||
apt install -y npm | ||
else | ||
sudo apt update | ||
sudo apt install -y npm | ||
fi | ||
fi | ||
|
||
# Try pulling Emil's version of loadtest to support post binary files | ||
# if [[ $(whoami) == "root" ]]; then | ||
# npm install -y -g loadtest | ||
# else | ||
# sudo npm install -y -g loadtest | ||
# fi | ||
|
||
pushd ~ | ||
git clone https://github.com/emil916/loadtest.git | ||
pushd loadtest | ||
if [[ $(whoami) == "root" ]]; then | ||
npm install -g | ||
else | ||
sudo npm install -g | ||
fi | ||
popd | ||
popd | ||
fi | ||
|
||
if ! command -v gnuplot > /dev/null; then | ||
if [[ $(whoami) == "root" ]]; then | ||
apt-get update | ||
apt-get install -y gnuplot | ||
else | ||
sudo apt-get update | ||
sudo apt-get install -y gnuplot | ||
fi | ||
fi | ||
|
||
|
||
if ! command -v jq > /dev/null; then | ||
if [[ $(whoami) == "root" ]]; then | ||
apt update | ||
apt install -y jq | ||
else | ||
sudo apt update | ||
sudo apt install -y jq | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/bin/bash | ||
|
||
if ! command -v gnuplot > /dev/null; then | ||
if [[ $(whoami) == "root" ]]; then | ||
apt-get update | ||
apt-get install -y gnuplot | ||
else | ||
sudo apt-get update | ||
sudo apt-get install -y gnuplot | ||
fi | ||
fi | ||
|
||
|
||
if ! command -v jq > /dev/null; then | ||
if [[ $(whoami) == "root" ]]; then | ||
apt update | ||
apt install -y jq | ||
else | ||
sudo apt update | ||
sudo apt install -y jq | ||
fi | ||
fi | ||
|
||
if ! command -v htop > /dev/null; then | ||
if [[ $(whoami) == "root" ]]; then | ||
apt update | ||
apt install -y htop | ||
else | ||
sudo apt update | ||
sudo apt install -y htop | ||
fi | ||
fi | ||
|
||
# For SOD: | ||
# if ! command -v imagemagick > /dev/null; then | ||
# if [ "$(whoami)" == "root" ]; then | ||
# apt-get install -y imagemagick | ||
# else | ||
# sudo apt-get install -y imagemagick | ||
# fi | ||
# fi | ||
|
||
# For GOCR, too many to check one-by-one, so uncomment below to install: | ||
# if [[ "$(whoami)" == "root" ]]; then | ||
# apt-get install -y netpbm pango1.0-tools wamerican fonts-roboto fonts-cascadia-code fonts-dejavu | ||
# else | ||
# sudo apt-get install -y netpbm pango1.0-tools wamerican fonts-roboto fonts-cascadia-code fonts-dejavu | ||
# fi |
Oops, something went wrong.