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

quiet/silent option #146

Closed
helio-frota opened this issue Apr 4, 2017 · 4 comments
Closed

quiet/silent option #146

helio-frota opened this issue Apr 4, 2017 · 4 comments

Comments

@helio-frota
Copy link

would be good to have a quiet (-q) or silent (-s) option

e.g:

2017-04-04 11:37:00,094 root         INFO     docker-squash version 1.0.5, Docker 6b644ec, API 1.24...
2017-04-04 11:37:00,095 root         INFO     Using v2 image format
2017-04-04 11:37:00,121 root         INFO     Old image has 12 layers
2017-04-04 11:37:00,125 root         INFO     Checking if squashing is necessary...
2017-04-04 11:37:00,125 root         INFO     Attempting to squash last 10 layers...
2017-04-04 11:37:00,125 root         INFO     Saving image sha256:361db608fcca86816ac2317093b576343577042ab6e74086278e41df7a325784 to /tmp/docker-squash-oiPcfn/old directory...
2017-04-04 11:37:03,591 root         INFO     Image saved!
2017-04-04 11:37:03,591 root         INFO     Squashing image 'bucharestgold/rhel7-atomic-s2i-nodejs-candidate:4.8.1'...
2017-04-04 11:37:03,593 root         INFO     Starting squashing...
2017-04-04 11:37:03,721 root         INFO     Squashing file '/tmp/docker-squash-oiPcfn/old/1e12a0f9fb11de8d6cfd27b52e165d9c04e4c1e2ff4e7f7ff472db7eb2119d07/layer.tar'...
2017-04-04 11:37:03,723 root         INFO     Squashing file '/tmp/docker-squash-oiPcfn/old/3c162914ee044474b5a0682349b7eca7c0de8f6462b8a5ac3da3752a17f92f92/layer.tar'...
2017-04-04 11:37:03,725 root         INFO     Squashing file '/tmp/docker-squash-oiPcfn/old/d3c59ef61348e55ab58e9a83c0c42f80d8ae77926bfff629b03e4e5efa7ab907/layer.tar'...
2017-04-04 11:37:06,047 root         INFO     Squashing finished!
2017-04-04 11:37:07,025 root         INFO     New squashed image ID is 8a8cf933f82906e01d8d3b2a12cd5457f86da4c7b8213a2542733cf0cbe585dd
2017-04-04 11:37:10,198 root         INFO     Image registered in Docker daemon as bucharestgold/rhel7-atomic-s2i-nodejs-candidate:4.8.1
2017-04-04 11:37:10,249 root         INFO     Done

using the quiet / silent option:
or maybe output nothing. ?

2017-04-04 11:37:00,094 root         INFO     Squashing if necessary...
2017-04-04 11:37:10,249 root         INFO     Done
@goldmann
Copy link
Owner

goldmann commented Apr 4, 2017

How about just redirecting it to /dev/null? It looks that you are interested in binary output - succeeded or failed.

@helio-frota
Copy link
Author

I tried to do this but for some reason it did not work.
I've added to this line (on my local branch) :
https://github.com/bucharest-gold/origin-s2i-nodejs/blob/master/build/build.sh#L40
( I'll check again today )

I'm interested on CI logs cleanup because we are make builds inside a for loop of several images.

@goldmann
Copy link
Owner

goldmann commented Apr 4, 2017

Look at #144. You need to redirect stderr too: docker-squash... &>/dev/null.

@helio-frota
Copy link
Author

@goldmann Thanks !
I'm going to close this issue.

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

No branches or pull requests

2 participants