{"action":"created","issue":{"url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/issues/416","repository_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic","labels_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/issues/416/labels{/name}","comments_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/issues/416/comments","events_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/issues/416/events","html_url":"https://github.com/jupyter-incubator/sparkmagic/issues/416","id":271828544,"node_id":"MDU6SXNzdWUyNzE4Mjg1NDQ=","number":416,"title":"Using \"GRANT_SUDO=yes\" doesn't work for the docker-compose","user":{"login":"DShevelev","id":32962992,"node_id":"MDQ6VXNlcjMyOTYyOTky","avatar_url":"https://avatars3.githubusercontent.com/u/32962992?v=4","gravatar_id":"","url":"https://api.github.com/users/DShevelev","html_url":"https://github.com/DShevelev","followers_url":"https://api.github.com/users/DShevelev/followers","following_url":"https://api.github.com/users/DShevelev/following{/other_user}","gists_url":"https://api.github.com/users/DShevelev/gists{/gist_id}","starred_url":"https://api.github.com/users/DShevelev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DShevelev/subscriptions","organizations_url":"https://api.github.com/users/DShevelev/orgs","repos_url":"https://api.github.com/users/DShevelev/repos","events_url":"https://api.github.com/users/DShevelev/events{/privacy}","received_events_url":"https://api.github.com/users/DShevelev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-07T13:19:58Z","updated_at":"2018-08-16T14:29:33Z","closed_at":"2017-11-09T00:14:41Z","author_association":"NONE","body":"I get sudo non-funcional in the up-to-date master built and up with the docker-compose even though I do specify GRANT_SUDO=yes in my docker-compose.yml:\r\nversion: \"3\"\r\nservices:\r\n  spark:\r\n    image: jupyter/sparkmagic-livy\r\n    build:\r\n      context: .\r\n      dockerfile: Dockerfile.spark\r\n    hostname: spark\r\n    ports:\r\n      - \"8998:8998\"\r\n  jupyter:\r\n    image: jupyter/sparkmagic\r\n    build:\r\n      context: .\r\n      dockerfile: Dockerfile.jupyter\r\n      args:\r\n        dev_mode: \"false\"\r\n    links:\r\n      - spark\r\n    ports:\r\n      - \"8888:8888\"\r\n    environment:\r\n      **- GRANT_SUDO=yes**\r\n![image](https://user-images.githubusercontent.com/32962992/32491320-f0f238b4-c3be-11e7-9601-e1f5d4993ffd.png)\r\nIs enabling running sudo under jovyan user without a password supposed to work in the sparkmagic project?\r\nThe issue looks to appear in the Jupyter project time and again:\r\nIn the https://github.com/jupyter/docker-stacks/issues/408 \"just installed the docker image-requesting sudo password for jovyan\" it was reported to be present and then disappeared after yet another download of the project.\r\nIn the https://github.com/jupyter/docker-stacks/issues/394 \"Using \"GRANT_SUDO=yes\" doesn't work\" the GRANT_SUDO did not work because of corrupted /etc/sudoers\r\nIs it possible something is just not upgraded in the sparkmagic project to make it work?"},"comment":{"url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/issues/comments/413565620","html_url":"https://github.com/jupyter-incubator/sparkmagic/issues/416#issuecomment-413565620","issue_url":"https://api.github.com/repos/jupyter-incubator/sparkmagic/issues/416","id":413565620,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzU2NTYyMA==","user":{"login":"ZmeiGorynych","id":22304254,"node_id":"MDQ6VXNlcjIyMzA0MjU0","avatar_url":"https://avatars1.githubusercontent.com/u/22304254?v=4","gravatar_id":"","url":"https://api.github.com/users/ZmeiGorynych","html_url":"https://github.com/ZmeiGorynych","followers_url":"https://api.github.com/users/ZmeiGorynych/followers","following_url":"https://api.github.com/users/ZmeiGorynych/following{/other_user}","gists_url":"https://api.github.com/users/ZmeiGorynych/gists{/gist_id}","starred_url":"https://api.github.com/users/ZmeiGorynych/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZmeiGorynych/subscriptions","organizations_url":"https://api.github.com/users/ZmeiGorynych/orgs","repos_url":"https://api.github.com/users/ZmeiGorynych/repos","events_url":"https://api.github.com/users/ZmeiGorynych/events{/privacy}","received_events_url":"https://api.github.com/users/ZmeiGorynych/received_events","type":"User","site_admin":false},"created_at":"2018-08-16T14:29:33Z","updated_at":"2018-08-16T14:29:33Z","author_association":"NONE","body":"After trying many permutations, this worked for me:\r\n```\r\n    environment:\r\n      GRANT_SUDO: \"yes\"\r\n    user: root\r\n```\r\nIn particular the `user:root` part was necessary"}}
{"actor":{"display_login":"ZmeiGorynych"}}