{"action":"created","issue":{"url":"https://api.github.com/repos/tweag/sparkle/issues/45","repository_url":"https://api.github.com/repos/tweag/sparkle","labels_url":"https://api.github.com/repos/tweag/sparkle/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/tweag/sparkle/issues/45/comments","events_url":"https://api.github.com/repos/tweag/sparkle/issues/45/events","html_url":"https://github.com/tweag/sparkle/issues/45","id":161287867,"number":45,"title":"Add Spark to the Docker image","user":{"login":"mboes","id":51356,"avatar_url":"https://avatars.githubusercontent.com/u/51356?v=3","gravatar_id":"","url":"https://api.github.com/users/mboes","html_url":"https://github.com/mboes","followers_url":"https://api.github.com/users/mboes/followers","following_url":"https://api.github.com/users/mboes/following{/other_user}","gists_url":"https://api.github.com/users/mboes/gists{/gist_id}","starred_url":"https://api.github.com/users/mboes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mboes/subscriptions","organizations_url":"https://api.github.com/users/mboes/orgs","repos_url":"https://api.github.com/users/mboes/repos","events_url":"https://api.github.com/users/mboes/events{/privacy}","received_events_url":"https://api.github.com/users/mboes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"YPares","id":1377233,"avatar_url":"https://avatars.githubusercontent.com/u/1377233?v=3","gravatar_id":"","url":"https://api.github.com/users/YPares","html_url":"https://github.com/YPares","followers_url":"https://api.github.com/users/YPares/followers","following_url":"https://api.github.com/users/YPares/following{/other_user}","gists_url":"https://api.github.com/users/YPares/gists{/gist_id}","starred_url":"https://api.github.com/users/YPares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YPares/subscriptions","organizations_url":"https://api.github.com/users/YPares/orgs","repos_url":"https://api.github.com/users/YPares/repos","events_url":"https://api.github.com/users/YPares/events{/privacy}","received_events_url":"https://api.github.com/users/YPares/received_events","type":"User","site_admin":false},"assignees":[{"login":"YPares","id":1377233,"avatar_url":"https://avatars.githubusercontent.com/u/1377233?v=3","gravatar_id":"","url":"https://api.github.com/users/YPares","html_url":"https://github.com/YPares","followers_url":"https://api.github.com/users/YPares/followers","following_url":"https://api.github.com/users/YPares/following{/other_user}","gists_url":"https://api.github.com/users/YPares/gists{/gist_id}","starred_url":"https://api.github.com/users/YPares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YPares/subscriptions","organizations_url":"https://api.github.com/users/YPares/orgs","repos_url":"https://api.github.com/users/YPares/repos","events_url":"https://api.github.com/users/YPares/events{/privacy}","received_events_url":"https://api.github.com/users/YPares/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/tweag/sparkle/milestones/2","html_url":"https://github.com/tweag/sparkle/milestones/P2:%20Should","labels_url":"https://api.github.com/repos/tweag/sparkle/milestones/2/labels","id":1821661,"number":2,"title":"P2: Should","description":"","creator":{"login":"mboes","id":51356,"avatar_url":"https://avatars.githubusercontent.com/u/51356?v=3","gravatar_id":"","url":"https://api.github.com/users/mboes","html_url":"https://github.com/mboes","followers_url":"https://api.github.com/users/mboes/followers","following_url":"https://api.github.com/users/mboes/following{/other_user}","gists_url":"https://api.github.com/users/mboes/gists{/gist_id}","starred_url":"https://api.github.com/users/mboes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mboes/subscriptions","organizations_url":"https://api.github.com/users/mboes/orgs","repos_url":"https://api.github.com/users/mboes/repos","events_url":"https://api.github.com/users/mboes/events{/privacy}","received_events_url":"https://api.github.com/users/mboes/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":2,"state":"open","created_at":"2016-06-11T18:42:14Z","updated_at":"2016-11-08T11:50:02Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-06-20T20:35:12Z","updated_at":"2016-11-22T22:16:12Z","closed_at":null,"body":"The Docker image contributed by @abailly does not include Spark. It's fine for `inline-java` users but for sparkle users it would be nice if this Docker image ultimately supported a workflow for non-Linux users (OS X, Windows) where they could test an app locally using `spark-submit`.\n\nThe issue is that installing Spark on Ubuntu isn't entirely trivial, and the `--extra-{include,library}-dirs` we already need when using Docker is a bit of a nuisance. So here's an idea: let's unify our Nix containerization and the Docker support by turning Nix into a provisioner for the Docker image. In that way, we can install all system dependencies using the same shared `shell.nix` file that `stack --nix build` uses.\n\nIn summary, we'd have\n\n```\n$ stack --nix build\n```\n\nas the recommended build command on Linux. And\n\n```\n$ stack --docker --nix build\n```\n\nfor anyone not on Linux or anyone who doesn't want to install Nix on their host.\n\nThis ought to work, but there's apparently a bug upstream:\n\n```\n$ cat > Dockerfile <<EOF\nFROM nixos/nix\nRUN nix-env -i stack\nEOF\n$ docker build -t sparkle .\n$ stack --docker --docker-image sparkle --docker-stack-exe image --no-docker-set-user --nix build\n```\n\nseems to ignore the `--nix` flag. @YPares any ideas?\n"},"comment":{"url":"https://api.github.com/repos/tweag/sparkle/issues/comments/262382255","html_url":"https://github.com/tweag/sparkle/issues/45#issuecomment-262382255","issue_url":"https://api.github.com/repos/tweag/sparkle/issues/45","id":262382255,"user":{"login":"robinbb","id":550475,"avatar_url":"https://avatars.githubusercontent.com/u/550475?v=3","gravatar_id":"","url":"https://api.github.com/users/robinbb","html_url":"https://github.com/robinbb","followers_url":"https://api.github.com/users/robinbb/followers","following_url":"https://api.github.com/users/robinbb/following{/other_user}","gists_url":"https://api.github.com/users/robinbb/gists{/gist_id}","starred_url":"https://api.github.com/users/robinbb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robinbb/subscriptions","organizations_url":"https://api.github.com/users/robinbb/orgs","repos_url":"https://api.github.com/users/robinbb/repos","events_url":"https://api.github.com/users/robinbb/events{/privacy}","received_events_url":"https://api.github.com/users/robinbb/received_events","type":"User","site_admin":false},"created_at":"2016-11-22T22:16:12Z","updated_at":"2016-11-22T22:16:12Z","body":"Is this issue fixed, now, with your recent merge, @mboes ?"}}
{"actor":{"display_login":"robinbb"}}