Docker-based development environment for Apache Airflow, optimized for handling spatial datasets.
Build the Docker image using the following command:
docker build -f Dockerfile.airflow -t extended-airflow:3.0.0 .After building the image, start the container with Docker Compose:
docker compose upOnce the container is running, access the Airflow UI by navigating to the appropriate URL in your browser (e.g., http://localhost:8080).
To develop DAGs, you can connect to the airflow-scheduler container. Using VS Code, follow these steps:
- Install the Dev Containers extension.
- Open the Command Palette (
Ctrl+Shift+PorCmd+Shift+Pon macOS) and select Remote-Containers: Attach to Running Container. - Choose the
airflow-schedulercontainer from the list. - Once connected, navigate to the
/workdir.
With DBeaver use the following connection details:
- Host:
localhost - Port:
5432(or the port configured in yourdocker-compose.yml) - Database:
airflow - Username:
airflow - Password:
airflow
Add check on Show all databases
To customize the color theme of the VS Code window, update the .vscode/settings.json file with the following configuration:
{
"workbench.colorCustomizations": {
"titleBar.activeBackground": "Color of your choice in hex"
}
}