pyinfra-dev / pyinfra-dev/pyinfra
Provide own image name when building against docker
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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