forked from docc-lab/dsb_k8s
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
74 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common | ||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | ||
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" | ||
apt-cache policy docker-ce | ||
sudo apt install -y docker-ce | ||
sudo systemctl status docker --no-pager | ||
|
||
for user in $(ls /users) | ||
do | ||
sudo usermod -aG docker $user | ||
done | ||
|
||
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | ||
sudo chmod +x /usr/local/bin/docker-compose | ||
sudo docker-compose --version | ||
sudo echo -e '\n\nexport PATH=$PATH:/usr/local/bin' >> .bashrc | ||
source .bashrc |
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,42 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
|
||
. "`dirname $0`/setup-lib.sh" | ||
|
||
if [ -f $OURDIR/dsb-done ]; then | ||
exit 0 | ||
fi | ||
|
||
logtstart "dsb" | ||
|
||
# Variables | ||
REPO_URL="https://github.com/docc-lab/DeathStarBench.git" | ||
#DOCKER_IMAGE="deathstarbench/hotel-reservation" | ||
#KUBERNETES_DIR="hotelReservation/kubernetes" # Path to the Kubernetes directory within the repo | ||
|
||
echo "setup deathstarbench in docker" | ||
|
||
# Clone the repository | ||
cd /local | ||
git clone $REPO_URL | ||
|
||
# Prepare workload generator | ||
cd /local/DeathStarBench/wrk2 | ||
git submodule update --init --recursive ./deps/luajit/ | ||
sudo apt-get update | ||
sudo apt-get install -y libssl-dev | ||
make all | ||
|
||
# Pull hotelreservation docker images | ||
#sudo docker pull $DOCKER_IMAGE | ||
|
||
# Setup kubernetes cluster | ||
#sudo kubectl apply -Rf /local/DeathStarBench/$KUBERNETES_DIR | ||
|
||
echo "deathstarbench-docker setup complete" | ||
|
||
logtend "dsb" | ||
|
||
touch $OURDIR/dsb-done | ||
exit 0 |
0
setup-dsb.sh → setup-dsb-k8s.sh
100644 → 100755
File renamed without changes.