{"action":"created","comment":{"url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/pulls/comments/120950070","pull_request_review_id":42959279,"id":120950070,"diff_hunk":"@@ -0,0 +1,35 @@\n+#!/bin/bash\n+\n+###  SET HOST FILE PATHS HERE. All paths must be absolute!  ###\n+HOST_CFG=$(pwd)/rabbitmq-worker.conf\n+HOST_LOG=$(pwd)/rabbitmq-worker.log\n+HOST_ERR=$(pwd)/rabbitmq-worker.err\n+###############################################################\n+\n+## Automated setting of file paths to be used in the container ##\n+# Note: Log and error file paths come from the host config file. All paths must be absolute!\n+DOCKER_CFG=/etc/rabbitmq-worker.conf\n+# Get log and error file paths from the config file\n+DOCKER_LOG=$(grep \"^LogFile\" $HOST_CFG | sed 's/^LogFile\\s*=\\s*//')\n+DOCKER_ERR=$(grep \"^ErrFile\" $HOST_CFG | sed 's/^ErrFile\\s*=\\s*//')\n+\n+## Confirm that host files exist ##\n+touch $HOST_LOG $HOST_ERR 2> /dev/null\n+if    [[ ! -f $HOST_LOG ]]","path":"docker_run.sh","position":18,"original_position":18,"commit_id":"a8c9220f2199a6f84e78b5fb6e626dcce5dd31d8","original_commit_id":"a8c9220f2199a6f84e78b5fb6e626dcce5dd31d8","user":{"login":"nesl247","id":1037526,"avatar_url":"https://avatars0.githubusercontent.com/u/1037526?v=3","gravatar_id":"","url":"https://api.github.com/users/nesl247","html_url":"https://github.com/nesl247","followers_url":"https://api.github.com/users/nesl247/followers","following_url":"https://api.github.com/users/nesl247/following{/other_user}","gists_url":"https://api.github.com/users/nesl247/gists{/gist_id}","starred_url":"https://api.github.com/users/nesl247/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nesl247/subscriptions","organizations_url":"https://api.github.com/users/nesl247/orgs","repos_url":"https://api.github.com/users/nesl247/repos","events_url":"https://api.github.com/users/nesl247/events{/privacy}","received_events_url":"https://api.github.com/users/nesl247/received_events","type":"User","site_admin":false},"body":"Standard style for ifs in a shell script is to do `if [ .. ]; then` or `if [[ .. ]]; then`. Basically, just move the then part to the same line.","created_at":"2017-06-08T17:30:41Z","updated_at":"2017-06-08T17:39:50Z","html_url":"https://github.com/LinioIT/rabbitmq-worker/pull/2#discussion_r120950070","pull_request_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/LinioIT/rabbitmq-worker/pulls/comments/120950070"},"html":{"href":"https://github.com/LinioIT/rabbitmq-worker/pull/2#discussion_r120950070"},"pull_request":{"href":"https://api.github.com/repos/LinioIT/rabbitmq-worker/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/pulls/2","id":124690359,"html_url":"https://github.com/LinioIT/rabbitmq-worker/pull/2","diff_url":"https://github.com/LinioIT/rabbitmq-worker/pull/2.diff","patch_url":"https://github.com/LinioIT/rabbitmq-worker/pull/2.patch","issue_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/issues/2","number":2,"state":"open","locked":false,"title":"Dockerize!","user":{"login":"tsilvers","id":6474288,"avatar_url":"https://avatars3.githubusercontent.com/u/6474288?v=3","gravatar_id":"","url":"https://api.github.com/users/tsilvers","html_url":"https://github.com/tsilvers","followers_url":"https://api.github.com/users/tsilvers/followers","following_url":"https://api.github.com/users/tsilvers/following{/other_user}","gists_url":"https://api.github.com/users/tsilvers/gists{/gist_id}","starred_url":"https://api.github.com/users/tsilvers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsilvers/subscriptions","organizations_url":"https://api.github.com/users/tsilvers/orgs","repos_url":"https://api.github.com/users/tsilvers/repos","events_url":"https://api.github.com/users/tsilvers/events{/privacy}","received_events_url":"https://api.github.com/users/tsilvers/received_events","type":"User","site_admin":false},"body":"Added:\r\n- Makefile and Dockerfile for building the container image\r\n- Scripts for running and controlling the container","created_at":"2017-06-08T16:17:30Z","updated_at":"2017-06-08T17:39:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"75b6aadcf5d8eb9bd97ada3b6a3ca29c81d07fd5","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/pulls/2/commits","review_comments_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/pulls/2/comments","review_comment_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/issues/2/comments","statuses_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/statuses/a8c9220f2199a6f84e78b5fb6e626dcce5dd31d8","head":{"label":"LinioIT:feature/docker","ref":"feature/docker","sha":"a8c9220f2199a6f84e78b5fb6e626dcce5dd31d8","user":{"login":"LinioIT","id":11468134,"avatar_url":"https://avatars3.githubusercontent.com/u/11468134?v=3","gravatar_id":"","url":"https://api.github.com/users/LinioIT","html_url":"https://github.com/LinioIT","followers_url":"https://api.github.com/users/LinioIT/followers","following_url":"https://api.github.com/users/LinioIT/following{/other_user}","gists_url":"https://api.github.com/users/LinioIT/gists{/gist_id}","starred_url":"https://api.github.com/users/LinioIT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinioIT/subscriptions","organizations_url":"https://api.github.com/users/LinioIT/orgs","repos_url":"https://api.github.com/users/LinioIT/repos","events_url":"https://api.github.com/users/LinioIT/events{/privacy}","received_events_url":"https://api.github.com/users/LinioIT/received_events","type":"Organization","site_admin":false},"repo":{"id":54897376,"name":"rabbitmq-worker","full_name":"LinioIT/rabbitmq-worker","owner":{"login":"LinioIT","id":11468134,"avatar_url":"https://avatars3.githubusercontent.com/u/11468134?v=3","gravatar_id":"","url":"https://api.github.com/users/LinioIT","html_url":"https://github.com/LinioIT","followers_url":"https://api.github.com/users/LinioIT/followers","following_url":"https://api.github.com/users/LinioIT/following{/other_user}","gists_url":"https://api.github.com/users/LinioIT/gists{/gist_id}","starred_url":"https://api.github.com/users/LinioIT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinioIT/subscriptions","organizations_url":"https://api.github.com/users/LinioIT/orgs","repos_url":"https://api.github.com/users/LinioIT/repos","events_url":"https://api.github.com/users/LinioIT/events{/privacy}","received_events_url":"https://api.github.com/users/LinioIT/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LinioIT/rabbitmq-worker","description":"RabbitMQ consumer, written in Go, which reliably sends requests to an http server.","fork":false,"url":"https://api.github.com/repos/LinioIT/rabbitmq-worker","forks_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/forks","keys_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/teams","hooks_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/hooks","issue_events_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/issues/events{/number}","events_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/events","assignees_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/assignees{/user}","branches_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/branches{/branch}","tags_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/tags","blobs_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/git/refs{/sha}","trees_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/statuses/{sha}","languages_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/languages","stargazers_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/stargazers","contributors_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/contributors","subscribers_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/subscribers","subscription_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/subscription","commits_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/commits{/sha}","git_commits_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/git/commits{/sha}","comments_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/comments{/number}","issue_comment_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/issues/comments{/number}","contents_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/contents/{+path}","compare_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/merges","archive_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/downloads","issues_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/issues{/number}","pulls_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/pulls{/number}","milestones_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/milestones{/number}","notifications_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/labels{/name}","releases_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/releases{/id}","deployments_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/deployments","created_at":"2016-03-28T14:19:59Z","updated_at":"2017-04-21T16:49:47Z","pushed_at":"2017-06-08T16:17:31Z","git_url":"git://github.com/LinioIT/rabbitmq-worker.git","ssh_url":"git@github.com:LinioIT/rabbitmq-worker.git","clone_url":"https://github.com/LinioIT/rabbitmq-worker.git","svn_url":"https://github.com/LinioIT/rabbitmq-worker","homepage":"","size":91,"stargazers_count":3,"watchers_count":3,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":3,"default_branch":"master"}},"base":{"label":"LinioIT:master","ref":"master","sha":"6f59bf66b81ab354d3bc7cb87027a956f5b3147f","user":{"login":"LinioIT","id":11468134,"avatar_url":"https://avatars3.githubusercontent.com/u/11468134?v=3","gravatar_id":"","url":"https://api.github.com/users/LinioIT","html_url":"https://github.com/LinioIT","followers_url":"https://api.github.com/users/LinioIT/followers","following_url":"https://api.github.com/users/LinioIT/following{/other_user}","gists_url":"https://api.github.com/users/LinioIT/gists{/gist_id}","starred_url":"https://api.github.com/users/LinioIT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinioIT/subscriptions","organizations_url":"https://api.github.com/users/LinioIT/orgs","repos_url":"https://api.github.com/users/LinioIT/repos","events_url":"https://api.github.com/users/LinioIT/events{/privacy}","received_events_url":"https://api.github.com/users/LinioIT/received_events","type":"Organization","site_admin":false},"repo":{"id":54897376,"name":"rabbitmq-worker","full_name":"LinioIT/rabbitmq-worker","owner":{"login":"LinioIT","id":11468134,"avatar_url":"https://avatars3.githubusercontent.com/u/11468134?v=3","gravatar_id":"","url":"https://api.github.com/users/LinioIT","html_url":"https://github.com/LinioIT","followers_url":"https://api.github.com/users/LinioIT/followers","following_url":"https://api.github.com/users/LinioIT/following{/other_user}","gists_url":"https://api.github.com/users/LinioIT/gists{/gist_id}","starred_url":"https://api.github.com/users/LinioIT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinioIT/subscriptions","organizations_url":"https://api.github.com/users/LinioIT/orgs","repos_url":"https://api.github.com/users/LinioIT/repos","events_url":"https://api.github.com/users/LinioIT/events{/privacy}","received_events_url":"https://api.github.com/users/LinioIT/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LinioIT/rabbitmq-worker","description":"RabbitMQ consumer, written in Go, which reliably sends requests to an http server.","fork":false,"url":"https://api.github.com/repos/LinioIT/rabbitmq-worker","forks_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/forks","keys_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/teams","hooks_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/hooks","issue_events_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/issues/events{/number}","events_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/events","assignees_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/assignees{/user}","branches_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/branches{/branch}","tags_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/tags","blobs_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/git/refs{/sha}","trees_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/statuses/{sha}","languages_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/languages","stargazers_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/stargazers","contributors_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/contributors","subscribers_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/subscribers","subscription_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/subscription","commits_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/commits{/sha}","git_commits_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/git/commits{/sha}","comments_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/comments{/number}","issue_comment_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/issues/comments{/number}","contents_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/contents/{+path}","compare_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/merges","archive_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/downloads","issues_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/issues{/number}","pulls_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/pulls{/number}","milestones_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/milestones{/number}","notifications_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/labels{/name}","releases_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/releases{/id}","deployments_url":"https://api.github.com/repos/LinioIT/rabbitmq-worker/deployments","created_at":"2016-03-28T14:19:59Z","updated_at":"2017-04-21T16:49:47Z","pushed_at":"2017-06-08T16:17:31Z","git_url":"git://github.com/LinioIT/rabbitmq-worker.git","ssh_url":"git@github.com:LinioIT/rabbitmq-worker.git","clone_url":"https://github.com/LinioIT/rabbitmq-worker.git","svn_url":"https://github.com/LinioIT/rabbitmq-worker","homepage":"","size":91,"stargazers_count":3,"watchers_count":3,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LinioIT/rabbitmq-worker/pulls/2"},"html":{"href":"https://github.com/LinioIT/rabbitmq-worker/pull/2"},"issue":{"href":"https://api.github.com/repos/LinioIT/rabbitmq-worker/issues/2"},"comments":{"href":"https://api.github.com/repos/LinioIT/rabbitmq-worker/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/LinioIT/rabbitmq-worker/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/LinioIT/rabbitmq-worker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LinioIT/rabbitmq-worker/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/LinioIT/rabbitmq-worker/statuses/a8c9220f2199a6f84e78b5fb6e626dcce5dd31d8"}}}}
{"actor":{"display_login":"nesl247"}}