Tag: web2py

如何使用Dockerfile运行Google应用引擎服务器

我是新来的docker,我需要在谷歌应用程序引擎服务器使用Dockerfile运行web2py应用程序,为此我创build了dockerfile来安装python,gae服务器和我的web2py源文件夹。 我的问题是如何使用Dockerfile启动gae服务器,以及如何将现有的源代码configuration到gae中,以及如何运行gae服务器以在基于docker运行容器IP的浏览器上查看我的应用程序login页面 这里是我的Dockerfile FROM ubuntu:trusty MAINTAINER John #install python RUN sudo apt-get install python –assume-yes RUN apt-get install -y wget unzip #install GAE RUN wget https://dl.google.com/dl/cloudsdk/channels/rapid/google-cloud- sdk.zip && unzip google-cloud-sdk.zip && rm google-cloud-sdk.zip RUN google-cloud-sdk/install.sh –usage-reporting=true –path-update=true — bash-completion=true –rc-path=/.bashrc –additional-components app-engine-python ENV PATH /google-cloud-sdk/bin:$PATH COPY Testapp/ . RUN pwd WORKDIR Testapp CMD python web2py.py […]

创build一个web2pydocker图像并通过浏览器访问它

我正在尝试在Ubuntu上build立一个web2py的docker镜像。 给定docker文件 ####################### # Web2py installation # ####################### # Set the base image for this installation FROM ubuntu # File Author/ Mainteainer MAINTAINER sandilya28 #Update the repository sources list RUN apt-get update –assume-yes ########### BEGIN INSTALLATION ############# ## Install Git first RUN apt-get install git-core –assume-yes && \ cd /home/ && \ git clone –recursive […]