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

Remove custom built docker image on container termination #405

Conversation

gaborszakacs
Copy link
Contributor

Addresses #303

@gaborszakacs
Copy link
Contributor Author

My gofumpt made some linting fixes, let me know if I should reverse them.

@codecov
Copy link

codecov bot commented Feb 14, 2022

Codecov Report

Merging #405 (e98e4e1) into master (95e84a0) will increase coverage by 0.27%.
The diff coverage is 61.53%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #405      +/-   ##
==========================================
+ Coverage   64.93%   65.20%   +0.27%     
==========================================
  Files          19       19              
  Lines        1155     1164       +9     
==========================================
+ Hits          750      759       +9     
+ Misses        301      300       -1     
- Partials      104      105       +1     
Impacted Files Coverage Δ
docker.go 65.79% <61.53%> (+0.58%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 95e84a0...e98e4e1. Read the comment docs.

@@ -192,15 +193,26 @@ func (c *DockerContainer) Terminate(ctx context.Context) error {
RemoveVolumes: true,
Force: true,
})
if err != nil {
return err
Copy link
Collaborator

Choose a reason for hiding this comment

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

Cool! It seems we missed to handle this error

@mdelapenya
Copy link
Collaborator

mdelapenya commented Feb 28, 2022

Hey @gaborszakacs thanks for this contribution. The ability you contributed was under our radar but had no time to implement it, so thank you very much for your contribution. Looks great!

@mdelapenya mdelapenya self-assigned this Feb 28, 2022
@mdelapenya mdelapenya added the feature New functionality or new behaviors on the existing one label Feb 28, 2022
@mdelapenya mdelapenya merged commit fea599d into testcontainers:master Feb 28, 2022
@gaborszakacs gaborszakacs deleted the remove-custom-built-image-on-termination branch February 28, 2022 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality or new behaviors on the existing one
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants