Skip to content

Add Docker stack example for Python venv#69088

Merged
potiuk merged 1 commit into
apache:mainfrom
Andrushika:add-docs-dockerfile-with-venv
Jun 29, 2026
Merged

Add Docker stack example for Python venv#69088
potiuk merged 1 commit into
apache:mainfrom
Andrushika:add-docs-dockerfile-with-venv

Conversation

@Andrushika

Copy link
Copy Markdown
Contributor

I added an example Dockerfile showing how to create a Python virtual environment in the Airflow Docker image and install packages from requirements.txt.

This helps users understand how to prepare a venv in a custom image and use it with ExternalPythonOperator or @task.external_python.


Was generative AI tooling used to co-author this PR?

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@Andrushika Andrushika force-pushed the add-docs-dockerfile-with-venv branch from b4609c2 to 17a882b Compare June 27, 2026 17:50

@potiuk potiuk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@potiuk potiuk merged commit 899ce98 into apache:main Jun 29, 2026
69 checks passed
@potiuk potiuk added the backport-to-v3-3-test Backport to v3-3-test label Jun 29, 2026
@github-actions github-actions Bot added this to the Airflow 3.3.1 milestone Jun 29, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hi maintainer, this PR was merged without a milestone set.
We've automatically set the milestone to Airflow 3.3.1 based on: backport label targeting v3-3-test
If this milestone is not correct, please update it to the appropriate milestone.

This comment was generated by Milestone Tag Assistant.

@github-actions

Copy link
Copy Markdown
Contributor

Backport successfully created: v3-3-test

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
v3-3-test PR Link

github-actions Bot pushed a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Jun 29, 2026
(cherry picked from commit 899ce98)

Co-authored-by: Andrew Chang <69671930+Andrushika@users.noreply.github.com>
aws-airflow-bot pushed a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Jun 29, 2026
(cherry picked from commit 899ce98)

Co-authored-by: Andrew Chang <69671930+Andrushika@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:production-image Production image improvements and fixes backport-to-v3-3-test Backport to v3-3-test kind:documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add example of dockerfile with creating new virtualenv

2 participants