{"action":"created","issue":{"url":"https://api.github.com/repos/ChrisBoesch/singpath-verifiers/issues/1","labels_url":"https://api.github.com/repos/ChrisBoesch/singpath-verifiers/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/ChrisBoesch/singpath-verifiers/issues/1/comments","events_url":"https://api.github.com/repos/ChrisBoesch/singpath-verifiers/issues/1/events","html_url":"https://github.com/ChrisBoesch/singpath-verifiers/pull/1","id":115861467,"number":1,"title":"Feature nodejs queue worker","user":{"login":"dinoboff","id":6830,"avatar_url":"https://avatars.githubusercontent.com/u/6830?v=3","gravatar_id":"","url":"https://api.github.com/users/dinoboff","html_url":"https://github.com/dinoboff","followers_url":"https://api.github.com/users/dinoboff/followers","following_url":"https://api.github.com/users/dinoboff/following{/other_user}","gists_url":"https://api.github.com/users/dinoboff/gists{/gist_id}","starred_url":"https://api.github.com/users/dinoboff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dinoboff/subscriptions","organizations_url":"https://api.github.com/users/dinoboff/orgs","repos_url":"https://api.github.com/users/dinoboff/repos","events_url":"https://api.github.com/users/dinoboff/events{/privacy}","received_events_url":"https://api.github.com/users/dinoboff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-09T11:49:38Z","updated_at":"2015-11-12T13:32:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ChrisBoesch/singpath-verifiers/pulls/1","html_url":"https://github.com/ChrisBoesch/singpath-verifiers/pull/1","diff_url":"https://github.com/ChrisBoesch/singpath-verifiers/pull/1.diff","patch_url":"https://github.com/ChrisBoesch/singpath-verifiers/pull/1.patch"},"body":"Because it's using Node it's easier to run the daemon in a container. It also mean we have to build or pull the verifiers. Pushing the verifier (for user not won't build them) can be automatic via a CI service like https://circleci.com/docs/docker or using docker hub automatic builds.\r\n\r\n(Note I will use https://circleci.com/docs/docker to test the verifiers on pull request or commit)\r\n\r\nIt's currently the responsibility of the user to build or pull the verifier but the daemon could do it if they are missing.\r\n\r\nOne advantage of using pulled image is that user doesn't need git for deployment.\r\n\r\nLet me know if the work flow is not simple enough:\r\nhttps://github.com/dinoboff/singpath-verifiers/blob/feature-nodejs-queue-worker/README.md"},"comment":{"url":"https://api.github.com/repos/ChrisBoesch/singpath-verifiers/issues/comments/156102868","html_url":"https://github.com/ChrisBoesch/singpath-verifiers/pull/1#issuecomment-156102868","issue_url":"https://api.github.com/repos/ChrisBoesch/singpath-verifiers/issues/1","id":156102868,"user":{"login":"dinoboff","id":6830,"avatar_url":"https://avatars.githubusercontent.com/u/6830?v=3","gravatar_id":"","url":"https://api.github.com/users/dinoboff","html_url":"https://github.com/dinoboff","followers_url":"https://api.github.com/users/dinoboff/followers","following_url":"https://api.github.com/users/dinoboff/following{/other_user}","gists_url":"https://api.github.com/users/dinoboff/gists{/gist_id}","starred_url":"https://api.github.com/users/dinoboff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dinoboff/subscriptions","organizations_url":"https://api.github.com/users/dinoboff/orgs","repos_url":"https://api.github.com/users/dinoboff/repos","events_url":"https://api.github.com/users/dinoboff/events{/privacy}","received_events_url":"https://api.github.com/users/dinoboff/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T13:32:22Z","updated_at":"2015-11-12T13:32:22Z","body":"@SingaporeClouds \r\n\r\nTo try it on OS X using Docker toolbox' docker-machine:\r\n```\r\ngit clone https://github.com/dinoboff/singpath-verifiers.git\r\ncd singpath-verifiers\r\ngit checkout feature-nodejs-queue-worker\r\n\r\ndocker-machine create -d virtualbox default\r\neval \"$(docker-machine env default)\"\r\n\r\n./bin/verifier init -f singpath-play\r\n./bin/verifier start\r\n```\r\n\r\nTo Push task in an other terminal:\r\n```\r\n./bin/verifier push -m default '---\r\nlanguage: java\r\ntests: |\r\n  SingPath sp = new SingPath();\r\n  assertEquals(4.0, sp.add(2.0, 2.0));\r\nsolution: |\r\n  public class SingPath {\r\n\r\n    public Double add(Double x, Double y) {\r\n      return x + y;\r\n    }\r\n  }`\r\n```"}}