sorry. Have not tested docker-compose yet. If you can help fix this would 
be great.

On Sunday, 14 April 2019 22:11:26 UTC-7, 黄祥 wrote:
>
> *test dockerfile provided on web3py*
> *1st attempt from github (not worked)*
> git clone https://github.com/web2py/web3py 
> cd web3py/docker
> docker build -t test/web3py_git .
> docker run -d \
>  -p 8000:8000 \
>  --name web3py_git \
>  test/web3py_git
> $ docker ps -a
> CONTAINER ID        IMAGE               COMMAND                  CREATED   
>           STATUS                  PORTS               NAMES
> 4b7691de9843        test/web3py_git     "web3py-start applic…"   13 
> seconds ago      Exited (1) 11 seconds ago                       
> web3py_git
>
> *note*
> container is dead few seconds after it's run
>
> *2nd attempt manually created (not worked)*
> mkdir -p app/applications
> cat << EOF > app/requirements.txt
> pyjwt
> bottle
> gunicorn
> gevent
> reloader
> pydal3
> yatl
> web3py
> EOF
> cat << EOF > Dockerfile
> FROM python:3.7
>
> ADD app /app
> WORKDIR /app
>
> RUN pip install -r requirements.txt
>
> CMD ["web3py-start", "applications"]
> EOF
> docker build -t test/web3py_man .
> docker run -d \
>  -p 8000:8000 \
>  --name web3py_man \
>  test/web3py_man
> $ docker ps -a
> CONTAINER ID        IMAGE               COMMAND                  CREATED   
>           STATUS          PORTS                    NAMES
> 41a2fa82eed5        test/web3py_man     "web3py-start applic…"   13 
> seconds ago      Up 11 seconds       0.0.0.0:8000->8000/tcp   web3py_man
>
> *note*
> container can run, but can't access the web app todo/index
>
> *3rd attempt manually created my own cook (not worked)*
> cat << EOF > Dockerfile
> FROM ubuntu:latest
>
> RUN apt update && \
>  apt install -y git python3-pip && \
>  cd / && \
>  git clone https://github.com/web2py/web3py && \
>  cd web3py && \
>  pip3 install -r requirements.txt
>
> WORKDIR /web3py
>
> EXPOSE 8000
>
> CMD python3 /web3py/web3py-start /web3py/applications/
> EOF
> docker build -t test/web3py_cook .
> docker run -d \
>  -p 8000:8000 \
>  --name web3py_cook \
>  test/web3py_cook
> $ docker ps -a
> CONTAINER ID        IMAGE               COMMAND                  CREATED   
>           STATUS          PORTS                    NAMES
> ad85f10d5767        test/web3py_cook    "/bin/sh -c 'python3…"   15 
> seconds ago      Up 13 seconds       0.0.0.0:8000->8000/tcp   web3py_cook
>
> *note*
> container can run, but can't access the web app todo/index, the strange 
> things bout 3rd attempt, it works well when tested interactively (the same 
> step) via
> docker run -it --privileged ubuntu /bin/bash
>
> best regards,
> stifan
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to