Skip to content

Add Docker detection - #3070

Merged
mthenw merged 4 commits into
masterfrom
add-docker-detection
Jan 10, 2017
Merged

mthenw merged 4 commits into
masterfrom
add-docker-detection

Conversation

@pmuens

@pmuens pmuens commented Jan 9, 2017 •

Copy link
Copy Markdown
Contributor

What did you implement:

Closes #3001

Add detection of Docker containers for SlStats.

How did you implement it:

Check for the cgroup file.

Todos:

  • Write tests
  • Fix linting errors
  • Make sure code coverage hasn't dropped
  • Change ready for review message below

Is this ready for review?: YES
Is it a breaking change?: NO

@pmuens pmuens added this to the 1.6 milestone Jan 9, 2017
This ensures a more stable detection strategy since .dockerenv might be not around for the long term.
@pmuens

pmuens commented Jan 9, 2017

Copy link
Copy Markdown
Contributor Author

Will remove the getRootFilePath method because it's not necessary anymore...

@pmuens

pmuens commented Jan 10, 2017

Copy link
Copy Markdown
Contributor Author

@mthenw just removed the getRootPath method and used stubs for the tests.

Should be good to go if you sign off 👍

@mthenw
mthenw merged commit 46cace9 into master Jan 10, 2017
@mthenw
mthenw deleted the add-docker-detection branch January 10, 2017 20:07
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.

2 participants