21 lines
783 B
Bash
21 lines
783 B
Bash
|
#!/bin/bash -x
|
||
|
sudo apt update
|
||
|
sudo apt install -y python3.8 python3-pip 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 -y docker-ce docker-ce-cli containerd.io
|
||
|
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
|
||
|
sudo pip3 install pipenv
|
||
|
|
||
|
cd e2e
|
||
|
sudo docker-compose up -d
|
||
|
cd ..
|
||
|
pipenv sync --dev
|
||
|
pipenv run pip install -r e2e/requirements.txt
|
||
|
pipenv shell
|