pyinfra-dev / pyinfra-dev/pyinfra

Provide own image name when building against docker

Open
#753 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

connectors spec
Dominant language
Python
Stars
6k
Forks
548
Avg merge
7d 17h
Merged PRs (30d)
13

Description

Is your feature request related to a problem? Please describe

Basically trying to run tests inside a container.
I am trying first to execute deployment against isolated environment in docker and later would like to test and/or push image somewhere. Image however is tagged with random ID and there's no simple way to intercept image id via pyinfra ... | tee -a out.log and later grep 'image id' out.log | ... and so on.

Describe the solution you'd like

pyinfra ... --data docker_image_tag=XYZ and that tags resulting image as XYZ later on allowing for easy docker run.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the CLI handling of pyinfra ... --data and trace the Docker image build and tagging flow. Confirm how docker_image_tag=XYZ should reach the resulting image, then add coverage for the requested tag and verify that docker run can use it.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python
Domain
cli, devops, infrastructure
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.