{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/php-docker/issues/295","repository_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docker","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docker/issues/295/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docker/issues/295/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docker/issues/295/events","html_url":"https://github.com/GoogleCloudPlatform/php-docker/issues/295","id":230072987,"number":295,"title":"Support volume mounting for local development","user":{"login":"garnold","id":83754,"avatar_url":"https://avatars3.githubusercontent.com/u/83754?v=3","gravatar_id":"","url":"https://api.github.com/users/garnold","html_url":"https://github.com/garnold","followers_url":"https://api.github.com/users/garnold/followers","following_url":"https://api.github.com/users/garnold/following{/other_user}","gists_url":"https://api.github.com/users/garnold/gists{/gist_id}","starred_url":"https://api.github.com/users/garnold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garnold/subscriptions","organizations_url":"https://api.github.com/users/garnold/orgs","repos_url":"https://api.github.com/users/garnold/repos","events_url":"https://api.github.com/users/garnold/events{/privacy}","received_events_url":"https://api.github.com/users/garnold/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-05-19T19:48:39Z","updated_at":"2017-05-26T03:35:48Z","closed_at":null,"body":"Hello, digging GAE PHP FE thus far!\r\n\r\nOne challenge we're facing during local development is we'd like to be able to mount our application directory onto the container so we don't need to rebuild when we change files. Something like:\r\n\r\n```\r\ndocker run --name <name> --publish 8080:8080 --rm --volume=`pwd`:/app <image>:latest\r\n```\r\n\r\nThe issue is `entrypoint.sh` messes with file permissions and moves files around, causing unexpected changes to our local filesystem. \r\n\r\n[The docs recommend testing applications outside of Docker](https://cloud.google.com/appengine/docs/flexible/php/quickstart#run_hello_world_on_your_local_machine), however that defeats the purpose of using Docker in the first place IMHO.\r\n\r\nThe fix would be to move the majority of `entrypoint.sh` to `Dockerfile`, except for the Composer stuff. We're happy to rebuild when we change core configuration files like `php.ini` and `nginx*.conf`, but rebuilding when changing application files is tedious.\r\n\r\nThanks for your consideration!"},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/php-docker/issues/comments/304182513","html_url":"https://github.com/GoogleCloudPlatform/php-docker/issues/295#issuecomment-304182513","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/php-docker/issues/295","id":304182513,"user":{"login":"tmatsuo","id":41815,"avatar_url":"https://avatars1.githubusercontent.com/u/41815?v=3","gravatar_id":"","url":"https://api.github.com/users/tmatsuo","html_url":"https://github.com/tmatsuo","followers_url":"https://api.github.com/users/tmatsuo/followers","following_url":"https://api.github.com/users/tmatsuo/following{/other_user}","gists_url":"https://api.github.com/users/tmatsuo/gists{/gist_id}","starred_url":"https://api.github.com/users/tmatsuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmatsuo/subscriptions","organizations_url":"https://api.github.com/users/tmatsuo/orgs","repos_url":"https://api.github.com/users/tmatsuo/repos","events_url":"https://api.github.com/users/tmatsuo/events{/privacy}","received_events_url":"https://api.github.com/users/tmatsuo/received_events","type":"User","site_admin":false},"created_at":"2017-05-26T03:35:48Z","updated_at":"2017-05-26T03:35:48Z","body":"With the next release, some base images won't have the ENTRYPOINT."}}
{"actor":{"display_login":"tmatsuo"}}