-
Notifications
You must be signed in to change notification settings - Fork 88
/
init.sh
35 lines (27 loc) · 1.24 KB
/
init.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
35
#!/bin/bash
# This script sets up the virtual machine image that will then be frozen into a snapshot
sudo apt-get update
# Install docker, see https://docs.docker.com/engine/install/ubuntu/
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
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 \
$(lsb_release -cs) \
stable"
sudo apt-get install docker-ce docker-ce-cli containerd.io -y
# Install docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.25.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
# Install maven
sudo apt install maven -y
# Clone the jitsi-torture-repository
git clone https://github.com/jitsi/jitsi-meet-torture
# Download the test video
wget -O jitsi-meet-torture/resources/FourPeople_1280x720_30.y4m https://media.xiph.org/video/derf/y4m/FourPeople_1280x720_60.y4m
# Get docker-compose file
wget -O jitsi-meet-torture/docker-compose.yml https://raw.githubusercontent.com/schul-cloud/jitsi-deployment/develop/loadtest/docker-compose.yml