#!/bin/bash

JAVA_PACKAGES="openjdk-17-jdk openjdk-17-jre openjdk-17-doc"

# Apache2, vsftpd and links are for server emulator module
# netsniff-ng incude trafgen for ddos module
# libcap-def used for net analyzer module
# slowhttptest is used for slow tests
JMETER_MODUL_PACKAGES="apache2 vsftpd netsniff-ng libpcap-dev links slowhttptest"

# Usefull packages for developers
DEV_PACKAGES="nload"

# Packages used by build and start script
SCRIPT_PACKAGES="tar zip git gradle"

PACKAGES_TO_INSTALL="${JAVA_PACKAGES} ${JMETER_MODUL_PACKAGES} ${DEV_PACKAGES} ${SCRIPT_PACKAGES}"

for i in $PACKAGES_TO_INSTALL; do
  sudo apt-get install -y $i
done
