question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to build Docker image using Dockerfile in master branch

See original GitHub issue

apache Airflow version

2.0.2

Environment

Configuration: Dockerfile OS (e.g. from /etc/os-release): ubuntu 16.04 Install tools: sudo docker build -t airflow-with-browser .

What happened:

I Can’t build a docker image using Dockerfile in master branch The python package dependency error occurred while building a image

스크린샷 2021-05-12 오후 2 16 16
The conflict is caused by:
    connexion[flask,swagger-ui] 2.6.0 depends on connexion 2.6.0 (from https://files.pythonhosted.org/packages/a7/27/d8258c073989776014d49bbc8049a9b0842aaf776f462158d8a885f8c6a2/connexion-2.6.0-py2.py3-none-any.whl#sha256=c568e579f84be808e387dcb8570bb00a536891be1318718a0dad3ba90f034191 (from https://pypi.org/simple/connexion/) (requires-python:>=3.6))
    The user requested (constraint) connexion==2.7.0

I think there a version mismatching between connexion[flask, swagger-ui] and connexion…

스크린샷 2021-05-12 오후 2 19 43

What you expected to happen:

Succeed to build a Airflow image

To Replicate: git clone https://github.com/apache/airflow cd airflow sudo docker build -t airflow-with-browser .

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
potiukcommented, May 12, 2021

Confirmed. It works when you switch to PIP 20.2.4

docker build --build-arg AIRFLOW_VERSION="2.0.2" --build-arg AIRFLOW_PIP_VERSION=20.2.4 -t airflow-with-browser .

I will update the documentation to make it clear that you need to add the build arg when build pre-2.1 images.

1reaction
potiukcommented, May 12, 2021

I think master constraints are not refreshed recently. Let me do that now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failing to build from Dockerfile - OSS Support
I tested building it from master and it works fine for me. That error message indicates you're trying to build the image from...
Read more >
Can't build docker image from github repository branch
Repository contains a Dockerfile and other files necessary to build a container image. According to the documentation I can specify the branch ......
Read more >
No Dockerfile found · Codefresh | Docs
This error happens when you are trying to build a Docker image and the pipeline step cannot find a Dockerfile. It might be...
Read more >
docker build - Docker Documentation
The docker build command builds Docker images from a Dockerfile and a “context”. ... this command to use a directory called docker in...
Read more >
How To Recover From a Failed Automated Docker Hub Build
As we are working directly on the master branch, to fix this error we simply need to correct the above modification on the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found