The following snippets loads the application context with the configuration given in TestConfiguration.class
@RunWith(SpringRunner.class)| Mount Separately | |
| ---------------- | |
| # mount nvme SSDs to /dataN when available for specific instance types | |
| # There are only 4 nvme slots in r5 instances. /dev/nvme0n1 is root EBS volume. | |
| for i in $(seq 1 4); do | |
| if [ -e "/dev/nvme${i}n1" ] | |
| then | |
| echo "Mounting /dev/nvme${i}n1 to /data${i}" | |
| sudo mkfs.ext4 -E nodiscard /dev/nvme${i}n1 | |
| sudo mkdir -p /data${i} | 
sudo sh -c "wget -qO- https://get.docker.io/gpg | apt-key add -"
sudo sh -c "echo deb http://get.docker.io/ubuntu docker main\ > /etc/apt/sources.list.d/docker.list"
sudo aptitude update
sudo aptitude install lxc-docker| # scala install | |
| wget www.scala-lang.org/files/archive/scala-2.11.7.deb | |
| sudo dpkg -i scala-2.11.7.deb | |
| # sbt installation | |
| echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list | |
| sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 642AC823 | |
| sudo apt-get update | |
| sudo apt-get install sbt |