[web2py] Re: web2py gunicorn dockerfile

2018-02-04 Thread 黄祥
done 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] Re: web2py gunicorn dockerfile

2018-02-03 Thread Massimo Di Pierro
Can I ask you to submit a PR to add the dockerfile to the web2py repo? On Saturday, 27 January 2018 07:12:26 UTC-6, 黄祥 wrote: > > want to share the docker stack recipe, if anyone interest perhaps i can pr > to the web2py repo or share it on this group > [stack] > $ ls | grep web2py >

[web2py] Re: web2py gunicorn dockerfile

2018-01-27 Thread 黄祥
want to share the docker stack recipe, if anyone interest perhaps i can pr to the web2py repo or share it on this group [stack] $ ls | grep web2py web2py-gunicorn-nginx web2py-rocket-nginx web2py-rocket-ssl-nginx web2py-rocket-ssl-nginx-db-adminer web2py-rocket-ssl-nginx-memcached

[web2py] Re: web2py gunicorn dockerfile

2018-01-09 Thread 黄祥
it works well, my bad, forgot about shell variable is translated when created file using cat thanks and 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

[web2py] Re: web2py gunicorn dockerfile

2018-01-09 Thread 黄祥
thanks again alex, when executed same like previous tested in https://labs.play-with-docker.com, return an error (acceptable i think because the link and port provided is work (shown web2py welcome apps) ) *error traceback* PING 172.25.0.23 (172.25.0.23): 56 data bytes --- 172.25.0.23 ping

[web2py] Re: web2py gunicorn dockerfile

2018-01-09 Thread Alex Beskopilny
small fix - use dockerDNS 1 # run.sh docker rm $(docker stop $(docker ps -a -q --filter ancestor=w2pnginx --format="{{.ID}}")) docker rm $(docker stop $(docker ps -a -q --filter ancestor=w2pguni --format="{{.ID}}")) docker network rm w2pnet docker network create --subnet=172.25.0.0/16 w2pnet

[web2py] Re: web2py gunicorn dockerfile

2018-01-09 Thread 黄祥
thanks alex, tested in https://labs.play-with-docker.com, it works fine never thought to combine it with gunicorn and make nginx as a reverse proxy (correct me if i'm wrong, still not sure the different with forward proxy yet, hehe) and never thought to build some dockerfiles make it into 1 bash

[web2py] Re: web2py gunicorn dockerfile

2018-01-09 Thread Alex Beskopilny
four files in same directory 1 #guniDoc FROM python:2.7 RUN apt update && apt install -y unzip wget ENV PATH=/usr/local/bin:$PATH RUN pip install gunicorn RUN useradd -m -r web2py USER web2py WORKDIR /home/web2py RUN wget -c http://web2py.com/examples/static/web2py_src.zip && \ unzip -o

[web2py] Re: web2py gunicorn dockerfile

2018-01-08 Thread 黄祥
trying with latest ubuntu and web2py/scripts/setup-web2py-ubuntu.sh return an error Failed to connect to bus: No such file or directory step i took echo '# Emperor uWSGI script description "uWSGI Emperor" start on runlevel [2345] stop on runlevel [06] ## #remove the comments in the next section

[web2py] Re: web2py gunicorn dockerfile

2018-01-07 Thread 黄祥
is there any dockerfile that contain web2py with nginx ? thanks and 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

[web2py] Re: web2py gunicorn dockerfile

2018-01-06 Thread Alex Beskopilny
small fix 1 FROM python:2.7 RUN apt update && apt install -y unzip wget RUN /usr/local/bin/pip install gunicorn RUN groupadd -r web2py && useradd -m -r -g web2py web2py USER web2py WORKDIR /home/web2py RUN wget -c http://web2py.com/examples/static/web2py_src.zip && unzip -o web2py_src.zip &&

[web2py] Re: web2py gunicorn dockerfile

2018-01-06 Thread Alex Beskopilny
1 Dockerfile FROM python:2.7 RUN apt update && apt install -y unzip wget RUN /usr/local/bin/pip install gunicorn RUN groupadd -r web2py && useradd -m -r -g web2py web2py USER web2py RUN cd /home/web2py/ && wget -c http://web2py.com/examples/static/web2py_src.zip && unzip -o web2py_src.zip

[web2py] Re: web2py gunicorn dockerfile

2018-01-06 Thread 黄祥
after reread and relearn your dockerfile again it works with some modification with python image (installed gunicorn from pip install not from apt install, and port set into 8000, port 80 not work) docker run -p 80:80 imageid [2018-01-07 01:02:10 +] [8] [INFO] Starting gunicorn 19.7.1

[web2py] Re: web2py gunicorn dockerfile

2018-01-06 Thread 黄祥
yes, it works when using os base image (tested using ubuntu (like in the first post), centos, debian, fedora), the problem occured when using python base image. the point is when using os base image, it took longer (to install prerequisites package like python curl, git, dll) than using python

[web2py] Re: web2py gunicorn dockerfile

2018-01-05 Thread 黄祥
trying to modify but got another error *e.g.* *step i took on play-with-docker.com* cat < Dockerfile FROM python:2.7 RUN apt update && \ apt install -y unzip wget gunicorn RUN groupadd -r web2py && \ useradd -m -r -g web2py web2py USER web2py RUN cd /home/web2py/ && \ wget -c

[web2py] Re: web2py gunicorn dockerfile

2018-01-05 Thread Alex Beskopilny
Hi set WORKDIR in Dockerfile .. WORKDIR /home/site/web2py EXPOSE 80 CMD . /home/.. .. docker run 3001:80 image-name On Friday, January 5, 2018 at 5:45:04 AM UTC+3, 黄祥 wrote: > > just wondering why gunicorn dockerfile with web2py/anyserver.py is not > work when use with python:2.7