Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use --iidfile & --cidfile to get the ctr & img ids #148

Merged
merged 4 commits into from
Aug 7, 2023
Merged

Conversation

dcermak
Copy link
Owner

@dcermak dcermak commented Aug 7, 2023

We don't have to rely on stdout containing the img id, which is not the case with the newest docker.

@codecov
Copy link

codecov bot commented Aug 7, 2023

Codecov Report

Merging #148 (f4b944a) into main (0237e49) will decrease coverage by 5.88%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #148      +/-   ##
==========================================
- Coverage   94.61%   88.73%   -5.88%     
==========================================
  Files           9        9              
  Lines        1003     1030      +27     
  Branches      202      202              
==========================================
- Hits          949      914      -35     
- Misses         40       99      +59     
- Partials       14       17       +3     
Files Changed Coverage Δ
pytest_container/runtime.py 81.48% <ø> (-6.18%) ⬇️
pytest_container/build.py 84.81% <100.00%> (+1.95%) ⬆️
pytest_container/container.py 96.93% <100.00%> (-2.00%) ⬇️

... and 3 files with indirect coverage changes

We don't have to rely on stdout containing the img id, which is not the case
with the newest docker.
Docker 24 stopped accepting image digests in the FROM line of a Dockerfile,
hence we need to find a workaround. The simplest way is to tag the locally build
images with something and the most straightforward way was to just pick the
image digest and prefix it with pytest_container.
@dcermak dcermak merged commit 0d44efc into main Aug 7, 2023
19 of 32 checks passed
@dcermak dcermak deleted the use-id-files branch August 7, 2023 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant