2020-06-19 16:19:20 +00:00
|
|
|
#!/bin/bash -x
|
2020-06-24 20:46:20 +00:00
|
|
|
# Setup docker & compose
|
2020-11-19 13:25:53 +00:00
|
|
|
# curl -fsSL https://get.docker.com | bash
|
2020-06-24 20:46:20 +00:00
|
|
|
sudo usermod -a -G docker ubuntu
|
|
|
|
sudo curl -L "https://github.com/docker/compose/releases/download/1.26.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
|
|
|
|
sudo chmod +x /usr/local/bin/docker-compose
|
2020-06-21 11:18:06 +00:00
|
|
|
# Setup nodejs
|
2020-11-19 13:25:53 +00:00
|
|
|
curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
|
2020-06-21 11:18:06 +00:00
|
|
|
sudo apt-get install -y nodejs
|
2020-11-19 13:25:53 +00:00
|
|
|
# Setup k3d
|
|
|
|
curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | bash
|
2020-06-24 20:46:20 +00:00
|
|
|
# Setup python
|
2020-11-15 14:49:02 +00:00
|
|
|
sudo apt install -y python3.9 python3-pip libxmlsec1-dev pkg-config
|
2020-06-21 11:18:06 +00:00
|
|
|
# Setup docker
|
2020-06-19 16:19:20 +00:00
|
|
|
sudo pip3 install pipenv
|
|
|
|
|
2020-11-19 13:25:53 +00:00
|
|
|
cd tests/e2e
|
2020-06-19 16:19:20 +00:00
|
|
|
sudo docker-compose up -d
|
2020-11-19 13:25:53 +00:00
|
|
|
cd ../..
|
2020-06-19 16:19:20 +00:00
|
|
|
pipenv sync --dev
|