This repo contains setup files that should allow you to run a Dockerised version of Airflow 2.10.3 The setup has been tested on Windows 10 and Debian Linux (I'm on Kali, other Debian distros should work as well).
You will need docker
and docker-compose
.
On Windows you can get both by installing Docker Desktop.
On Debian these instructions should work.
N.B. Docker Desktop is much, much more resource hungry than the binaries.
On either platform, cd
into the root folder (i.e. this folder, where the docker-compose.yml
file is). Execute:
docker compose up airflow-init
Wait for the script to do its thing. It has finished when it gives you the commandline back. Then execute:
docker compose up
It won't give you the comand line back. Once you see airflow-scheduler
, airflow-worker
and airflow-webserver
spawning messages, try to open front-end on http://localhost:8088
. It may take a while, if there are no obvious errors in the console, give it more time.
Username/Password: airflow/airflow
N.B. I used non-default port 8088, because I already had Jenkins on 8080. But you can use any port, simply find-and-replace in the docker-compose.yml
file.
Everything from this point forward is terrible idea from security point of view, it's a quick and very dirty, short term(!!) solution. You have been warned.
-
The above
docker compose
commands won't work unless you configure a user-group for it. But you can run the commands withsudo
instead. -
You need to make sure that whatever user you start the docker with has
rwe
access to the./dags
folder. If you started docker withsudo
, you can give access to all users to do whatever they want in the./dags
folder by executing:sudo chmod -R 777 dags