{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/pulls/comments/88288460","pull_request_review_id":8866621,"id":88288460,"diff_hunk":"@@ -0,0 +1,16 @@\n+FROM debian:jessie\n+\n+# Install PHP\n+RUN apt-get update && \\\n+    apt-get install -y build-essential curl php5 php5-cli && \\\n+    apt-get clean && \\\n+    rm /var/lib/apt/lists/*_*\n+# Install Composer\n+RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer\n+RUN chmod 777 /usr/local/bin/composer\n+\n+COPY * /app/\n+WORKDIR /app\n+RUN cd /app/ && /usr/local/bin/composer install\n+\n+CMD [\"/usr/bin/php\", \"-S\", \"0.0.0.0:8081\"]","path":"endpoints/getting-started/Dockerfile.custom","position":16,"original_position":16,"commit_id":"db548729e17d724134bc08ba6669c063b0b899dd","original_commit_id":"db548729e17d724134bc08ba6669c063b0b899dd","user":{"login":"sepehre","id":20668581,"avatar_url":"https://avatars.githubusercontent.com/u/20668581?v=3","gravatar_id":"","url":"https://api.github.com/users/sepehre","html_url":"https://github.com/sepehre","followers_url":"https://api.github.com/users/sepehre/followers","following_url":"https://api.github.com/users/sepehre/following{/other_user}","gists_url":"https://api.github.com/users/sepehre/gists{/gist_id}","starred_url":"https://api.github.com/users/sepehre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sepehre/subscriptions","organizations_url":"https://api.github.com/users/sepehre/orgs","repos_url":"https://api.github.com/users/sepehre/repos","events_url":"https://api.github.com/users/sepehre/events{/privacy}","received_events_url":"https://api.github.com/users/sepehre/received_events","type":"User","site_admin":false},"body":"1. Depending on gcr.io/google_appengine/php is not appropriate here because this container is meant to be generic and used for GCE/GKE as well. \r\n\r\n2. AFAIK, the production setup for running a php web server is to install xampp, or nginx and configure it with fastcgi etc, which are beyond the scope of this sample Dockerfile.\r\n\r\nIf you'd like to add a comment to this effect in the Dockerfile, go for it. \r\nOtherwise, if there's another simpler way that I'm unaware of, please do teach me.","created_at":"2016-11-16T17:37:16Z","updated_at":"2016-11-16T17:37:16Z","html_url":"https://github.com/GoogleCloudPlatform/php-docs-samples/pull/243#discussion_r88288460","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/pulls/243","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/pulls/comments/88288460"},"html":{"href":"https://github.com/GoogleCloudPlatform/php-docs-samples/pull/243#discussion_r88288460"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/pulls/243"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/pulls/243","id":93641071,"html_url":"https://github.com/GoogleCloudPlatform/php-docs-samples/pull/243","diff_url":"https://github.com/GoogleCloudPlatform/php-docs-samples/pull/243.diff","patch_url":"https://github.com/GoogleCloudPlatform/php-docs-samples/pull/243.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/issues/243","number":243,"state":"open","locked":false,"title":"Updates new endpoints sample for env flex","user":{"login":"bshaffer","id":103941,"avatar_url":"https://avatars.githubusercontent.com/u/103941?v=3","gravatar_id":"","url":"https://api.github.com/users/bshaffer","html_url":"https://github.com/bshaffer","followers_url":"https://api.github.com/users/bshaffer/followers","following_url":"https://api.github.com/users/bshaffer/following{/other_user}","gists_url":"https://api.github.com/users/bshaffer/gists{/gist_id}","starred_url":"https://api.github.com/users/bshaffer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bshaffer/subscriptions","organizations_url":"https://api.github.com/users/bshaffer/orgs","repos_url":"https://api.github.com/users/bshaffer/repos","events_url":"https://api.github.com/users/bshaffer/events{/privacy}","received_events_url":"https://api.github.com/users/bshaffer/received_events","type":"User","site_admin":false},"body":"see #236","created_at":"2016-11-14T20:26:05Z","updated_at":"2016-11-16T17:37:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0b91e85fd89bf00fb4bf97fdeaa648c95540d55c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/pulls/243/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/pulls/243/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/issues/243/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/statuses/db548729e17d724134bc08ba6669c063b0b899dd","head":{"label":"GoogleCloudPlatform:updates-new-endpoints-sample-for-env-flex","ref":"updates-new-endpoints-sample-for-env-flex","sha":"db548729e17d724134bc08ba6669c063b0b899dd","user":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":6990814,"name":"php-docs-samples","full_name":"GoogleCloudPlatform/php-docs-samples","owner":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleCloudPlatform/php-docs-samples","description":"A collection of samples that demonstrate how to call Google Cloud services from PHP.","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/deployments","created_at":"2012-12-03T22:45:09Z","updated_at":"2016-11-13T07:28:20Z","pushed_at":"2016-11-16T05:14:18Z","git_url":"git://github.com/GoogleCloudPlatform/php-docs-samples.git","ssh_url":"git@github.com:GoogleCloudPlatform/php-docs-samples.git","clone_url":"https://github.com/GoogleCloudPlatform/php-docs-samples.git","svn_url":"https://github.com/GoogleCloudPlatform/php-docs-samples","homepage":"","size":3735,"stargazers_count":60,"watchers_count":60,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":49,"mirror_url":null,"open_issues_count":20,"forks":49,"open_issues":20,"watchers":60,"default_branch":"master"}},"base":{"label":"GoogleCloudPlatform:master","ref":"master","sha":"b903bfdb153081ba9b2deb48b886b06d570a5e6c","user":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":6990814,"name":"php-docs-samples","full_name":"GoogleCloudPlatform/php-docs-samples","owner":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleCloudPlatform/php-docs-samples","description":"A collection of samples that demonstrate how to call Google Cloud services from PHP.","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/deployments","created_at":"2012-12-03T22:45:09Z","updated_at":"2016-11-13T07:28:20Z","pushed_at":"2016-11-16T05:14:18Z","git_url":"git://github.com/GoogleCloudPlatform/php-docs-samples.git","ssh_url":"git@github.com:GoogleCloudPlatform/php-docs-samples.git","clone_url":"https://github.com/GoogleCloudPlatform/php-docs-samples.git","svn_url":"https://github.com/GoogleCloudPlatform/php-docs-samples","homepage":"","size":3735,"stargazers_count":60,"watchers_count":60,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":49,"mirror_url":null,"open_issues_count":20,"forks":49,"open_issues":20,"watchers":60,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/pulls/243"},"html":{"href":"https://github.com/GoogleCloudPlatform/php-docs-samples/pull/243"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/issues/243"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/issues/243/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/pulls/243/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/pulls/243/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/php-docs-samples/statuses/db548729e17d724134bc08ba6669c063b0b899dd"}}}}
{"actor":{"display_login":"sepehre"}}