{"action":"created","issue":{"url":"https://api.github.com/repos/nerves-project/nerves_system_br/issues/207","repository_url":"https://api.github.com/repos/nerves-project/nerves_system_br","labels_url":"https://api.github.com/repos/nerves-project/nerves_system_br/issues/207/labels{/name}","comments_url":"https://api.github.com/repos/nerves-project/nerves_system_br/issues/207/comments","events_url":"https://api.github.com/repos/nerves-project/nerves_system_br/issues/207/events","html_url":"https://github.com/nerves-project/nerves_system_br/pull/207","id":348542483,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA2ODY5MjE4","number":207,"title":"Create and switch user in docker entrypoint if one was set","user":{"login":"mobileoverlord","id":1391351,"node_id":"MDQ6VXNlcjEzOTEzNTE=","avatar_url":"https://avatars3.githubusercontent.com/u/1391351?v=4","gravatar_id":"","url":"https://api.github.com/users/mobileoverlord","html_url":"https://github.com/mobileoverlord","followers_url":"https://api.github.com/users/mobileoverlord/followers","following_url":"https://api.github.com/users/mobileoverlord/following{/other_user}","gists_url":"https://api.github.com/users/mobileoverlord/gists{/gist_id}","starred_url":"https://api.github.com/users/mobileoverlord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mobileoverlord/subscriptions","organizations_url":"https://api.github.com/users/mobileoverlord/orgs","repos_url":"https://api.github.com/users/mobileoverlord/repos","events_url":"https://api.github.com/users/mobileoverlord/events{/privacy}","received_events_url":"https://api.github.com/users/mobileoverlord/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-08T01:30:50Z","updated_at":"2018-08-08T02:18:06Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/nerves-project/nerves_system_br/pulls/207","html_url":"https://github.com/nerves-project/nerves_system_br/pull/207","diff_url":"https://github.com/nerves-project/nerves_system_br/pull/207.diff","patch_url":"https://github.com/nerves-project/nerves_system_br/pull/207.patch"},"body":"When running the docker image, we set the user and group ids to those of the user from the host. This fixes permissions issues that arise from writing files back to the host from within the container. Unfortunately since this user and group do not actually exist, it can cause some bad behavior with packages in buildroot. In the example case, `host-ncurses`. This will set the entrypoint and create and switch users if the values were passed through in the `--env`"},"comment":{"url":"https://api.github.com/repos/nerves-project/nerves_system_br/issues/comments/411261609","html_url":"https://github.com/nerves-project/nerves_system_br/pull/207#issuecomment-411261609","issue_url":"https://api.github.com/repos/nerves-project/nerves_system_br/issues/207","id":411261609,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTI2MTYwOQ==","user":{"login":"mobileoverlord","id":1391351,"node_id":"MDQ6VXNlcjEzOTEzNTE=","avatar_url":"https://avatars3.githubusercontent.com/u/1391351?v=4","gravatar_id":"","url":"https://api.github.com/users/mobileoverlord","html_url":"https://github.com/mobileoverlord","followers_url":"https://api.github.com/users/mobileoverlord/followers","following_url":"https://api.github.com/users/mobileoverlord/following{/other_user}","gists_url":"https://api.github.com/users/mobileoverlord/gists{/gist_id}","starred_url":"https://api.github.com/users/mobileoverlord/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mobileoverlord/subscriptions","organizations_url":"https://api.github.com/users/mobileoverlord/orgs","repos_url":"https://api.github.com/users/mobileoverlord/repos","events_url":"https://api.github.com/users/mobileoverlord/events{/privacy}","received_events_url":"https://api.github.com/users/mobileoverlord/received_events","type":"User","site_admin":false},"created_at":"2018-08-08T02:18:06Z","updated_at":"2018-08-08T02:18:06Z","author_association":"MEMBER","body":"Fixes https://github.com/nerves-project/nerves_system_br/issues/206"}}
{"actor":{"display_login":"mobileoverlord"}}