{"action":"created","issue":{"url":"https://api.github.com/repos/rancher/os/issues/2174","repository_url":"https://api.github.com/repos/rancher/os","labels_url":"https://api.github.com/repos/rancher/os/issues/2174/labels{/name}","comments_url":"https://api.github.com/repos/rancher/os/issues/2174/comments","events_url":"https://api.github.com/repos/rancher/os/issues/2174/events","html_url":"https://github.com/rancher/os/issues/2174","id":281202504,"number":2174,"title":"logrotate","user":{"login":"daiyam","id":587742,"avatar_url":"https://avatars2.githubusercontent.com/u/587742?v=4","gravatar_id":"","url":"https://api.github.com/users/daiyam","html_url":"https://github.com/daiyam","followers_url":"https://api.github.com/users/daiyam/followers","following_url":"https://api.github.com/users/daiyam/following{/other_user}","gists_url":"https://api.github.com/users/daiyam/gists{/gist_id}","starred_url":"https://api.github.com/users/daiyam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daiyam/subscriptions","organizations_url":"https://api.github.com/users/daiyam/orgs","repos_url":"https://api.github.com/users/daiyam/repos","events_url":"https://api.github.com/users/daiyam/events{/privacy}","received_events_url":"https://api.github.com/users/daiyam/received_events","type":"User","site_admin":false},"labels":[{"id":163007974,"url":"https://api.github.com/repos/rancher/os/labels/kind/question","name":"kind/question","color":"dddddd","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-12-11T23:22:37Z","updated_at":"2017-12-16T19:35:26Z","closed_at":null,"author_association":"NONE","body":"**RancherOS Version: (ros os version)**\r\nv1.1.0\r\n**Where are you running RancherOS? (docker-machine, AWS, GCE, baremetal, etc.)**\r\ndocker-machine & vultr\r\n\r\nHello,\r\n\r\nI would like to activate logrotate and I was wondering how...\r\n\r\nCan I add the following config to `ros config`?\r\n\r\n```\r\nrancher:\r\n  services:\r\n    logrotate:\r\n      image: os-logrotate:v1.1.0\r\n      command: /usr/sbin/logrotate -v /etc/logrotate.conf\r\n      labels:\r\n        io.rancher.os.createonly: \"true\"\r\n        io.rancher.os.scope: system\r\n        io.rancher.os.before: system-cron\r\n        cron.schedule: \"@hourly\"\r\n      uts: host\r\n      net: none\r\n      privileged: true\r\n      volumes_from:\r\n      - command-volumes\r\n      - system-volumes\r\n```\r\n(from `https://github.com/rancher/os/blob/master/os-config.tpl.yml`)\r\n\r\nThx\r\nDaiyam"},"comment":{"url":"https://api.github.com/repos/rancher/os/issues/comments/352206000","html_url":"https://github.com/rancher/os/issues/2174#issuecomment-352206000","issue_url":"https://api.github.com/repos/rancher/os/issues/2174","id":352206000,"user":{"login":"daiyam","id":587742,"avatar_url":"https://avatars2.githubusercontent.com/u/587742?v=4","gravatar_id":"","url":"https://api.github.com/users/daiyam","html_url":"https://github.com/daiyam","followers_url":"https://api.github.com/users/daiyam/followers","following_url":"https://api.github.com/users/daiyam/following{/other_user}","gists_url":"https://api.github.com/users/daiyam/gists{/gist_id}","starred_url":"https://api.github.com/users/daiyam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daiyam/subscriptions","organizations_url":"https://api.github.com/users/daiyam/orgs","repos_url":"https://api.github.com/users/daiyam/repos","events_url":"https://api.github.com/users/daiyam/events{/privacy}","received_events_url":"https://api.github.com/users/daiyam/received_events","type":"User","site_admin":false},"created_at":"2017-12-16T19:35:26Z","updated_at":"2017-12-16T19:35:26Z","author_association":"NONE","body":"Hi @niusmallnan,\r\n\r\nFrom what I understand, that documentation is to include `logrotate` into an user container.\r\n\r\nI'm trying to have `logrotate` working on the logs of rancheros's system container."}}
{"actor":{"display_login":"daiyam"}}