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

Add Dockerfile for logrotate #76

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

sagarnasit
Copy link
Contributor

@sagarnasit sagarnasit self-assigned this Jan 4, 2019
}

# docker volume logs
/var/lib/docker/volumes/*log*/_data/* {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we need to be more specific about this. User might have other containers running which have log in their name. We might end up rotating their files too.

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, why the location of directories is same as of the host 🤔

Copy link
Member

@mrrobot47 mrrobot47 Jan 28, 2019

Choose a reason for hiding this comment

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

/var/lib/docker/volumes/, this directory will not work in case of macOS.
Also, this will skip the logs of EasyEngine itself.

For macOS a pattern inside ~/easyengine for services and sites will have to be written.

}

# docker volume logs
/var/lib/docker/volumes/*log*/_data/* {
Copy link
Member

@mrrobot47 mrrobot47 Jan 28, 2019

Choose a reason for hiding this comment

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

/var/lib/docker/volumes/, this directory will not work in case of macOS.
Also, this will skip the logs of EasyEngine itself.

For macOS a pattern inside ~/easyengine for services and sites will have to be written.

Copy link
Contributor

@mbtamuli mbtamuli left a comment

Choose a reason for hiding this comment

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

@mrrobot47 We need to make this file logrotate/easyengine.conf accessible on the host

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.

4 participants