polyseam / my-airflow-abc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


EZ AF Baking

for baking Airflow images with custom dependencies

Usage

Setup Repo

Click the Use this template button!

Set Requirements

  1. Pull down the repo
  2. Add your dependencies to requirements.txt

Push Code to GitHub

  1. git add .
  2. git commit -m "added dependencies"
  3. git push

Publish Image to the Container Registry

Automation will publish your image when you push a tag to the repo.

  1. run git tag v1.0.0 to designate an image version
  2. run git push --tags to publish that version
  3. the published images should be shown in the GitHub packages tab over there ↗️

using the image in Airflow Kubernetes (optional)

Now that you have an image in the GitHub Container Registry, you need to be able to consume it from Airflow.

In either case once you've applied the Secret you just need to tell Airflow to use it in your Helm Chart's values:

values:
  registry:
    secretName: airflow-image-pull-secret
  images:
    airflow:
      repository: 'ghcr.io/johnstonmatt/my-baked-image'
      tag: v1.0.0

About

License:Apache License 2.0


Languages

Language:Dockerfile 100.0%