{"action":"created","comment":{"url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/pulls/comments/92762302","pull_request_review_id":13282545,"id":92762302,"diff_hunk":"@@ -0,0 +1,164 @@\n+#!/bin/bash\n+\n+# To setup a dev build you must run:\n+# $ export BUILD_ENV=dev\n+# prior to starting docker container.\n+\n+# Get Enviroment Variable.\n+build_env=$BUILD_ENV\n+\n+# Set drush command for container.\n+drush=\"docker-compose run --rm php drush\"\n+\n+# Set build type.\n+dev_setup=false\n+if [[ $build_env = \"dev\" ]]; then\n+  dev_setup=true\n+fi\n+\n+# For testing.\n+echo \"BUILD_ENV: $build_env\"\n+echo \"DEV_SETUP: $dev_setup\"\n+\n+# Start build.\n+if $dev_setup ; then\n+  # Dev build.\n+  echo \"Building Local Development Enviroment.\"\n+  echo \"\"\n+\n+  # Check/Add Drupal settings file.\n+  if [ ! -e \"sites/default/settings.local.php\" ]\n+  then\n+    echo \"Copying over default datbase settings.\"\n+    cp -v \"../scripts/settings.local.dist.php\" \"sites/default/settings.local.php\"\n+    echo \"\"\n+  fi\n+\n+  # Install production backup db.","path":"scripts/drupal-update.sh","position":26,"original_position":37,"commit_id":"2e3f443b08a8629a31f0e3ec19ef2948ce1e8dec","original_commit_id":"24df5654fcbf5889bc0a300bbbfe895210ff046c","user":{"login":"Luukyb","id":1465207,"avatar_url":"https://avatars.githubusercontent.com/u/1465207?v=3","gravatar_id":"","url":"https://api.github.com/users/Luukyb","html_url":"https://github.com/Luukyb","followers_url":"https://api.github.com/users/Luukyb/followers","following_url":"https://api.github.com/users/Luukyb/following{/other_user}","gists_url":"https://api.github.com/users/Luukyb/gists{/gist_id}","starred_url":"https://api.github.com/users/Luukyb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Luukyb/subscriptions","organizations_url":"https://api.github.com/users/Luukyb/orgs","repos_url":"https://api.github.com/users/Luukyb/repos","events_url":"https://api.github.com/users/Luukyb/events{/privacy}","received_events_url":"https://api.github.com/users/Luukyb/received_events","type":"User","site_admin":false},"body":"I think this should not be done on update.sh. Update.sh is something we re-run on every deployment. For every deployment, we don't want to replace the db. We would do that only when setting up docker for the first time, which should be scripts/drupal-install.sh.","created_at":"2016-12-16T07:10:10Z","updated_at":"2016-12-16T07:10:10Z","html_url":"https://github.com/Luukyb/simple-docker-drupal/pull/3#discussion_r92762302","pull_request_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/Luukyb/simple-docker-drupal/pulls/comments/92762302"},"html":{"href":"https://github.com/Luukyb/simple-docker-drupal/pull/3#discussion_r92762302"},"pull_request":{"href":"https://api.github.com/repos/Luukyb/simple-docker-drupal/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/pulls/3","id":97157653,"html_url":"https://github.com/Luukyb/simple-docker-drupal/pull/3","diff_url":"https://github.com/Luukyb/simple-docker-drupal/pull/3.diff","patch_url":"https://github.com/Luukyb/simple-docker-drupal/pull/3.patch","issue_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/issues/3","number":3,"state":"open","locked":false,"title":"Feature ptech 364 build scripts","user":{"login":"justclint","id":466984,"avatar_url":"https://avatars.githubusercontent.com/u/466984?v=3","gravatar_id":"","url":"https://api.github.com/users/justclint","html_url":"https://github.com/justclint","followers_url":"https://api.github.com/users/justclint/followers","following_url":"https://api.github.com/users/justclint/following{/other_user}","gists_url":"https://api.github.com/users/justclint/gists{/gist_id}","starred_url":"https://api.github.com/users/justclint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justclint/subscriptions","organizations_url":"https://api.github.com/users/justclint/orgs","repos_url":"https://api.github.com/users/justclint/repos","events_url":"https://api.github.com/users/justclint/events{/privacy}","received_events_url":"https://api.github.com/users/justclint/received_events","type":"User","site_admin":false},"body":"### JIRA\r\nhttps://prometprojects.atlassian.net/browse/PTECH-364\r\n\r\n### Local/dev deploy instructions.\r\n\r\n1. cd into your project directory.\r\n\r\n2. Download the production sites DB to your projects root (not docroot) directory as production-db.sql.\r\n\r\n3. Start docker containers.\r\n`docker-compose up -d`\r\n\r\n4. Go into Docker container.\r\n`docker-compose exec php /bin/bash`\r\n`cd /var/www/web`\r\n\r\n5. Run build script.\r\n`../scripts/drupal-update.sh`\r\n\r\n### Known issues\r\nThis is the output I pasted in hipchat related to \"Drush en or dis\" commands. Everything seems to run fine but this output at the end of command being run is not familiar. Again, they are not errors but just odd to see. \r\n\r\n> Disabling modules.\r\n> Disabling modules for development.\r\n> Starting qualitynm_backend_1\r\n> Executing: mysql --defaults-extra-file=/tmp/drush_dxlHfP --database=drupal --host=db --silent  < /tmp/drush_EXv5l7\r\n> Executing: mysql --defaults-extra-file=/tmp/drush_Gb365e --database=drupal --host=db --silent  < /tmp/drush_mNbTax\r\n> Loading release_info engine.                                                                                                                                                                                                          [notice]\r\n> Loading version_control engine.                                                                                                                                                                                                       [notice]\r\n> Loading package_handler engine.                                                                                                                                                                                                       [notice]\r\n> Executing: wget --version\r\n> There were no extensions that could be disabled.                                                                                                                                                                                   [ok]\r\n> Displaying Druplicon for \"pm-disable\" command.                                                                                                                                                                                        [notice]\r\n> Command dispatch complete  \r\n\r\n\r\n","created_at":"2016-12-08T16:43:53Z","updated_at":"2016-12-16T07:10:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"002fd75b243a5527d5212b51a87f46053d6ae6b3","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/pulls/3/commits","review_comments_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/pulls/3/comments","review_comment_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/issues/3/comments","statuses_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/statuses/2e3f443b08a8629a31f0e3ec19ef2948ce1e8dec","head":{"label":"Luukyb:feature-ptech-364-build-scripts","ref":"feature-ptech-364-build-scripts","sha":"2e3f443b08a8629a31f0e3ec19ef2948ce1e8dec","user":{"login":"Luukyb","id":1465207,"avatar_url":"https://avatars.githubusercontent.com/u/1465207?v=3","gravatar_id":"","url":"https://api.github.com/users/Luukyb","html_url":"https://github.com/Luukyb","followers_url":"https://api.github.com/users/Luukyb/followers","following_url":"https://api.github.com/users/Luukyb/following{/other_user}","gists_url":"https://api.github.com/users/Luukyb/gists{/gist_id}","starred_url":"https://api.github.com/users/Luukyb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Luukyb/subscriptions","organizations_url":"https://api.github.com/users/Luukyb/orgs","repos_url":"https://api.github.com/users/Luukyb/repos","events_url":"https://api.github.com/users/Luukyb/events{/privacy}","received_events_url":"https://api.github.com/users/Luukyb/received_events","type":"User","site_admin":false},"repo":{"id":65813105,"name":"simple-docker-drupal","full_name":"Luukyb/simple-docker-drupal","owner":{"login":"Luukyb","id":1465207,"avatar_url":"https://avatars.githubusercontent.com/u/1465207?v=3","gravatar_id":"","url":"https://api.github.com/users/Luukyb","html_url":"https://github.com/Luukyb","followers_url":"https://api.github.com/users/Luukyb/followers","following_url":"https://api.github.com/users/Luukyb/following{/other_user}","gists_url":"https://api.github.com/users/Luukyb/gists{/gist_id}","starred_url":"https://api.github.com/users/Luukyb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Luukyb/subscriptions","organizations_url":"https://api.github.com/users/Luukyb/orgs","repos_url":"https://api.github.com/users/Luukyb/repos","events_url":"https://api.github.com/users/Luukyb/events{/privacy}","received_events_url":"https://api.github.com/users/Luukyb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Luukyb/simple-docker-drupal","description":"A simple Docker & Drupal for development. This is all.","fork":false,"url":"https://api.github.com/repos/Luukyb/simple-docker-drupal","forks_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/forks","keys_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/teams","hooks_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/hooks","issue_events_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/issues/events{/number}","events_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/events","assignees_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/assignees{/user}","branches_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/branches{/branch}","tags_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/tags","blobs_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/git/refs{/sha}","trees_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/statuses/{sha}","languages_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/languages","stargazers_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/stargazers","contributors_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/contributors","subscribers_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/subscribers","subscription_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/subscription","commits_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/commits{/sha}","git_commits_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/git/commits{/sha}","comments_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/comments{/number}","issue_comment_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/issues/comments{/number}","contents_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/contents/{+path}","compare_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/merges","archive_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/downloads","issues_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/issues{/number}","pulls_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/pulls{/number}","milestones_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/milestones{/number}","notifications_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/labels{/name}","releases_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/releases{/id}","deployments_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/deployments","created_at":"2016-08-16T11:01:10Z","updated_at":"2016-12-15T05:55:52Z","pushed_at":"2016-12-16T00:38:33Z","git_url":"git://github.com/Luukyb/simple-docker-drupal.git","ssh_url":"git@github.com:Luukyb/simple-docker-drupal.git","clone_url":"https://github.com/Luukyb/simple-docker-drupal.git","svn_url":"https://github.com/Luukyb/simple-docker-drupal","homepage":"","size":30,"stargazers_count":3,"watchers_count":3,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":3,"default_branch":"nginx-php-5"}},"base":{"label":"Luukyb:nginx-php-5","ref":"nginx-php-5","sha":"b36740c05813ac6ed961d33dda702972dd4e8e8d","user":{"login":"Luukyb","id":1465207,"avatar_url":"https://avatars.githubusercontent.com/u/1465207?v=3","gravatar_id":"","url":"https://api.github.com/users/Luukyb","html_url":"https://github.com/Luukyb","followers_url":"https://api.github.com/users/Luukyb/followers","following_url":"https://api.github.com/users/Luukyb/following{/other_user}","gists_url":"https://api.github.com/users/Luukyb/gists{/gist_id}","starred_url":"https://api.github.com/users/Luukyb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Luukyb/subscriptions","organizations_url":"https://api.github.com/users/Luukyb/orgs","repos_url":"https://api.github.com/users/Luukyb/repos","events_url":"https://api.github.com/users/Luukyb/events{/privacy}","received_events_url":"https://api.github.com/users/Luukyb/received_events","type":"User","site_admin":false},"repo":{"id":65813105,"name":"simple-docker-drupal","full_name":"Luukyb/simple-docker-drupal","owner":{"login":"Luukyb","id":1465207,"avatar_url":"https://avatars.githubusercontent.com/u/1465207?v=3","gravatar_id":"","url":"https://api.github.com/users/Luukyb","html_url":"https://github.com/Luukyb","followers_url":"https://api.github.com/users/Luukyb/followers","following_url":"https://api.github.com/users/Luukyb/following{/other_user}","gists_url":"https://api.github.com/users/Luukyb/gists{/gist_id}","starred_url":"https://api.github.com/users/Luukyb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Luukyb/subscriptions","organizations_url":"https://api.github.com/users/Luukyb/orgs","repos_url":"https://api.github.com/users/Luukyb/repos","events_url":"https://api.github.com/users/Luukyb/events{/privacy}","received_events_url":"https://api.github.com/users/Luukyb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Luukyb/simple-docker-drupal","description":"A simple Docker & Drupal for development. This is all.","fork":false,"url":"https://api.github.com/repos/Luukyb/simple-docker-drupal","forks_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/forks","keys_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/teams","hooks_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/hooks","issue_events_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/issues/events{/number}","events_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/events","assignees_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/assignees{/user}","branches_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/branches{/branch}","tags_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/tags","blobs_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/git/refs{/sha}","trees_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/statuses/{sha}","languages_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/languages","stargazers_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/stargazers","contributors_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/contributors","subscribers_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/subscribers","subscription_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/subscription","commits_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/commits{/sha}","git_commits_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/git/commits{/sha}","comments_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/comments{/number}","issue_comment_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/issues/comments{/number}","contents_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/contents/{+path}","compare_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/merges","archive_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/downloads","issues_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/issues{/number}","pulls_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/pulls{/number}","milestones_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/milestones{/number}","notifications_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/labels{/name}","releases_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/releases{/id}","deployments_url":"https://api.github.com/repos/Luukyb/simple-docker-drupal/deployments","created_at":"2016-08-16T11:01:10Z","updated_at":"2016-12-15T05:55:52Z","pushed_at":"2016-12-16T00:38:33Z","git_url":"git://github.com/Luukyb/simple-docker-drupal.git","ssh_url":"git@github.com:Luukyb/simple-docker-drupal.git","clone_url":"https://github.com/Luukyb/simple-docker-drupal.git","svn_url":"https://github.com/Luukyb/simple-docker-drupal","homepage":"","size":30,"stargazers_count":3,"watchers_count":3,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":3,"default_branch":"nginx-php-5"}},"_links":{"self":{"href":"https://api.github.com/repos/Luukyb/simple-docker-drupal/pulls/3"},"html":{"href":"https://github.com/Luukyb/simple-docker-drupal/pull/3"},"issue":{"href":"https://api.github.com/repos/Luukyb/simple-docker-drupal/issues/3"},"comments":{"href":"https://api.github.com/repos/Luukyb/simple-docker-drupal/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/Luukyb/simple-docker-drupal/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/Luukyb/simple-docker-drupal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Luukyb/simple-docker-drupal/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/Luukyb/simple-docker-drupal/statuses/2e3f443b08a8629a31f0e3ec19ef2948ce1e8dec"}}}}
{"actor":{"display_login":"Luukyb"}}