authentik/tests/setup.sh

19 lines
629 B
Bash
Raw Normal View History

#!/bin/bash -x
2020-06-24 21:46:20 +01:00
# Setup docker & compose
2020-12-05 21:08:42 +00:00
curl -fsSL https://get.docker.com | bash
2020-06-24 21:46:20 +01: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
# Setup nodejs
curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
sudo apt-get install -y nodejs
2020-06-24 21:46:20 +01:00
# Setup python
2020-12-05 21:08:42 +00:00
sudo apt install -y python3.9 python3.9-dev python3-pip libxmlsec1-dev pkg-config
# Setup docker
sudo pip3 install pipenv==2021.5.29
cd tests/e2e
sudo docker-compose up -d
cd ../..
pipenv sync --dev