GoogleCloudPlatform / appstart

Tool for running a GAE MVM emulation environment.
Apache License 2.0
12 stars 11 forks source link

Support vm:true runtime:python27 #14

Closed JustinBeckwith closed 5 years ago

JustinBeckwith commented 9 years ago

Today we require a Dockerfile, and will only work for custom scenarios. It would be nice if folks didn't need to learn this and dev_appserver.py. We could add support for running standard compat runtimes with no dockerfiles:

beckwith-macbookpro:compat-test beckwith$ appstart run app.yaml [I: 12:53:24] ------------------------------- BUILDING IMAGE ------------------------------- [I: 12:53:24] IMAGE : devappserver_image.2015.10.26_12.53.24 [I: 12:53:24] Step 0 : FROM appstart_devappserver_base [I: 12:53:24] ---> 32a9be320770 [I: 12:53:24] Step 1 : ADD /Users/beckwith/Code/compat-test/* /app/ [I: 12:53:24] ---> Using cache [I: 12:53:24] ---> 40dcf431cf14 [I: 12:53:24] Successfully built 40dcf431cf14 [I: 12:53:24] -------------------------------------------------------------------------------- [I: 12:53:25] Starting container: devappserver.2015.10.26_12.53.24 [I: 12:53:25] Starting container: devappserver.2015.10.26_12.53.24 [I: 12:53:49] ------------------------------- BUILDING IMAGE ------------------------------- [I: 12:53:49] IMAGE : app_image.2015.10.26_12.53.24 [I: 12:53:49] -------------------------------------------------------------------------------- [I: 12:53:49] Stopping 4e4654bd91c954943b92af1b1881543dcb8fea8ee1f97ddeb15b0bdd0fffd73c [I: 12:53:50] Removing 4e4654bd91c954943b92af1b1881543dcb8fea8ee1f97ddeb15b0bdd0fffd73c Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.7/bin/appstart", line 11, in sys.exit(main()) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/appstart/cli/start_script.py", line 73, in main with container_sandbox.ContainerSandbox(args): File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/appstart/sandbox/container_sandbox.py", line 219, in enter** self.start() File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/appstart/sandbox/container_sandbox.py", line 225, in start self.create_and_run_containers() File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/appstart/sandbox/container_sandbox.py", line 315, in create_and_run_containers app_image = self.image_name or self.build_app_image() File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/appstart/sandbox/container_sandbox.py", line 484, in build_app_image utils.build_from_directory(self.app_dir, name) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/appstart/utils.py", line 191, in build_from_directory log_and_check_build_results(res, image_name) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/appstart/utils.py", line 339, in log_and_check_build_results for chunk in build_res: File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/docker/client.py", line 224, in _stream_helper yield self._result(response) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/docker/client.py", line 146, in _result self._raise_for_status(response) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/docker/client.py", line 142, in _raise_for_status raise errors.APIError(e, response, explanation=explanation) docker.errors.APIError: 500 Server Error: Internal Server Error ("Cannot locate specified Dockerfile: Dockerfile") beckwith-macbookpro:compat-test beckwith$