slow image builds of tests/Dockerfile
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 7.2k
- Forks
- 1.7k
- Avg merge
- 13d 8h
- Merged PRs (30d)
- 2
Description
The latest release docker-py 4.0.2 has a tests/Dockerfile that is really slow to build because it is based on FROM python:3.6-jessie. This slows down moby/moby PRs that depend on building the image.
Would like to request a docker-py 4.0.3 release with the newer tests/Dockerfile. It would reduce the apt install time from 48 seconds down to 5 seconds.
With the docker-py 4.0.2 Dockerfile
$ time docker run --rm python:3.6-jessie bash -c 'apt update && apt-get -y install gnupg2 pass curl'
...
real 0m48.195s
user 0m0.042s
sys 0m0.042s
With the docker-py master (b2a1b03) Dockerfile
$ time docker run --rm python:3.7 bash -c 'apt update && apt-get -y install gnupg2 pass curl'
...
real 0m5.897s
user 0m0.046s
sys 0m0.023s
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 with tests/Dockerfile and compare the docker-py 4.0.2 version with the master revision b2a1b03 linked in the issue. Run the two documented Docker timing commands to confirm the build difference, then check the project's release process and verify that the intended Dockerfile is included in the next release.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, python
- Domain
- build-system, devops
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100