Skip to content
Snippets Groups Projects
Commit 34a994f0 authored by Maxb's avatar Maxb
Browse files

Add virtualenv requirements and documentation

We can use python's virtualenv here instead of system packages which
will also facilitate version controlling python dependencies.
parent fcc82767
No related branches found
No related tags found
1 merge request!68Add virtualenv requirements and documentation
Pipeline #132045 failed
...@@ -2,3 +2,4 @@ ...@@ -2,3 +2,4 @@
*.retry *.retry
.vagrant .vagrant
ansible.log ansible.log
venv
...@@ -16,13 +16,22 @@ You will need to pick a subdomain and delegate its DNS for the system to manage. ...@@ -16,13 +16,22 @@ You will need to pick a subdomain and delegate its DNS for the system to manage.
The following commands should be run ***locally on your computer*** in order to install and deploy Lilypad on the remote machines. The following commands should be run ***locally on your computer*** in order to install and deploy Lilypad on the remote machines.
## 0. Install the float and LEAP platform pre-requisites ## 0. Clone the float repository
...and enter it
```shell
git clone https://0xacab.org/leap/container-platform/lilypad
cd lilypad
```
## 1. Install the float and LEAP platform pre-requisites
This installation guide is tested on Debian Bullseye. This installation guide is tested on Debian Bullseye.
Other Linux distributions might need additional steps to install all requirements in the correct version. Other Linux distributions might need additional steps to install all requirements in the correct version.
```shell ```shell
sudo apt-get install golang build-essential bind9utils python3-pysodium python3-jinja2 python3-netaddr python3-openssl python3-yaml python3-six python3-pycryptodome ansible git ansible-mitogen sudo apt-get install golang build-essential bind9utils git
go install git.autistici.org/ale/x509ca@latest go install git.autistici.org/ale/x509ca@latest
go install git.autistici.org/ale/ed25519gen@latest go install git.autistici.org/ale/ed25519gen@latest
...@@ -30,14 +39,16 @@ go install git.autistici.org/ai3/go-common/cmd/pwtool@latest ...@@ -30,14 +39,16 @@ go install git.autistici.org/ai3/go-common/cmd/pwtool@latest
export PATH=$PATH:$HOME/go/bin export PATH=$PATH:$HOME/go/bin
``` ```
## 1. Clone the float repository We'll use [virtualenv](https://virtualenv.pypa.io/en/latest/) to manage and install python packages:
```
virtualenv -p /usr/bin/python3 venv
source ./venv/bin/activate
pip install -r ./requirements.txt
```
...and enter it This will create a virtual environment where we can install+version control specific python dependencies.
```shell When working on this project, if you're in a new shell, you'll need to run the `source ./venv/bin/activate` command again to re-enter the virtual environment.
git clone https://0xacab.org/leap/container-platform/lilypad
cd lilypad
```
## 2. Initialize the ansible vault ## 2. Initialize the ansible vault
......
ansible==6.2.0
ansible-core==2.12.10
cffi==1.15.1
cryptography==38.0.4
Jinja2==3.1.2
MarkupSafe==2.1.1
mitogen==0.3.3
netaddr==0.8.0
packaging==21.3
pycparser==2.21
pyOpenSSL==22.1.0
pyparsing==3.0.9
pysodium==0.7.12
PyYAML==6.0
resolvelib==0.5.4
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment