Git Product home page Git Product logo

airflow-container-image's Introduction

TERN's multi-arch Airflow container image

This repository provides container images for linux/amd64 and linux/arm64.

This repository automatically checks the upstream Bitbucket repository for changes in the master branch. If there are changes, it will build a new container image and push it to the GitHub Container Registry and Docker Hub. The upstream private Bitbucket repository is https://bitbucket.org/terndatateam/docker-airflow/src/master/.

Container images

This image support for linux/amd64 and linux/arm64 with the following tags:

  • latest
  • major.minor.patch - e.g. 2.1.4
  • major.minor.patch-build.<git-short-hash> - e.g. 2.1.4-build.c584b88

This image by default only supports linux/amd64. However, this repository provides linux/arm64 support with the following tags:

  • latest-arm64
  • major.minor.patch-arm64.<git-short-hash> - e.g. 2.1.4-arm64.c584b88

Running the GitHub Action locally

Test the GitHub Actions workflows using act.

Prior to running any workflows with act, you will need to create a .env file in the root of the repository. See .env-template for what environment variables are required.

Note: this will change the state of the main branch by updating CURRENT_COMMIT_HASH file if the latest upstream commit hash is different.

Build-multi arch container image

act --secret-file .env --env GITHUB_REPOSITORY=ternaustralia/airflow-container-image

Note: running the build workflow with act will fail on the last step where it builds and pushes to the GitHub Container Registry. The reason it fails is because we do not provide it with the values for github.actor to correctly authenticate with the registry. This is not a problem as we are only interested in seeing that building the container image succeeds.

How does this work?

This repository stores the current build version in the CURRENT_COMMIT_HASH file and performs a scheduled check roughly every 30 minutes via GitHub Actions to see if the upstream repository has any new commits. If there are new commits, it will build a new container image targetting linux/amd64 and linux/arm64 platforms and push it to the GitHub Container Registry and Docker Hub.

See .github/workflows/build.yml for the workflow that performs the build.

airflow-container-image's People

Contributors

edmondchuc avatar

Watchers

Hoang Anh Nguyen avatar James Cloos avatar  avatar  avatar

airflow-container-image's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.