Skip to content

Custom build get rate limited because of Dockerfile first line #37716

@V0lantis

Description

@V0lantis

Apache Airflow version

2.8.1

If "Other Airflow 2 version" selected, which one?

No response

What happened?

When using custom build, we use the base Airflow Dockerfile. The issue is that the first line is # syntax=docker/dockerfile:1.4

leading to the following rate limiting in our CI

Dockerfile:1
--------------------
   1 | >>> # syntax=docker/dockerfile:1.4
   2 |     # Licensed to the Apache Software Foundation (ASF) under one or more
   3 |     # contributor license agreements.  See the NOTICE file distributed with
--------------------
ERROR: failed to solve: unexpected status from HEAD request to https://registry-1.docker.io/v2/docker/dockerfile/manifests/1.4: 429 Too Many Requests
Error: Process completed with exit code 1.

Is thee anyway this could be mitigated? I tried to use sed to replace this first line, but this is quite a dirty solution.

What you think should happen instead?

No response

How to reproduce

Hard to reproduce, but I guess, doing thousand of build at the same time with the same IP would do the job

Operating System

Github Actions on Github Entreprise

Versions of Apache Airflow Providers

No response

Deployment

Official Apache Airflow Helm Chart

Deployment details

No response

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions