You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Copy the contents of the `infra/deployment` folder onto the host machine, in the `~` folder.
21
+
- Create a virtual environment in the `~/prefect-agent` folder and install `prefect` in this virtual environment :
22
+
-`cd prefect-agent`
23
+
-`pyenv local 3.12.3`
24
+
-`python -m venv .venv`
25
+
-`source .venv/bin/activate`
26
+
-`pip install prefect=1.3.0`
27
+
- Run `prefect backend server` to switch Prefect into server mode (as opposed to cloud mode, the default). A file `backend.toml` should appear at `~/.prefect/backend.toml` containing `backend = "server"`.
28
+
- Define and start a Prefect agent service:
29
+
- Fill in the placeholders in `.prefect-agent` and `prefectdockeragent.service`.
30
+
- Move `prefectdockeragent.service` into `/etc/systemd/system`.
31
+
- Run `sudo systemctl enable prefectdockeragent.service` to enable the service.
32
+
- Run `sudo systemctl start prefectdockeragent.service` to start the service.
33
+
- Run `systemctl status prefectdockeragent.service` to check the service is running.
34
+
- Rename `.env.template` as `.env` and fill in the environement variables : these are the environment variables that will be used by the flow runners, inside the forklift runner containers.
35
+
36
+
#### 2.2. Running the Data Warehouse
37
+
38
+
- Update the `DATA_WAREHOUSE_USER` and `DATA_WAREHOUSE_PASSWORD` environment variables in the `.data-warehouse` file.
39
+
- Run `source .data-warehouse`.
40
+
- Run `make run-datawarehouse`.
41
+
42
+
#### 2.3. Running or updating `Forklift`
43
+
44
+
- Update the `FORKLIFT_VERSION` variable in the `.data-warehouse` file.
0 commit comments