Compare commits
103 Commits
jwt_allow_
...
R-2.17.2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
95709e582d | ||
|
|
755275f8ef | ||
|
|
84a33f1a50 | ||
|
|
ca5c79c980 | ||
|
|
09e53f495d | ||
|
|
4ede2de037 | ||
|
|
800bd53870 | ||
|
|
4c87932f06 | ||
|
|
8276b30c32 | ||
|
|
6f87a20e26 | ||
|
|
41162c794e | ||
|
|
6034368364 | ||
|
|
19c41b308d | ||
|
|
f5638c8f6b | ||
|
|
904ca403a2 | ||
|
|
d244c34282 | ||
|
|
1715bccac4 | ||
|
|
abf3ca54bf | ||
|
|
2440932579 | ||
|
|
02e14d91e1 | ||
|
|
e9547d219a | ||
|
|
70bb497b96 | ||
|
|
398fc6de37 | ||
|
|
50692a4fd3 | ||
|
|
11b441b777 | ||
|
|
62f5372876 | ||
|
|
fba90d31f4 | ||
|
|
9375ea7378 | ||
|
|
e697bdaf90 | ||
|
|
7bddd67a61 | ||
|
|
93c05240b7 | ||
|
|
2f1db7dfa2 | ||
|
|
0389a45034 | ||
|
|
ec53580a76 | ||
|
|
09c8b5eced | ||
|
|
928fd364cf | ||
|
|
55a2f4a6b2 | ||
|
|
6e0da9cea7 | ||
|
|
9364aa2036 | ||
|
|
48806ccd8f | ||
|
|
80582daaa0 | ||
|
|
33c6dd9656 | ||
|
|
1c8790271d | ||
|
|
f8cba1e5c4 | ||
|
|
f2aacd93c8 | ||
|
|
02b02f73bd | ||
|
|
af69716bf0 | ||
|
|
433ef09d2c | ||
|
|
2859994bbe | ||
|
|
5cf2c9696d | ||
|
|
b517282238 | ||
|
|
842a8d613b | ||
|
|
2226862ea9 | ||
|
|
e87ef4bc3a | ||
|
|
b28cc5b5c3 | ||
|
|
ef4e465222 | ||
|
|
1cdda4f7f6 | ||
|
|
de7aeceac8 | ||
|
|
e04d16bdc1 | ||
|
|
c5547091cf | ||
|
|
83abe91e3a | ||
|
|
4f29733fae | ||
|
|
6b8ccff2a4 | ||
|
|
e7fee6a417 | ||
|
|
63972386c2 | ||
|
|
5c626c6d95 | ||
|
|
46b8ad3fdd | ||
|
|
7111b3dcb2 | ||
|
|
285013a64a | ||
|
|
bcf288f55d | ||
|
|
88c98cad5c | ||
|
|
2203e0e49f | ||
|
|
540bda993f | ||
|
|
65b9c9ce17 | ||
|
|
5f9a097505 | ||
|
|
b33efddb77 | ||
|
|
577c45d183 | ||
|
|
077eb4263d | ||
|
|
2904dae2c3 | ||
|
|
225380d00b | ||
|
|
fc295bb617 | ||
|
|
6438200923 | ||
|
|
8c7955e107 | ||
|
|
68284be7b0 | ||
|
|
0d8dc294e9 | ||
|
|
cfe9c74eb1 | ||
|
|
e73029ce37 | ||
|
|
a053df7b75 | ||
|
|
a22aac1e65 | ||
|
|
1aab089205 | ||
|
|
ea1d9acfad | ||
|
|
90222d7867 | ||
|
|
e6b7388758 | ||
|
|
52672530b7 | ||
|
|
911cf430a9 | ||
|
|
9076053f7e | ||
|
|
c97cac19f0 | ||
|
|
b5e8cad672 | ||
|
|
d502275fc8 | ||
|
|
98c70d8a70 | ||
|
|
b7ba4a15f1 | ||
|
|
3585ef828e | ||
|
|
32eb1bc27d |
35
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
35
.github/ISSUE_TEMPLATE/bug_report.md
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
---
|
||||
name: Bug report
|
||||
about: Create a report to help us improve
|
||||
|
||||
---
|
||||
|
||||
**Describe the bug**
|
||||
A clear and concise description of what the bug is.
|
||||
|
||||
**To Reproduce**
|
||||
Steps to reproduce the behavior:
|
||||
1. Go to '...'
|
||||
2. Click on '....'
|
||||
3. Scroll down to '....'
|
||||
4. See error
|
||||
|
||||
**Expected behavior**
|
||||
A clear and concise description of what you expected to happen.
|
||||
|
||||
**Screenshots**
|
||||
If applicable, add screenshots to help explain your problem.
|
||||
|
||||
**Desktop (please complete the following information):**
|
||||
- OS: [e.g. iOS]
|
||||
- Browser [e.g. chrome, safari]
|
||||
- Version [e.g. 22]
|
||||
|
||||
**Smartphone (please complete the following information):**
|
||||
- Device: [e.g. iPhone6]
|
||||
- OS: [e.g. iOS8.1]
|
||||
- Browser [e.g. stock browser, safari]
|
||||
- Version [e.g. 22]
|
||||
|
||||
**Additional context**
|
||||
Add any other context about the problem here.
|
||||
17
.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
17
.github/ISSUE_TEMPLATE/feature_request.md
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
name: Feature request
|
||||
about: Suggest an idea for this project
|
||||
|
||||
---
|
||||
|
||||
**Is your feature request related to a problem? Please describe.**
|
||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||
|
||||
**Describe the solution you'd like**
|
||||
A clear and concise description of what you want to happen.
|
||||
|
||||
**Describe alternatives you've considered**
|
||||
A clear and concise description of any alternative solutions or features you've considered.
|
||||
|
||||
**Additional context**
|
||||
Add any other context or screenshots about the feature request here.
|
||||
@@ -1,3 +1,7 @@
|
||||
## 2.17.1-2
|
||||
- pydal 18.08
|
||||
- many small bug fixes
|
||||
|
||||
## 2.16.1
|
||||
- pydal 17.11
|
||||
- bootstrap 4
|
||||
|
||||
2
Makefile
2
Makefile
@@ -44,7 +44,7 @@ rmfiles:
|
||||
rm -rf applications/examples/uploads/*
|
||||
src:
|
||||
### Use semantic versioning
|
||||
echo 'Version 2.16.1-stable+timestamp.'`date +%Y.%m.%d.%H.%M.%S` > VERSION
|
||||
echo 'Version 2.17.2-stable+timestamp.'`date +%Y.%m.%d.%H.%M.%S` > VERSION
|
||||
### rm -f all junk files
|
||||
#make clean
|
||||
# make rmfiles
|
||||
|
||||
2
VERSION
2
VERSION
@@ -1 +1 @@
|
||||
Version 2.16.1-stable+timestamp.2018.05.24.15.00.45
|
||||
Version 2.17.2-stable+timestamp.2018.10.06.11.34.06
|
||||
|
||||
16
anyserver.py
16
anyserver.py
@@ -212,16 +212,16 @@ def mongrel2_handler(application, conn, debug=False):
|
||||
|
||||
while True:
|
||||
if debug:
|
||||
print "WAITING FOR REQUEST"
|
||||
print("WAITING FOR REQUEST")
|
||||
|
||||
# receive a request
|
||||
req = conn.recv()
|
||||
if debug:
|
||||
print "REQUEST BODY: %r\n" % req.body
|
||||
print("REQUEST BODY: %r\n" % req.body)
|
||||
|
||||
if req.is_disconnect():
|
||||
if debug:
|
||||
print "DISCONNECT"
|
||||
print("DISCONNECT")
|
||||
continue # effectively ignore the disconnect from the client
|
||||
|
||||
# Set a couple of environment attributes a.k.a. header attributes
|
||||
@@ -247,7 +247,7 @@ def mongrel2_handler(application, conn, debug=False):
|
||||
environ['wsgi.input'] = req.body
|
||||
|
||||
if debug:
|
||||
print "ENVIRON: %r\n" % environ
|
||||
print("ENVIRON: %r\n" % environ)
|
||||
|
||||
# SimpleHandler needs file-like stream objects for
|
||||
# requests, errors and responses
|
||||
@@ -282,10 +282,10 @@ def mongrel2_handler(application, conn, debug=False):
|
||||
|
||||
# return the response
|
||||
if debug:
|
||||
print "RESPONSE: %r\n" % response
|
||||
print("RESPONSE: %r\n" % response)
|
||||
if errors:
|
||||
if debug:
|
||||
print "ERRORS: %r" % errors
|
||||
print("ERRORS: %r" % errors)
|
||||
data = "%s\r\n\r\n%s" % (data, errors)
|
||||
conn.reply_http(
|
||||
req, data, code=code, status=status, headers=headers)
|
||||
@@ -355,8 +355,8 @@ def main():
|
||||
dest='workers',
|
||||
help='number of workers number')
|
||||
(options, args) = parser.parse_args()
|
||||
print 'starting %s on %s:%s...' % (
|
||||
options.server, options.ip, options.port)
|
||||
print('starting %s on %s:%s...' % (
|
||||
options.server, options.ip, options.port))
|
||||
run(options.server, options.ip, options.port,
|
||||
logging=options.logging, profiler=options.profiler_dir,
|
||||
options=options)
|
||||
|
||||
@@ -562,7 +562,11 @@ def enable():
|
||||
os.unlink(filename)
|
||||
return SPAN(T('Disable'), _style='color:green')
|
||||
else:
|
||||
safe_open(filename, 'wb').write('disabled: True\ntime-disabled: %s' % request.now)
|
||||
if PY2:
|
||||
safe_open(filename, 'wb').write('disabled: True\ntime-disabled: %s' % request.now)
|
||||
else:
|
||||
str_ = 'disabled: True\ntime-disabled: %s' % request.now
|
||||
safe_open(filename, 'wb').write(str_.encode('utf-8'))
|
||||
return SPAN(T('Enable'), _style='color:red')
|
||||
|
||||
|
||||
@@ -642,7 +646,10 @@ def edit():
|
||||
# show settings tab and save prefernces
|
||||
if 'settings' in request.vars:
|
||||
if request.post_vars: # save new preferences
|
||||
post_vars = request.post_vars.items()
|
||||
if PY2:
|
||||
post_vars = request.post_vars.items()
|
||||
else:
|
||||
post_vars = list(request.post_vars.items())
|
||||
# Since unchecked checkbox are not serialized, we must set them as false by hand to store the correct preference in the settings
|
||||
post_vars += [(opt, 'false') for opt in preferences if opt not in request.post_vars]
|
||||
if config.save(post_vars):
|
||||
|
||||
@@ -29,5 +29,14 @@ jQuery(function(){
|
||||
}
|
||||
hoverMenu(); // first page load
|
||||
jQuery(window).resize(hoverMenu); // on resize event
|
||||
jQuery('ul.nav li.dropdown a').click(function(){window.location=jQuery(this).attr('href');});
|
||||
jQuery('ul.nav li.dropdown a').click(function(){
|
||||
if(jQuery(this).attr("target")){
|
||||
window.open(
|
||||
jQuery(this).attr('href'),
|
||||
jQuery(this).attr('target') // <- This is what makes it open in a new window.
|
||||
);
|
||||
} else {
|
||||
window.location=jQuery(this).attr('href');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -62,16 +62,16 @@
|
||||
</center>
|
||||
|
||||
<p style="text-align:left;">
|
||||
The source code version works on all supported platforms, including Linux, but it requires Python 2.6, or 2.7 (recommended).
|
||||
It runs on Windows and most Unix systems, including <b>Linux</b> and <b>BSD</b>.
|
||||
The source code version works on Windows and most Unix systems, including <b>Linux</b>, <b>BSD</b> and <b>Mac</b> . It requires Python 2.6 (no more supported), Python 2.7 (stable) or Python 3.5+ (recommended for new projects) already installed on your system.
|
||||
There are also binary packages for Windows and Mac OS X. They include the Python 2.7 interpreter so you do not need to have it pre-installed.
|
||||
</p>
|
||||
|
||||
<h3>Instructions</h3>
|
||||
<p>After download, unzip it and click on web2py.exe (windows) or web2py.app (osx).
|
||||
To run from source, type:</p>
|
||||
{{=CODE("python2.7 web2py.py", language=None, counter='>', _class='boxCode')}}
|
||||
<p>With the binary packages, after download, just unzip it and then click on web2py.exe (windows) or web2py.app (osx).
|
||||
If you prefer to run it from source with your own Python interpreter alreay installed, type:</p>
|
||||
{{=CODE("python web2py.py", language=None, counter='>', _class='boxCode')}}
|
||||
<p>or for more info type:</p>
|
||||
{{=CODE("python2.7 web2py.py -h", language=None, counter='>', _class='boxCode')}}
|
||||
{{=CODE("python web2py.py -h", language=None, counter='>', _class='boxCode')}}
|
||||
|
||||
|
||||
<h3>Caveats</h3>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<div class="twothirds">
|
||||
<div class="padded">
|
||||
<h3><img src="{{=URL('static/images', 'web2py_logo.png')}}"> Web Framework</h3>
|
||||
<p>Free open source full-stack framework for rapid development of fast, scalable, <a href="http://www.web2py.com/book/default/chapter/01#Security" target="_blank">secure</a> and portable database-driven web-based applications. Written and programmable in <a href="http://www.python.org" target="_blank">Python</a>.</p>
|
||||
<p>Free open source full-stack framework for rapid development of fast, scalable, <a href="http://www.web2py.com/book/default/chapter/01#Security" target="_blank">secure</a> and portable database-driven web-based applications. Written and programmable in <a href="http://www.python.org" target="_blank">Python</a> (version 3 and 2.7).</p>
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
@@ -18,7 +18,7 @@
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a class="noeffect" href="http://link.packtpub.com/SUlnrN">
|
||||
<a class="noeffect" href="https://www.packtpub.com/web-development/web2py-application-development-cookbook">
|
||||
<img src="{{=URL('static','images/book-recipes.png')}}" />
|
||||
</a>
|
||||
</td>
|
||||
|
||||
@@ -348,3 +348,13 @@ td.w2p_fc,
|
||||
.icon.pen:before { content: "\f040";}
|
||||
.icon.arrowright:before { content: "\f061";}
|
||||
.icon.magnifier:before { content: "\f002";}
|
||||
|
||||
.web2py_table_selectable_actions {
|
||||
padding-top: 10px;
|
||||
float: right;
|
||||
}
|
||||
|
||||
.web2py_table_selectable_actions input {
|
||||
padding: 5px 7px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
});
|
||||
}
|
||||
var ul = this;
|
||||
$(ul).find(":text").addClass('form-control').wrap("<div class='input-group'></div>").after('<div class="input-group-addon"><i class="glyphicon glyphicon-plus"></i></div><div class="input-group-addon"><i class="glyphicon glyphicon-minus"></i></div>').keypress(function(e) {
|
||||
$(ul).find(":text").addClass('form-control').wrap("<div class='input-group'></div>").after('<div class="input-group-append"><i class="fa fa-plus-circle"></i></div> <div class="input-group-append"><i class="fa fa-minus-circle"></i></div>').keypress(function(e) {
|
||||
return (e.which == 13) ? pe(ul, e) : true;
|
||||
}).next().click(function(e) {
|
||||
pe(ul, e);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{{extend 'layout.html'}}
|
||||
|
||||
{{block header}}
|
||||
<div class="jumbotron jumbotron-fluid" style="background-color: #333; color:white; padding:30px;word-wrap:break-word;">
|
||||
<div class="jumbotron jumbotron-fluid background" style="background-color: #333; color:white; padding:30px;word-wrap:break-word;">
|
||||
<div class="container center">
|
||||
<h1 class="display-5">/{{=request.application}}/{{=request.controller}}/{{=request.function}}</h1>
|
||||
</div>
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
<a href="{{=URL('user/register')}}">{{=T('Register')}}</a>
|
||||
<br/>
|
||||
{{pass}}
|
||||
{{if request.args(0)=='login' and not 'request_reset_password' in auth.settings.actions_disabled:}}
|
||||
<a href="{{=URL('user/request_reset_password')}}">{{=T('Lost your password?')}}</a>
|
||||
{{if request.args(0)=='login' and not 'retrieve_password' in auth.settings.actions_disabled:}}
|
||||
<a href="{{=URL('user/retrieve_password')}}">{{=T('Lost your password?')}}</a>
|
||||
{{pass}}
|
||||
{{if request.args(0)=='register':}}
|
||||
<a href="{{=URL('user/login')}}">{{=T('Login')}}</a>
|
||||
|
||||
@@ -5,7 +5,7 @@ filename = '%s/%s.html' % (request.controller,request.function)
|
||||
if os.path.exists(os.path.join(request.folder,'views',filename)):
|
||||
html=response.render(filename)
|
||||
else:
|
||||
html=BODY(BEAUTIFY(response._vars)).xml()
|
||||
html=BODY(BEAUTIFY(response._vars))
|
||||
pass
|
||||
=pdf_from_html(html)
|
||||
}}
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
<body>
|
||||
<div class="w2p_flash alert alert-dismissable">{{=response.flash or ''}}</div>
|
||||
<!-- Navbar ======================================= -->
|
||||
<nav class="navbar navbar-light navbar-expand-md bg-faded justify-content-center">
|
||||
<nav class="navbar navbar-light navbar-expand-md bg-faded bg-dark navbar-dark justify-content-center">
|
||||
<a href="http://web2py.com" class="navbar-brand d-flex w-50 mr-auto">web2py</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
|
||||
27
docker/alpine/web2py-gevent/Dockerfile
Executable file
27
docker/alpine/web2py-gevent/Dockerfile
Executable file
@@ -0,0 +1,27 @@
|
||||
FROM alpine:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN apk add --no-cache python py-pip py-setuptools unzip wget py-gevent && \
|
||||
pip install --upgrade pip && \
|
||||
pip install virtualenv
|
||||
|
||||
RUN addgroup -S web2py && \
|
||||
adduser -D -S -G web2py web2py
|
||||
|
||||
USER web2py
|
||||
|
||||
RUN virtualenv /home/web2py && \
|
||||
rm -rf /home/web2py/web2py && \
|
||||
cd /home/web2py/ && \
|
||||
rm -f web2py_src.zip && \
|
||||
wget -c http://web2py.com/examples/static/web2py_src.zip && \
|
||||
unzip -o web2py_src.zip && \
|
||||
rm -rf /home/web2py/web2py/applications/examples && \
|
||||
chmod 755 -R /home/web2py/web2py
|
||||
|
||||
WORKDIR /home/web2py/web2py
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD . /home/web2py/bin/activate && /usr/bin/python /home/web2py/web2py/anyserver.py -s gevent -i 0.0.0.0 -p 8000
|
||||
41
docker/alpine/web2py-gevent/README.md
Executable file
41
docker/alpine/web2py-gevent/README.md
Executable file
@@ -0,0 +1,41 @@
|
||||
# Start Service
|
||||
systemctl start docker
|
||||
|
||||
# Docker
|
||||
cd /Docker/Alpine/web2py-gevent
|
||||
docker build -t your_username/alpine-web2py-gevent .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-gevent your_username/alpine-web2py-gevent
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
|
||||
# Docker Compose
|
||||
pip install docker-compose
|
||||
cd /Docker/Alpine/web2py-gevent
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
docker volume ls
|
||||
docker volume inspect root_applications
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Alpine/web2py-gevent
|
||||
docker login -u your_username
|
||||
docker build -t your_username/alpine-web2py-gevent .
|
||||
docker push your_username/alpine-web2py-gevent
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
|
||||
EOF
|
||||
cat docker-compose.yml
|
||||
|
||||
cat << EOF > Dockerfile
|
||||
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t your_username/alpine-web2py-gevent .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-gevent your_username/alpine-web2py-gevent
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
12
docker/alpine/web2py-gevent/docker-compose.yml
Executable file
12
docker/alpine/web2py-gevent/docker-compose.yml
Executable file
@@ -0,0 +1,12 @@
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
web2py-gevent:
|
||||
build: .
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- applications:/home/web2py/web2py/applications
|
||||
|
||||
volumes:
|
||||
applications:
|
||||
@@ -1,5 +1,7 @@
|
||||
FROM alpine:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN apk add --no-cache python py-pip py-setuptools unzip wget py-gunicorn && \
|
||||
pip install --upgrade pip && \
|
||||
pip install virtualenv
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
# Docker
|
||||
cd /Docker/Alpine/web2py-gunicorn
|
||||
docker build -t username/alpine-web2py-gunicorn .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-gunicorn username/alpine-web2py-gunicorn
|
||||
docker build -t your_username/alpine-web2py-gunicorn .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-gunicorn your_username/alpine-web2py-gunicorn
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
@@ -19,9 +19,9 @@
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Alpine/web2py-gunicorn
|
||||
docker login -u username
|
||||
docker build -t username/alpine-web2py-gunicorn .
|
||||
docker push username/alpine-web2py-gunicorn
|
||||
docker login -u your_username
|
||||
docker build -t your_username/alpine-web2py-gunicorn .
|
||||
docker push your_username/alpine-web2py-gunicorn
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
@@ -34,8 +34,8 @@ cat << EOF > Dockerfile
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t username/alpine-web2py-gunicorn .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-gunicorn username/alpine-web2py-gunicorn
|
||||
docker build -t your_username/alpine-web2py-gunicorn .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-gunicorn your_username/alpine-web2py-gunicorn
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
|
||||
27
docker/alpine/web2py-paste/Dockerfile
Executable file
27
docker/alpine/web2py-paste/Dockerfile
Executable file
@@ -0,0 +1,27 @@
|
||||
FROM alpine:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN apk add --no-cache python py-pip py-setuptools unzip wget && \
|
||||
pip install --upgrade pip && \
|
||||
pip install virtualenv paste
|
||||
|
||||
RUN addgroup -S web2py && \
|
||||
adduser -D -S -G web2py web2py
|
||||
|
||||
USER web2py
|
||||
|
||||
RUN virtualenv /home/web2py && \
|
||||
rm -rf /home/web2py/web2py && \
|
||||
cd /home/web2py/ && \
|
||||
rm -f web2py_src.zip && \
|
||||
wget -c http://web2py.com/examples/static/web2py_src.zip && \
|
||||
unzip -o web2py_src.zip && \
|
||||
rm -rf /home/web2py/web2py/applications/examples && \
|
||||
chmod 755 -R /home/web2py/web2py
|
||||
|
||||
WORKDIR /home/web2py/web2py
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD . /home/web2py/bin/activate && /usr/bin/python /home/web2py/web2py/anyserver.py -s paste -i 0.0.0.0 -p 8000
|
||||
41
docker/alpine/web2py-paste/README.md
Executable file
41
docker/alpine/web2py-paste/README.md
Executable file
@@ -0,0 +1,41 @@
|
||||
# Start Service
|
||||
systemctl start docker
|
||||
|
||||
# Docker
|
||||
cd /Docker/Alpine/web2py-paste
|
||||
docker build -t your_username/alpine-web2py-paste .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-paste your_username/alpine-web2py-paste
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
|
||||
# Docker Compose
|
||||
pip install docker-compose
|
||||
cd /Docker/Alpine/web2py-paste
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
docker volume ls
|
||||
docker volume inspect root_applications
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Alpine/web2py-paste
|
||||
docker login -u your_username
|
||||
docker build -t your_username/alpine-web2py-paste .
|
||||
docker push your_username/alpine-web2py-paste
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
|
||||
EOF
|
||||
cat docker-compose.yml
|
||||
|
||||
cat << EOF > Dockerfile
|
||||
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t your_username/alpine-web2py-paste .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-paste your_username/alpine-web2py-paste
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
12
docker/alpine/web2py-paste/docker-compose.yml
Executable file
12
docker/alpine/web2py-paste/docker-compose.yml
Executable file
@@ -0,0 +1,12 @@
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
web2py-paste:
|
||||
build: .
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- applications:/home/web2py/web2py/applications
|
||||
|
||||
volumes:
|
||||
applications:
|
||||
@@ -1,5 +1,7 @@
|
||||
FROM alpine:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN apk add --no-cache python py-pip py-setuptools unzip wget openssl && \
|
||||
pip install --upgrade pip && \
|
||||
pip install virtualenv
|
||||
@@ -9,7 +11,7 @@ RUN wget -c http://web2py.com/examples/static/web2py_src.zip && \
|
||||
rm -rf /web2py/applications/examples && \
|
||||
cd /web2py && \
|
||||
openssl genrsa 1024 > web2py.key && chmod 400 web2py.key && \
|
||||
openssl req -new -x509 -nodes -sha1 -days 1780 -subj '/C=c/ST=st/L=l/O=o/OU=ou/CN=cn.com' -key web2py.key > web2py.crt && \
|
||||
openssl req -new -x509 -nodes -sha1 -days 1780 -subj '/C=ID/ST=Jakarta/L=Jakarta/O=stifix/OU=IT/CN=stifix.com' -key web2py.key > web2py.crt && \
|
||||
openssl x509 -noout -fingerprint -text < web2py.crt > web2py.info && \
|
||||
chmod 755 -R /web2py
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
# Docker
|
||||
cd /Docker/Alpine/web2py-rocket-ssl
|
||||
docker build -t username/alpine-web2py-rocket-ssl .
|
||||
docker run -d -v applications:/web2py/applications -p 443:443 --name alpine-web2py-rocket-ssl username/alpine-web2py-rocket-ssl
|
||||
docker build -t your_username/alpine-web2py-rocket-ssl .
|
||||
docker run -d -v applications:/web2py/applications -p 443:443 --name alpine-web2py-rocket-ssl your_username/alpine-web2py-rocket-ssl
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
@@ -19,9 +19,9 @@
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Alpine/web2py-rocket-ssl
|
||||
docker login -u username
|
||||
docker build -t username/alpine-web2py-rocket-ssl .
|
||||
docker push username/alpine-web2py-rocket-ssl
|
||||
docker login -u your_username
|
||||
docker build -t your_username/alpine-web2py-rocket-ssl .
|
||||
docker push your_username/alpine-web2py-rocket-ssl
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
@@ -34,8 +34,8 @@ cat << EOF > Dockerfile
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t username/alpine-web2py-rocket-ssl .
|
||||
docker run -d -v applications:/web2py/applications -p 443:443 --name alpine-web2py-rocket-ssl username/
|
||||
docker build -t your_username/alpine-web2py-rocket-ssl .
|
||||
docker run -d -v applications:/web2py/applications -p 443:443 --name alpine-web2py-rocket-ssl your_username/
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
FROM alpine:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN apk add --no-cache python py-pip py-setuptools unzip wget && \
|
||||
pip install --upgrade pip && \
|
||||
pip install virtualenv
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
# Docker
|
||||
cd /Docker/Alpine/web2py-rocket
|
||||
docker build -t username/alpine-web2py-rocket .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-rocket username/alpine-web2py-rocket
|
||||
docker build -t your_username/alpine-web2py-rocket .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-rocket your_username/alpine-web2py-rocket
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
@@ -19,9 +19,9 @@
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Alpine/web2py-rocket
|
||||
docker login -u username
|
||||
docker build -t username/alpine-web2py-rocket .
|
||||
docker push username/alpine-web2py-rocket
|
||||
docker login -u your_username
|
||||
docker build -t your_username/alpine-web2py-rocket .
|
||||
docker push your_username/alpine-web2py-rocket
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
@@ -34,8 +34,8 @@ cat << EOF > Dockerfile
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t username/alpine-web2py-rocket .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-rocket username/
|
||||
docker build -t your_username/alpine-web2py-rocket .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-rocket your_username/
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
FROM alpine:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN apk add --no-cache python py-pip py-setuptools unzip wget py-tornado && \
|
||||
pip install --upgrade pip && \
|
||||
pip install virtualenv
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
# Docker
|
||||
cd /Docker/Alpine/web2py-tornado
|
||||
docker build -t username/alpine-web2py-tornado .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-tornado username/alpine-web2py-tornado
|
||||
docker build -t your_username/alpine-web2py-tornado .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-tornado your_username/alpine-web2py-tornado
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
@@ -19,9 +19,9 @@
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Alpine/web2py-tornado
|
||||
docker login -u username
|
||||
docker build -t username/alpine-web2py-tornado .
|
||||
docker push username/alpine-web2py-tornado
|
||||
docker login -u your_username
|
||||
docker build -t your_username/alpine-web2py-tornado .
|
||||
docker push your_username/alpine-web2py-tornado
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
@@ -34,8 +34,8 @@ cat << EOF > Dockerfile
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t username/alpine-web2py-tornado .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-tornado username/
|
||||
docker build -t your_username/alpine-web2py-tornado .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-tornado your_username/
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
|
||||
27
docker/alpine/web2py-waitress/Dockerfile
Executable file
27
docker/alpine/web2py-waitress/Dockerfile
Executable file
@@ -0,0 +1,27 @@
|
||||
FROM alpine:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN apk add --no-cache python py-pip py-setuptools unzip wget py-waitress && \
|
||||
pip install --upgrade pip && \
|
||||
pip install virtualenv
|
||||
|
||||
RUN addgroup -S web2py && \
|
||||
adduser -D -S -G web2py web2py
|
||||
|
||||
USER web2py
|
||||
|
||||
RUN virtualenv /home/web2py && \
|
||||
rm -rf /home/web2py/web2py && \
|
||||
cd /home/web2py/ && \
|
||||
rm -f web2py_src.zip && \
|
||||
wget -c http://web2py.com/examples/static/web2py_src.zip && \
|
||||
unzip -o web2py_src.zip && \
|
||||
rm -rf /home/web2py/web2py/applications/examples && \
|
||||
chmod 755 -R /home/web2py/web2py
|
||||
|
||||
WORKDIR /home/web2py/web2py
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD . /home/web2py/bin/activate && /usr/bin/python /home/web2py/web2py/anyserver.py -s waitress -i 0.0.0.0 -p 8000
|
||||
41
docker/alpine/web2py-waitress/README.md
Executable file
41
docker/alpine/web2py-waitress/README.md
Executable file
@@ -0,0 +1,41 @@
|
||||
# Start Service
|
||||
systemctl start docker
|
||||
|
||||
# Docker
|
||||
cd /Docker/Alpine/web2py-waitress
|
||||
docker build -t your_username/alpine-web2py-waitress .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-waitress your_username/alpine-web2py-waitress
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
|
||||
# Docker Compose
|
||||
pip install docker-compose
|
||||
cd /Docker/Alpine/web2py-waitress
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
docker volume ls
|
||||
docker volume inspect root_applications
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Alpine/web2py-waitress
|
||||
docker login -u your_username
|
||||
docker build -t your_username/alpine-web2py-waitress .
|
||||
docker push your_username/alpine-web2py-waitress
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
|
||||
EOF
|
||||
cat docker-compose.yml
|
||||
|
||||
cat << EOF > Dockerfile
|
||||
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t your_username/alpine-web2py-waitress .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-waitress your_username/alpine-web2py-waitress
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
12
docker/alpine/web2py-waitress/docker-compose.yml
Executable file
12
docker/alpine/web2py-waitress/docker-compose.yml
Executable file
@@ -0,0 +1,12 @@
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
web2py-waitress:
|
||||
build: .
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- applications:/home/web2py/web2py/applications
|
||||
|
||||
volumes:
|
||||
applications:
|
||||
27
docker/alpine/web2py-wsgiref/Dockerfile
Executable file
27
docker/alpine/web2py-wsgiref/Dockerfile
Executable file
@@ -0,0 +1,27 @@
|
||||
FROM alpine:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN apk add --no-cache python py-pip py-setuptools unzip wget && \
|
||||
pip install --upgrade pip && \
|
||||
pip install virtualenv wsgiref
|
||||
|
||||
RUN addgroup -S web2py && \
|
||||
adduser -D -S -G web2py web2py
|
||||
|
||||
USER web2py
|
||||
|
||||
RUN virtualenv /home/web2py && \
|
||||
rm -rf /home/web2py/web2py && \
|
||||
cd /home/web2py/ && \
|
||||
rm -f web2py_src.zip && \
|
||||
wget -c http://web2py.com/examples/static/web2py_src.zip && \
|
||||
unzip -o web2py_src.zip && \
|
||||
rm -rf /home/web2py/web2py/applications/examples && \
|
||||
chmod 755 -R /home/web2py/web2py
|
||||
|
||||
WORKDIR /home/web2py/web2py
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD . /home/web2py/bin/activate && /usr/bin/python /home/web2py/web2py/anyserver.py -s wsgiref -i 0.0.0.0 -p 8000
|
||||
41
docker/alpine/web2py-wsgiref/README.md
Executable file
41
docker/alpine/web2py-wsgiref/README.md
Executable file
@@ -0,0 +1,41 @@
|
||||
# Start Service
|
||||
systemctl start docker
|
||||
|
||||
# Docker
|
||||
cd /Docker/Alpine/web2py-wsgiref
|
||||
docker build -t your_username/alpine-web2py-wsgiref .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-wsgiref your_username/alpine-web2py-wsgiref
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
|
||||
# Docker Compose
|
||||
pip install docker-compose
|
||||
cd /Docker/Alpine/web2py-wsgiref
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
docker volume ls
|
||||
docker volume inspect root_applications
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Alpine/web2py-wsgiref
|
||||
docker login -u your_username
|
||||
docker build -t your_username/alpine-web2py-wsgiref .
|
||||
docker push your_username/alpine-web2py-wsgiref
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
|
||||
EOF
|
||||
cat docker-compose.yml
|
||||
|
||||
cat << EOF > Dockerfile
|
||||
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t your_username/alpine-web2py-wsgiref .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-wsgiref your_username/alpine-web2py-wsgiref
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
12
docker/alpine/web2py-wsgiref/docker-compose.yml
Executable file
12
docker/alpine/web2py-wsgiref/docker-compose.yml
Executable file
@@ -0,0 +1,12 @@
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
web2py-wsgiref:
|
||||
build: .
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- applications:/home/web2py/web2py/applications
|
||||
|
||||
volumes:
|
||||
applications:
|
||||
28
docker/centos/web2py-eventlet/Dockerfile
Executable file
28
docker/centos/web2py-eventlet/Dockerfile
Executable file
@@ -0,0 +1,28 @@
|
||||
FROM centos:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN yum install -y epel-release && \
|
||||
yum install -y python python-pip python-setuptools unzip wget python-eventlet --nogpgcheck && \
|
||||
pip install --upgrade pip && \
|
||||
pip install virtualenv
|
||||
|
||||
RUN groupadd -r web2py && \
|
||||
useradd -m -r -g web2py web2py
|
||||
|
||||
USER web2py
|
||||
|
||||
RUN virtualenv /home/web2py && \
|
||||
rm -rf /home/web2py/web2py && \
|
||||
cd /home/web2py/ && \
|
||||
rm -f web2py_src.zip && \
|
||||
wget -c http://web2py.com/examples/static/web2py_src.zip && \
|
||||
unzip -o web2py_src.zip && \
|
||||
rm -rf /home/web2py/web2py/applications/examples && \
|
||||
chmod 755 -R /home/web2py/web2py
|
||||
|
||||
WORKDIR /home/web2py/web2py
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD . /home/web2py/bin/activate && /usr/bin/python /home/web2py/web2py/anyserver.py -s eventlet -i 0.0.0.0 -p 8000
|
||||
41
docker/centos/web2py-eventlet/README.md
Executable file
41
docker/centos/web2py-eventlet/README.md
Executable file
@@ -0,0 +1,41 @@
|
||||
# Start Service
|
||||
systemctl start docker
|
||||
|
||||
# Docker
|
||||
cd /Docker/Centos/web2py-eventlet
|
||||
docker build -t your_username/centos-web2py-eventlet .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-eventlet your_username/centos-web2py-eventlet
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
|
||||
# Docker Compose
|
||||
pip install docker-compose
|
||||
cd /Docker/Centos/web2py-eventlet
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
docker volume ls
|
||||
docker volume inspect root_applications
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Centos/web2py-eventlet
|
||||
docker login -u your_username
|
||||
docker build -t your_username/centos-web2py-eventlet .
|
||||
docker push your_username/centos-web2py-eventlet
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
|
||||
EOF
|
||||
cat docker-compose.yml
|
||||
|
||||
cat << EOF > Dockerfile
|
||||
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t your_username/centos-web2py-eventlet .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-eventlet your_username/centos-web2py-eventlet
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
12
docker/centos/web2py-eventlet/docker-compose.yml
Executable file
12
docker/centos/web2py-eventlet/docker-compose.yml
Executable file
@@ -0,0 +1,12 @@
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
web2py-eventlet:
|
||||
build: .
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- applications:/home/web2py/web2py/applications
|
||||
|
||||
volumes:
|
||||
applications:
|
||||
28
docker/centos/web2py-gevent/Dockerfile
Executable file
28
docker/centos/web2py-gevent/Dockerfile
Executable file
@@ -0,0 +1,28 @@
|
||||
FROM centos:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN yum install -y epel-release && \
|
||||
yum install -y python python-pip python-setuptools unzip wget python-gevent --nogpgcheck && \
|
||||
pip install --upgrade pip && \
|
||||
pip install virtualenv
|
||||
|
||||
RUN groupadd -r web2py && \
|
||||
useradd -m -r -g web2py web2py
|
||||
|
||||
USER web2py
|
||||
|
||||
RUN virtualenv /home/web2py && \
|
||||
rm -rf /home/web2py/web2py && \
|
||||
cd /home/web2py/ && \
|
||||
rm -f web2py_src.zip && \
|
||||
wget -c http://web2py.com/examples/static/web2py_src.zip && \
|
||||
unzip -o web2py_src.zip && \
|
||||
rm -rf /home/web2py/web2py/applications/examples && \
|
||||
chmod 755 -R /home/web2py/web2py
|
||||
|
||||
WORKDIR /home/web2py/web2py
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD . /home/web2py/bin/activate && /usr/bin/python /home/web2py/web2py/anyserver.py -s gevent -i 0.0.0.0 -p 8000
|
||||
41
docker/centos/web2py-gevent/README.md
Executable file
41
docker/centos/web2py-gevent/README.md
Executable file
@@ -0,0 +1,41 @@
|
||||
# Start Service
|
||||
systemctl start docker
|
||||
|
||||
# Docker
|
||||
cd /Docker/Centos/web2py-gevent
|
||||
docker build -t your_username/centos-web2py-gevent .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-gevent your_username/centos-web2py-gevent
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
|
||||
# Docker Compose
|
||||
pip install docker-compose
|
||||
cd /Docker/Centos/web2py-gevent
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
docker volume ls
|
||||
docker volume inspect root_applications
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Centos/web2py-gevent
|
||||
docker login -u your_username
|
||||
docker build -t your_username/centos-web2py-gevent .
|
||||
docker push your_username/centos-web2py-gevent
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
|
||||
EOF
|
||||
cat docker-compose.yml
|
||||
|
||||
cat << EOF > Dockerfile
|
||||
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t your_username/centos-web2py-gevent .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-gevent your_username/centos-web2py-gevent
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
12
docker/centos/web2py-gevent/docker-compose.yml
Executable file
12
docker/centos/web2py-gevent/docker-compose.yml
Executable file
@@ -0,0 +1,12 @@
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
web2py-gevent:
|
||||
build: .
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- applications:/home/web2py/web2py/applications
|
||||
|
||||
volumes:
|
||||
applications:
|
||||
@@ -1,5 +1,7 @@
|
||||
FROM centos:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN yum install -y epel-release && \
|
||||
yum install -y python python-pip python-setuptools unzip wget python-gunicorn --nogpgcheck && \
|
||||
pip install --upgrade pip && \
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
# Docker
|
||||
cd /Docker/Centos/web2py-gunicorn
|
||||
docker build -t username/centos-web2py-gunicorn .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-gunicorn username/centos-web2py-gunicorn
|
||||
docker build -t your_username/centos-web2py-gunicorn .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-gunicorn your_username/centos-web2py-gunicorn
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
@@ -19,9 +19,9 @@
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Centos/web2py-gunicorn
|
||||
docker login -u username
|
||||
docker build -t username/centos-web2py-gunicorn .
|
||||
docker push username/centos-web2py-gunicorn
|
||||
docker login -u your_username
|
||||
docker build -t your_username/centos-web2py-gunicorn .
|
||||
docker push your_username/centos-web2py-gunicorn
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
@@ -34,8 +34,8 @@ cat << EOF > Dockerfile
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t username/centos-web2py-gunicorn .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-gunicorn username/centos-web2py-gunicorn
|
||||
docker build -t your_username/centos-web2py-gunicorn .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-gunicorn your_username/centos-web2py-gunicorn
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
|
||||
28
docker/centos/web2py-paste/Dockerfile
Executable file
28
docker/centos/web2py-paste/Dockerfile
Executable file
@@ -0,0 +1,28 @@
|
||||
FROM centos:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN yum install -y epel-release && \
|
||||
yum install -y python python-pip python-setuptools unzip wget python-paste --nogpgcheck && \
|
||||
pip install --upgrade pip && \
|
||||
pip install virtualenv
|
||||
|
||||
RUN groupadd -r web2py && \
|
||||
useradd -m -r -g web2py web2py
|
||||
|
||||
USER web2py
|
||||
|
||||
RUN virtualenv /home/web2py && \
|
||||
rm -rf /home/web2py/web2py && \
|
||||
cd /home/web2py/ && \
|
||||
rm -f web2py_src.zip && \
|
||||
wget -c http://web2py.com/examples/static/web2py_src.zip && \
|
||||
unzip -o web2py_src.zip && \
|
||||
rm -rf /home/web2py/web2py/applications/examples && \
|
||||
chmod 755 -R /home/web2py/web2py
|
||||
|
||||
WORKDIR /home/web2py/web2py
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD . /home/web2py/bin/activate && /usr/bin/python /home/web2py/web2py/anyserver.py -s paste -i 0.0.0.0 -p 8000
|
||||
41
docker/centos/web2py-paste/README.md
Executable file
41
docker/centos/web2py-paste/README.md
Executable file
@@ -0,0 +1,41 @@
|
||||
# Start Service
|
||||
systemctl start docker
|
||||
|
||||
# Docker
|
||||
cd /Docker/Centos/web2py-paste
|
||||
docker build -t your_username/centos-web2py-paste .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-paste your_username/centos-web2py-paste
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
|
||||
# Docker Compose
|
||||
pip install docker-compose
|
||||
cd /Docker/Centos/web2py-paste
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
docker volume ls
|
||||
docker volume inspect root_applications
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Centos/web2py-paste
|
||||
docker login -u your_username
|
||||
docker build -t your_username/centos-web2py-paste .
|
||||
docker push your_username/centos-web2py-paste
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
|
||||
EOF
|
||||
cat docker-compose.yml
|
||||
|
||||
cat << EOF > Dockerfile
|
||||
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t your_username/centos-web2py-paste .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-paste your_username/centos-web2py-paste
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
12
docker/centos/web2py-paste/docker-compose.yml
Executable file
12
docker/centos/web2py-paste/docker-compose.yml
Executable file
@@ -0,0 +1,12 @@
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
web2py-paste:
|
||||
build: .
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- applications:/home/web2py/web2py/applications
|
||||
|
||||
volumes:
|
||||
applications:
|
||||
@@ -1,5 +1,7 @@
|
||||
FROM centos:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN yum install -y epel-release && \
|
||||
yum install -y python python-pip python-setuptools unzip wget --nogpgcheck && \
|
||||
pip install --upgrade pip && \
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
# Docker
|
||||
cd /Docker/Centos/web2py-rocket
|
||||
docker build -t username/centos-web2py-rocket .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-rocket username/centos-web2py-rocket
|
||||
docker build -t your_username/centos-web2py-rocket .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-rocket your_username/centos-web2py-rocket
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
@@ -19,9 +19,9 @@
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Centos/web2py-rocket
|
||||
docker login -u username
|
||||
docker build -t username/centos-web2py-rocket .
|
||||
docker push username/centos-web2py-rocket
|
||||
docker login -u your_username
|
||||
docker build -t your_username/centos-web2py-rocket .
|
||||
docker push your_username/centos-web2py-rocket
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
@@ -34,8 +34,8 @@ cat << EOF > Dockerfile
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t username/centos-web2py-rocket .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-rocket username/centos-web2py-rocket
|
||||
docker build -t your_username/centos-web2py-rocket .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-rocket your_username/centos-web2py-rocket
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
FROM centos:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN yum install -y epel-release && \
|
||||
yum install -y python python-pip python-setuptools unzip wget python-tornado --nogpgcheck && \
|
||||
pip install --upgrade pip && \
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
# Docker
|
||||
cd /Docker/Centos/web2py-tornado
|
||||
docker build -t username/centos-web2py-tornado .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-tornado username/centos-web2py-tornado
|
||||
docker build -t your_username/centos-web2py-tornado .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-tornado your_username/centos-web2py-tornado
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
@@ -19,9 +19,9 @@
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Centos/web2py-tornado
|
||||
docker login -u username
|
||||
docker build -t username/centos-web2py-tornado .
|
||||
docker push username/centos-web2py-tornado
|
||||
docker login -u your_username
|
||||
docker build -t your_username/centos-web2py-tornado .
|
||||
docker push your_username/centos-web2py-tornado
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
@@ -34,8 +34,8 @@ cat << EOF > Dockerfile
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t username/centos-web2py-tornado .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-tornado username/centos-web2py-tornado
|
||||
docker build -t your_username/centos-web2py-tornado .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-tornado your_username/centos-web2py-tornado
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
|
||||
28
docker/centos/web2py-twisted/Dockerfile
Executable file
28
docker/centos/web2py-twisted/Dockerfile
Executable file
@@ -0,0 +1,28 @@
|
||||
FROM centos:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN yum install -y epel-release && \
|
||||
yum install -y python python-pip python-setuptools unzip wget python-twisted-web --nogpgcheck && \
|
||||
pip install --upgrade pip && \
|
||||
pip install virtualenv
|
||||
|
||||
RUN groupadd -r web2py && \
|
||||
useradd -m -r -g web2py web2py
|
||||
|
||||
USER web2py
|
||||
|
||||
RUN virtualenv /home/web2py && \
|
||||
rm -rf /home/web2py/web2py && \
|
||||
cd /home/web2py/ && \
|
||||
rm -f web2py_src.zip && \
|
||||
wget -c http://web2py.com/examples/static/web2py_src.zip && \
|
||||
unzip -o web2py_src.zip && \
|
||||
rm -rf /home/web2py/web2py/applications/examples && \
|
||||
chmod 755 -R /home/web2py/web2py
|
||||
|
||||
WORKDIR /home/web2py/web2py
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD . /home/web2py/bin/activate && /usr/bin/python /home/web2py/web2py/anyserver.py -s twisted -i 0.0.0.0 -p 8000
|
||||
41
docker/centos/web2py-twisted/README.md
Executable file
41
docker/centos/web2py-twisted/README.md
Executable file
@@ -0,0 +1,41 @@
|
||||
# Start Service
|
||||
systemctl start docker
|
||||
|
||||
# Docker
|
||||
cd /Docker/Centos/web2py-twisted
|
||||
docker build -t your_username/centos-web2py-twisted .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-twisted your_username/centos-web2py-twisted
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
|
||||
# Docker Compose
|
||||
pip install docker-compose
|
||||
cd /Docker/Centos/web2py-twisted
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
docker volume ls
|
||||
docker volume inspect root_applications
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Centos/web2py-twisted
|
||||
docker login -u your_username
|
||||
docker build -t your_username/centos-web2py-twisted .
|
||||
docker push your_username/centos-web2py-twisted
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
|
||||
EOF
|
||||
cat docker-compose.yml
|
||||
|
||||
cat << EOF > Dockerfile
|
||||
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t your_username/centos-web2py-twisted .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-twisted your_username/centos-web2py-twisted
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
12
docker/centos/web2py-twisted/docker-compose.yml
Executable file
12
docker/centos/web2py-twisted/docker-compose.yml
Executable file
@@ -0,0 +1,12 @@
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
web2py-twisted:
|
||||
build: .
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- applications:/home/web2py/web2py/applications
|
||||
|
||||
volumes:
|
||||
applications:
|
||||
28
docker/centos/web2py-waitress/Dockerfile
Executable file
28
docker/centos/web2py-waitress/Dockerfile
Executable file
@@ -0,0 +1,28 @@
|
||||
FROM centos:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN yum install -y epel-release && \
|
||||
yum install -y python python-pip python-setuptools unzip wget python-waitress --nogpgcheck && \
|
||||
pip install --upgrade pip && \
|
||||
pip install virtualenv
|
||||
|
||||
RUN groupadd -r web2py && \
|
||||
useradd -m -r -g web2py web2py
|
||||
|
||||
USER web2py
|
||||
|
||||
RUN virtualenv /home/web2py && \
|
||||
rm -rf /home/web2py/web2py && \
|
||||
cd /home/web2py/ && \
|
||||
rm -f web2py_src.zip && \
|
||||
wget -c http://web2py.com/examples/static/web2py_src.zip && \
|
||||
unzip -o web2py_src.zip && \
|
||||
rm -rf /home/web2py/web2py/applications/examples && \
|
||||
chmod 755 -R /home/web2py/web2py
|
||||
|
||||
WORKDIR /home/web2py/web2py
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD . /home/web2py/bin/activate && /usr/bin/python /home/web2py/web2py/anyserver.py -s waitress -i 0.0.0.0 -p 8000
|
||||
41
docker/centos/web2py-waitress/README.md
Executable file
41
docker/centos/web2py-waitress/README.md
Executable file
@@ -0,0 +1,41 @@
|
||||
# Start Service
|
||||
systemctl start docker
|
||||
|
||||
# Docker
|
||||
cd /Docker/Centos/web2py-waitress
|
||||
docker build -t your_username/centos-web2py-waitress .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-waitress your_username/centos-web2py-waitress
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
|
||||
# Docker Compose
|
||||
pip install docker-compose
|
||||
cd /Docker/Centos/web2py-waitress
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
docker volume ls
|
||||
docker volume inspect root_applications
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Centos/web2py-waitress
|
||||
docker login -u your_username
|
||||
docker build -t your_username/centos-web2py-waitress .
|
||||
docker push your_username/centos-web2py-waitress
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
|
||||
EOF
|
||||
cat docker-compose.yml
|
||||
|
||||
cat << EOF > Dockerfile
|
||||
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t your_username/centos-web2py-waitress .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-waitress your_username/centos-web2py-waitress
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
12
docker/centos/web2py-waitress/docker-compose.yml
Executable file
12
docker/centos/web2py-waitress/docker-compose.yml
Executable file
@@ -0,0 +1,12 @@
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
web2py-waitress:
|
||||
build: .
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- applications:/home/web2py/web2py/applications
|
||||
|
||||
volumes:
|
||||
applications:
|
||||
28
docker/centos/web2py-wsgiref/Dockerfile
Executable file
28
docker/centos/web2py-wsgiref/Dockerfile
Executable file
@@ -0,0 +1,28 @@
|
||||
FROM centos:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN yum install -y epel-release && \
|
||||
yum install -y python python-pip python-setuptools unzip wget --nogpgcheck && \
|
||||
pip install --upgrade pip && \
|
||||
pip install virtualenv wsgiref
|
||||
|
||||
RUN groupadd -r web2py && \
|
||||
useradd -m -r -g web2py web2py
|
||||
|
||||
USER web2py
|
||||
|
||||
RUN virtualenv /home/web2py && \
|
||||
rm -rf /home/web2py/web2py && \
|
||||
cd /home/web2py/ && \
|
||||
rm -f web2py_src.zip && \
|
||||
wget -c http://web2py.com/examples/static/web2py_src.zip && \
|
||||
unzip -o web2py_src.zip && \
|
||||
rm -rf /home/web2py/web2py/applications/examples && \
|
||||
chmod 755 -R /home/web2py/web2py
|
||||
|
||||
WORKDIR /home/web2py/web2py
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD . /home/web2py/bin/activate && /usr/bin/python /home/web2py/web2py/anyserver.py -s wsgiref -i 0.0.0.0 -p 8000
|
||||
41
docker/centos/web2py-wsgiref/README.md
Executable file
41
docker/centos/web2py-wsgiref/README.md
Executable file
@@ -0,0 +1,41 @@
|
||||
# Start Service
|
||||
systemctl start docker
|
||||
|
||||
# Docker
|
||||
cd /Docker/Centos/web2py-wsgiref
|
||||
docker build -t your_username/centos-web2py-wsgiref .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-wsgiref your_username/centos-web2py-wsgiref
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
|
||||
# Docker Compose
|
||||
pip install docker-compose
|
||||
cd /Docker/Centos/web2py-wsgiref
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
docker volume ls
|
||||
docker volume inspect root_applications
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Centos/web2py-wsgiref
|
||||
docker login -u your_username
|
||||
docker build -t your_username/centos-web2py-wsgiref .
|
||||
docker push your_username/centos-web2py-wsgiref
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
|
||||
EOF
|
||||
cat docker-compose.yml
|
||||
|
||||
cat << EOF > Dockerfile
|
||||
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t your_username/centos-web2py-wsgiref .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name centos-web2py-wsgiref your_username/centos-web2py-wsgiref
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
12
docker/centos/web2py-wsgiref/docker-compose.yml
Executable file
12
docker/centos/web2py-wsgiref/docker-compose.yml
Executable file
@@ -0,0 +1,12 @@
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
web2py-wsgiref:
|
||||
build: .
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- applications:/home/web2py/web2py/applications
|
||||
|
||||
volumes:
|
||||
applications:
|
||||
27
docker/debian/web2py-diesel/Dockerfile
Executable file
27
docker/debian/web2py-diesel/Dockerfile
Executable file
@@ -0,0 +1,27 @@
|
||||
FROM debian:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN apt update && \
|
||||
apt install -y python python-pip python-setuptools unzip wget && \
|
||||
pip install virtualenv diesel
|
||||
|
||||
RUN groupadd -r web2py && \
|
||||
useradd -m -r -g web2py web2py
|
||||
|
||||
USER web2py
|
||||
|
||||
RUN virtualenv /home/web2py && \
|
||||
rm -rf /home/web2py/web2py && \
|
||||
cd /home/web2py/ && \
|
||||
rm -f web2py_src.zip && \
|
||||
wget -c http://web2py.com/examples/static/web2py_src.zip && \
|
||||
unzip -o web2py_src.zip && \
|
||||
rm -rf /home/web2py/web2py/applications/examples && \
|
||||
chmod 755 -R /home/web2py/web2py
|
||||
|
||||
WORKDIR /home/web2py/web2py
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD . /home/web2py/bin/activate && /usr/bin/python /home/web2py/web2py/anyserver.py -s diesel -i 0.0.0.0 -p 8000
|
||||
41
docker/debian/web2py-diesel/README.md
Executable file
41
docker/debian/web2py-diesel/README.md
Executable file
@@ -0,0 +1,41 @@
|
||||
# Start Service
|
||||
systemctl start docker
|
||||
|
||||
# Docker
|
||||
cd /Docker/Debian/web2py-diesel
|
||||
docker build -t your_username/debian-web2py-diesel .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-diesel your_username/debian-web2py-diesel
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
|
||||
# Docker Compose
|
||||
pip install docker-compose
|
||||
cd /Docker/Debian/web2py-diesel
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
docker volume ls
|
||||
docker volume inspect root_applications
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Debian/web2py-diesel
|
||||
docker login -u your_username
|
||||
docker build -t your_username/debian-web2py-diesel .
|
||||
docker push your_username/debian-web2py-diesel
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
|
||||
EOF
|
||||
cat docker-compose.yml
|
||||
|
||||
cat << EOF > Dockerfile
|
||||
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t your_username/debian-web2py-diesel .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-diesel your_username/debian-web2py-diesel
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
12
docker/debian/web2py-diesel/docker-compose.yml
Executable file
12
docker/debian/web2py-diesel/docker-compose.yml
Executable file
@@ -0,0 +1,12 @@
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
web2py-diesel:
|
||||
build: .
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- applications:/home/web2py/web2py/applications
|
||||
|
||||
volumes:
|
||||
applications:
|
||||
27
docker/debian/web2py-eventlet/Dockerfile
Executable file
27
docker/debian/web2py-eventlet/Dockerfile
Executable file
@@ -0,0 +1,27 @@
|
||||
FROM debian:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN apt update && \
|
||||
apt install -y python python-pip python-setuptools unzip wget python-eventlet && \
|
||||
pip install virtualenv
|
||||
|
||||
RUN groupadd -r web2py && \
|
||||
useradd -m -r -g web2py web2py
|
||||
|
||||
USER web2py
|
||||
|
||||
RUN virtualenv /home/web2py && \
|
||||
rm -rf /home/web2py/web2py && \
|
||||
cd /home/web2py/ && \
|
||||
rm -f web2py_src.zip && \
|
||||
wget -c http://web2py.com/examples/static/web2py_src.zip && \
|
||||
unzip -o web2py_src.zip && \
|
||||
rm -rf /home/web2py/web2py/applications/examples && \
|
||||
chmod 755 -R /home/web2py/web2py
|
||||
|
||||
WORKDIR /home/web2py/web2py
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD . /home/web2py/bin/activate && /usr/bin/python /home/web2py/web2py/anyserver.py -s eventlet -i 0.0.0.0 -p 8000
|
||||
41
docker/debian/web2py-eventlet/README.md
Executable file
41
docker/debian/web2py-eventlet/README.md
Executable file
@@ -0,0 +1,41 @@
|
||||
# Start Service
|
||||
systemctl start docker
|
||||
|
||||
# Docker
|
||||
cd /Docker/Debian/web2py-eventlet
|
||||
docker build -t your_username/debian-web2py-eventlet .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-eventlet your_username/debian-web2py-eventlet
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
|
||||
# Docker Compose
|
||||
pip install docker-compose
|
||||
cd /Docker/Debian/web2py-eventlet
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
docker volume ls
|
||||
docker volume inspect root_applications
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Debian/web2py-eventlet
|
||||
docker login -u your_username
|
||||
docker build -t your_username/debian-web2py-eventlet .
|
||||
docker push your_username/debian-web2py-eventlet
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
|
||||
EOF
|
||||
cat docker-compose.yml
|
||||
|
||||
cat << EOF > Dockerfile
|
||||
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t your_username/debian-web2py-eventlet .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-eventlet your_username/debian-web2py-eventlet
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
12
docker/debian/web2py-eventlet/docker-compose.yml
Executable file
12
docker/debian/web2py-eventlet/docker-compose.yml
Executable file
@@ -0,0 +1,12 @@
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
web2py-eventlet:
|
||||
build: .
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- applications:/home/web2py/web2py/applications
|
||||
|
||||
volumes:
|
||||
applications:
|
||||
27
docker/debian/web2py-gevent/Dockerfile
Executable file
27
docker/debian/web2py-gevent/Dockerfile
Executable file
@@ -0,0 +1,27 @@
|
||||
FROM debian:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN apt update && \
|
||||
apt install -y python python-pip python-setuptools unzip wget python-gevent && \
|
||||
pip install virtualenv
|
||||
|
||||
RUN groupadd -r web2py && \
|
||||
useradd -m -r -g web2py web2py
|
||||
|
||||
USER web2py
|
||||
|
||||
RUN virtualenv /home/web2py && \
|
||||
rm -rf /home/web2py/web2py && \
|
||||
cd /home/web2py/ && \
|
||||
rm -f web2py_src.zip && \
|
||||
wget -c http://web2py.com/examples/static/web2py_src.zip && \
|
||||
unzip -o web2py_src.zip && \
|
||||
rm -rf /home/web2py/web2py/applications/examples && \
|
||||
chmod 755 -R /home/web2py/web2py
|
||||
|
||||
WORKDIR /home/web2py/web2py
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD . /home/web2py/bin/activate && /usr/bin/python /home/web2py/web2py/anyserver.py -s gevent -i 0.0.0.0 -p 8000
|
||||
41
docker/debian/web2py-gevent/README.md
Executable file
41
docker/debian/web2py-gevent/README.md
Executable file
@@ -0,0 +1,41 @@
|
||||
# Start Service
|
||||
systemctl start docker
|
||||
|
||||
# Docker
|
||||
cd /Docker/Debian/web2py-gevent
|
||||
docker build -t your_username/debian-web2py-gevent .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-gevent your_username/debian-web2py-gevent
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
|
||||
# Docker Compose
|
||||
pip install docker-compose
|
||||
cd /Docker/Debian/web2py-gevent
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
docker volume ls
|
||||
docker volume inspect root_applications
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Debian/web2py-gevent
|
||||
docker login -u your_username
|
||||
docker build -t your_username/debian-web2py-gevent .
|
||||
docker push your_username/debian-web2py-gevent
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
|
||||
EOF
|
||||
cat docker-compose.yml
|
||||
|
||||
cat << EOF > Dockerfile
|
||||
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t your_username/debian-web2py-gevent .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-gevent your_username/debian-web2py-gevent
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
12
docker/debian/web2py-gevent/docker-compose.yml
Executable file
12
docker/debian/web2py-gevent/docker-compose.yml
Executable file
@@ -0,0 +1,12 @@
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
web2py-gevent:
|
||||
build: .
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- applications:/home/web2py/web2py/applications
|
||||
|
||||
volumes:
|
||||
applications:
|
||||
@@ -1,8 +1,9 @@
|
||||
FROM debian:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN apt update && \
|
||||
apt install -y python python-pip python-setuptools unzip wget gunicorn && \
|
||||
pip install --upgrade pip && \
|
||||
apt install -y python python-pip python-setuptools unzip wget python-gunicorn && \
|
||||
pip install virtualenv
|
||||
|
||||
RUN groupadd -r web2py && \
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
# Docker
|
||||
cd /Docker/Debian/web2py-gunicorn
|
||||
docker build -t username/debian-web2py-gunicorn .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-gunicorn username/debian-web2py-gunicorn
|
||||
docker build -t your_username/debian-web2py-gunicorn .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-gunicorn your_username/debian-web2py-gunicorn
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
@@ -19,9 +19,9 @@
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Debian/web2py-gunicorn
|
||||
docker login -u username
|
||||
docker build -t username/debian-web2py-gunicorn .
|
||||
docker push username/debian-web2py-gunicorn
|
||||
docker login -u your_username
|
||||
docker build -t your_username/debian-web2py-gunicorn .
|
||||
docker push your_username/debian-web2py-gunicorn
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
@@ -34,8 +34,8 @@ cat << EOF > Dockerfile
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t username/debian-web2py-gunicorn .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-gunicorn username/debian-web2py-gunicorn
|
||||
docker build -t your_username/debian-web2py-gunicorn .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-gunicorn your_username/debian-web2py-gunicorn
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
|
||||
27
docker/debian/web2py-paste/Dockerfile
Executable file
27
docker/debian/web2py-paste/Dockerfile
Executable file
@@ -0,0 +1,27 @@
|
||||
FROM debian:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN apt update && \
|
||||
apt install -y python python-pip python-setuptools unzip wget python-paste && \
|
||||
pip install virtualenv
|
||||
|
||||
RUN groupadd -r web2py && \
|
||||
useradd -m -r -g web2py web2py
|
||||
|
||||
USER web2py
|
||||
|
||||
RUN virtualenv /home/web2py && \
|
||||
rm -rf /home/web2py/web2py && \
|
||||
cd /home/web2py/ && \
|
||||
rm -f web2py_src.zip && \
|
||||
wget -c http://web2py.com/examples/static/web2py_src.zip && \
|
||||
unzip -o web2py_src.zip && \
|
||||
rm -rf /home/web2py/web2py/applications/examples && \
|
||||
chmod 755 -R /home/web2py/web2py
|
||||
|
||||
WORKDIR /home/web2py/web2py
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD . /home/web2py/bin/activate && /usr/bin/python /home/web2py/web2py/anyserver.py -s paste -i 0.0.0.0 -p 8000
|
||||
41
docker/debian/web2py-paste/README.md
Executable file
41
docker/debian/web2py-paste/README.md
Executable file
@@ -0,0 +1,41 @@
|
||||
# Start Service
|
||||
systemctl start docker
|
||||
|
||||
# Docker
|
||||
cd /Docker/Debian/web2py-paste
|
||||
docker build -t your_username/debian-web2py-paste .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-paste your_username/debian-web2py-paste
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
|
||||
# Docker Compose
|
||||
pip install docker-compose
|
||||
cd /Docker/Debian/web2py-paste
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
docker volume ls
|
||||
docker volume inspect root_applications
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Debian/web2py-paste
|
||||
docker login -u your_username
|
||||
docker build -t your_username/debian-web2py-paste .
|
||||
docker push your_username/debian-web2py-paste
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
|
||||
EOF
|
||||
cat docker-compose.yml
|
||||
|
||||
cat << EOF > Dockerfile
|
||||
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t your_username/debian-web2py-paste .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-paste your_username/debian-web2py-paste
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
12
docker/debian/web2py-paste/docker-compose.yml
Executable file
12
docker/debian/web2py-paste/docker-compose.yml
Executable file
@@ -0,0 +1,12 @@
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
web2py-paste:
|
||||
build: .
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- applications:/home/web2py/web2py/applications
|
||||
|
||||
volumes:
|
||||
applications:
|
||||
@@ -1,5 +1,7 @@
|
||||
FROM debian:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN apt update && \
|
||||
apt install -y python python-pip python-setuptools unzip wget && \
|
||||
pip install --upgrade pip && \
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
# Docker
|
||||
cd /Docker/Debian/web2py-rocket
|
||||
docker build -t username/debian-web2py-rocket .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-rocket username/debian-web2py-rocket
|
||||
docker build -t your_username/debian-web2py-rocket .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-rocket your_username/debian-web2py-rocket
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
@@ -19,9 +19,9 @@
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Debian/web2py-rocket
|
||||
docker login -u username
|
||||
docker build -t username/debian-web2py-rocket .
|
||||
docker push username/debian-web2py-rocket
|
||||
docker login -u your_username
|
||||
docker build -t your_username/debian-web2py-rocket .
|
||||
docker push your_username/debian-web2py-rocket
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
@@ -34,8 +34,8 @@ cat << EOF > Dockerfile
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t username/debian-web2py-rocket .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-rocket username/debian-web2py-rocket
|
||||
docker build -t your_username/debian-web2py-rocket .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-rocket your_username/debian-web2py-rocket
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
FROM debian:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN apt update && \
|
||||
apt install -y python python-pip python-setuptools unzip wget python-tornado && \
|
||||
pip install --upgrade pip && \
|
||||
pip install virtualenv
|
||||
|
||||
RUN groupadd -r web2py && \
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
# Docker
|
||||
cd /Docker/Debian/web2py-tornado
|
||||
docker build -t username/debian-web2py-tornado .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-tornado username/debian-web2py-tornado
|
||||
docker build -t your_username/debian-web2py-tornado .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-tornado your_username/debian-web2py-tornado
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
@@ -19,9 +19,9 @@
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Debian/web2py-tornado
|
||||
docker login -u username
|
||||
docker build -t username/debian-web2py-tornado .
|
||||
docker push username/debian-web2py-tornado
|
||||
docker login -u your_username
|
||||
docker build -t your_username/debian-web2py-tornado .
|
||||
docker push your_username/debian-web2py-tornado
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
@@ -34,8 +34,8 @@ cat << EOF > Dockerfile
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t username/debian-web2py-tornado .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-tornado username/debian-web2py-tornado
|
||||
docker build -t your_username/debian-web2py-tornado .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-tornado your_username/debian-web2py-tornado
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
|
||||
27
docker/debian/web2py-twisted/Dockerfile
Executable file
27
docker/debian/web2py-twisted/Dockerfile
Executable file
@@ -0,0 +1,27 @@
|
||||
FROM debian:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN apt update && \
|
||||
apt install -y python python-pip python-setuptools unzip wget python-twisted && \
|
||||
pip install virtualenv
|
||||
|
||||
RUN groupadd -r web2py && \
|
||||
useradd -m -r -g web2py web2py
|
||||
|
||||
USER web2py
|
||||
|
||||
RUN virtualenv /home/web2py && \
|
||||
rm -rf /home/web2py/web2py && \
|
||||
cd /home/web2py/ && \
|
||||
rm -f web2py_src.zip && \
|
||||
wget -c http://web2py.com/examples/static/web2py_src.zip && \
|
||||
unzip -o web2py_src.zip && \
|
||||
rm -rf /home/web2py/web2py/applications/examples && \
|
||||
chmod 755 -R /home/web2py/web2py
|
||||
|
||||
WORKDIR /home/web2py/web2py
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD . /home/web2py/bin/activate && /usr/bin/python /home/web2py/web2py/anyserver.py -s twisted -i 0.0.0.0 -p 8000
|
||||
41
docker/debian/web2py-twisted/README.md
Executable file
41
docker/debian/web2py-twisted/README.md
Executable file
@@ -0,0 +1,41 @@
|
||||
# Start Service
|
||||
systemctl start docker
|
||||
|
||||
# Docker
|
||||
cd /Docker/Debian/web2py-twisted
|
||||
docker build -t your_username/debian-web2py-twisted .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-twisted your_username/debian-web2py-twisted
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
|
||||
# Docker Compose
|
||||
pip install docker-compose
|
||||
cd /Docker/Debian/web2py-twisted
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
docker volume ls
|
||||
docker volume inspect root_applications
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Debian/web2py-twisted
|
||||
docker login -u your_username
|
||||
docker build -t your_username/debian-web2py-twisted .
|
||||
docker push your_username/debian-web2py-twisted
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
|
||||
EOF
|
||||
cat docker-compose.yml
|
||||
|
||||
cat << EOF > Dockerfile
|
||||
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t your_username/debian-web2py-twisted .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-twisted your_username/debian-web2py-twisted
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
12
docker/debian/web2py-twisted/docker-compose.yml
Executable file
12
docker/debian/web2py-twisted/docker-compose.yml
Executable file
@@ -0,0 +1,12 @@
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
web2py-twisted:
|
||||
build: .
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- applications:/home/web2py/web2py/applications
|
||||
|
||||
volumes:
|
||||
applications:
|
||||
27
docker/debian/web2py-waitress/Dockerfile
Executable file
27
docker/debian/web2py-waitress/Dockerfile
Executable file
@@ -0,0 +1,27 @@
|
||||
FROM debian:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN apt update && \
|
||||
apt install -y python python-pip python-setuptools unzip wget && \
|
||||
pip install virtualenv waitress
|
||||
|
||||
RUN groupadd -r web2py && \
|
||||
useradd -m -r -g web2py web2py
|
||||
|
||||
USER web2py
|
||||
|
||||
RUN virtualenv /home/web2py && \
|
||||
rm -rf /home/web2py/web2py && \
|
||||
cd /home/web2py/ && \
|
||||
rm -f web2py_src.zip && \
|
||||
wget -c http://web2py.com/examples/static/web2py_src.zip && \
|
||||
unzip -o web2py_src.zip && \
|
||||
rm -rf /home/web2py/web2py/applications/examples && \
|
||||
chmod 755 -R /home/web2py/web2py
|
||||
|
||||
WORKDIR /home/web2py/web2py
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD . /home/web2py/bin/activate && /usr/bin/python /home/web2py/web2py/anyserver.py -s waitress -i 0.0.0.0 -p 8000
|
||||
41
docker/debian/web2py-waitress/README.md
Executable file
41
docker/debian/web2py-waitress/README.md
Executable file
@@ -0,0 +1,41 @@
|
||||
# Start Service
|
||||
systemctl start docker
|
||||
|
||||
# Docker
|
||||
cd /Docker/Debian/web2py-waitress
|
||||
docker build -t your_username/debian-web2py-waitress .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-waitress your_username/debian-web2py-waitress
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
|
||||
# Docker Compose
|
||||
pip install docker-compose
|
||||
cd /Docker/Debian/web2py-waitress
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
docker volume ls
|
||||
docker volume inspect root_applications
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Debian/web2py-waitress
|
||||
docker login -u your_username
|
||||
docker build -t your_username/debian-web2py-waitress .
|
||||
docker push your_username/debian-web2py-waitress
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
|
||||
EOF
|
||||
cat docker-compose.yml
|
||||
|
||||
cat << EOF > Dockerfile
|
||||
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t your_username/debian-web2py-waitress .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-waitress your_username/debian-web2py-waitress
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
12
docker/debian/web2py-waitress/docker-compose.yml
Executable file
12
docker/debian/web2py-waitress/docker-compose.yml
Executable file
@@ -0,0 +1,12 @@
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
web2py-waitress:
|
||||
build: .
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- applications:/home/web2py/web2py/applications
|
||||
|
||||
volumes:
|
||||
applications:
|
||||
27
docker/debian/web2py-wsgiref/Dockerfile
Executable file
27
docker/debian/web2py-wsgiref/Dockerfile
Executable file
@@ -0,0 +1,27 @@
|
||||
FROM debian:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN apt update && \
|
||||
apt install -y python python-pip python-setuptools unzip wget && \
|
||||
pip install virtualenv wsgiref
|
||||
|
||||
RUN groupadd -r web2py && \
|
||||
useradd -m -r -g web2py web2py
|
||||
|
||||
USER web2py
|
||||
|
||||
RUN virtualenv /home/web2py && \
|
||||
rm -rf /home/web2py/web2py && \
|
||||
cd /home/web2py/ && \
|
||||
rm -f web2py_src.zip && \
|
||||
wget -c http://web2py.com/examples/static/web2py_src.zip && \
|
||||
unzip -o web2py_src.zip && \
|
||||
rm -rf /home/web2py/web2py/applications/examples && \
|
||||
chmod 755 -R /home/web2py/web2py
|
||||
|
||||
WORKDIR /home/web2py/web2py
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD . /home/web2py/bin/activate && /usr/bin/python /home/web2py/web2py/anyserver.py -s wsgiref -i 0.0.0.0 -p 8000
|
||||
41
docker/debian/web2py-wsgiref/README.md
Executable file
41
docker/debian/web2py-wsgiref/README.md
Executable file
@@ -0,0 +1,41 @@
|
||||
# Start Service
|
||||
systemctl start docker
|
||||
|
||||
# Docker
|
||||
cd /Docker/Debian/web2py-wsgiref
|
||||
docker build -t your_username/debian-web2py-wsgiref .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-wsgiref your_username/debian-web2py-wsgiref
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
|
||||
# Docker Compose
|
||||
pip install docker-compose
|
||||
cd /Docker/Debian/web2py-wsgiref
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
docker volume ls
|
||||
docker volume inspect root_applications
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Debian/web2py-wsgiref
|
||||
docker login -u your_username
|
||||
docker build -t your_username/debian-web2py-wsgiref .
|
||||
docker push your_username/debian-web2py-wsgiref
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
|
||||
EOF
|
||||
cat docker-compose.yml
|
||||
|
||||
cat << EOF > Dockerfile
|
||||
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t your_username/debian-web2py-wsgiref .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name debian-web2py-wsgiref your_username/debian-web2py-wsgiref
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
12
docker/debian/web2py-wsgiref/docker-compose.yml
Executable file
12
docker/debian/web2py-wsgiref/docker-compose.yml
Executable file
@@ -0,0 +1,12 @@
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
web2py-wsgiref:
|
||||
build: .
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- applications:/home/web2py/web2py/applications
|
||||
|
||||
volumes:
|
||||
applications:
|
||||
27
docker/fedora/web2py-eventlet/Dockerfile
Executable file
27
docker/fedora/web2py-eventlet/Dockerfile
Executable file
@@ -0,0 +1,27 @@
|
||||
FROM fedora:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN dnf install -y python python-pip python-setuptools unzip wget python-eventlet --nogpgcheck && \
|
||||
pip install --upgrade pip && \
|
||||
pip install virtualenv
|
||||
|
||||
RUN groupadd -r web2py && \
|
||||
useradd -m -r -g web2py web2py
|
||||
|
||||
USER web2py
|
||||
|
||||
RUN virtualenv /home/web2py && \
|
||||
rm -rf /home/web2py/web2py && \
|
||||
cd /home/web2py/ && \
|
||||
rm -f web2py_src.zip && \
|
||||
wget -c http://web2py.com/examples/static/web2py_src.zip && \
|
||||
unzip -o web2py_src.zip && \
|
||||
rm -rf /home/web2py/web2py/applications/examples && \
|
||||
chmod 755 -R /home/web2py/web2py
|
||||
|
||||
WORKDIR /home/web2py/web2py
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD . /home/web2py/bin/activate && /usr/bin/python /home/web2py/web2py/anyserver.py -s eventlet -i 0.0.0.0 -p 8000
|
||||
41
docker/fedora/web2py-eventlet/README.md
Executable file
41
docker/fedora/web2py-eventlet/README.md
Executable file
@@ -0,0 +1,41 @@
|
||||
# Start Service
|
||||
systemctl start docker
|
||||
|
||||
# Docker
|
||||
cd /Docker/Fedora/web2py-eventlet
|
||||
docker build -t your_username/fedora-web2py-eventlet .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-eventlet your_username/fedora-web2py-eventlet
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
|
||||
# Docker Compose
|
||||
pip install docker-compose
|
||||
cd /Docker/Fedora/web2py-eventlet
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
docker volume ls
|
||||
docker volume inspect root_applications
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Fedora/web2py-eventlet
|
||||
docker login -u your_username
|
||||
docker build -t your_username/fedora-web2py-eventlet .
|
||||
docker push your_username/fedora-web2py-eventlet
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
|
||||
EOF
|
||||
cat docker-compose.yml
|
||||
|
||||
cat << EOF > Dockerfile
|
||||
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t your_username/fedora-web2py-eventlet .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-eventlet your_username/fedora-web2py-eventlet
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
12
docker/fedora/web2py-eventlet/docker-compose.yml
Executable file
12
docker/fedora/web2py-eventlet/docker-compose.yml
Executable file
@@ -0,0 +1,12 @@
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
web2py-eventlet:
|
||||
build: .
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- applications:/home/web2py/web2py/applications
|
||||
|
||||
volumes:
|
||||
applications:
|
||||
27
docker/fedora/web2py-gevent/Dockerfile
Executable file
27
docker/fedora/web2py-gevent/Dockerfile
Executable file
@@ -0,0 +1,27 @@
|
||||
FROM fedora:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN dnf install -y python python-pip python-setuptools unzip wget python-gevent --nogpgcheck && \
|
||||
pip install --upgrade pip && \
|
||||
pip install virtualenv
|
||||
|
||||
RUN groupadd -r web2py && \
|
||||
useradd -m -r -g web2py web2py
|
||||
|
||||
USER web2py
|
||||
|
||||
RUN virtualenv /home/web2py && \
|
||||
rm -rf /home/web2py/web2py && \
|
||||
cd /home/web2py/ && \
|
||||
rm -f web2py_src.zip && \
|
||||
wget -c http://web2py.com/examples/static/web2py_src.zip && \
|
||||
unzip -o web2py_src.zip && \
|
||||
rm -rf /home/web2py/web2py/applications/examples && \
|
||||
chmod 755 -R /home/web2py/web2py
|
||||
|
||||
WORKDIR /home/web2py/web2py
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD . /home/web2py/bin/activate && /usr/bin/python /home/web2py/web2py/anyserver.py -s gevent -i 0.0.0.0 -p 8000
|
||||
41
docker/fedora/web2py-gevent/README.md
Executable file
41
docker/fedora/web2py-gevent/README.md
Executable file
@@ -0,0 +1,41 @@
|
||||
# Start Service
|
||||
systemctl start docker
|
||||
|
||||
# Docker
|
||||
cd /Docker/Fedora/web2py-gevent
|
||||
docker build -t your_username/fedora-web2py-gevent .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-gevent your_username/fedora-web2py-gevent
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
|
||||
# Docker Compose
|
||||
pip install docker-compose
|
||||
cd /Docker/Fedora/web2py-gevent
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
docker volume ls
|
||||
docker volume inspect root_applications
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Fedora/web2py-gevent
|
||||
docker login -u your_username
|
||||
docker build -t your_username/fedora-web2py-gevent .
|
||||
docker push your_username/fedora-web2py-gevent
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
|
||||
EOF
|
||||
cat docker-compose.yml
|
||||
|
||||
cat << EOF > Dockerfile
|
||||
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t your_username/fedora-web2py-gevent .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-gevent your_username/fedora-web2py-gevent
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
12
docker/fedora/web2py-gevent/docker-compose.yml
Executable file
12
docker/fedora/web2py-gevent/docker-compose.yml
Executable file
@@ -0,0 +1,12 @@
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
web2py-gevent:
|
||||
build: .
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- applications:/home/web2py/web2py/applications
|
||||
|
||||
volumes:
|
||||
applications:
|
||||
@@ -1,5 +1,7 @@
|
||||
FROM fedora:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN dnf install -y python python-pip python-setuptools unzip wget python-gunicorn --nogpgcheck && \
|
||||
pip install --upgrade pip && \
|
||||
pip install virtualenv
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
# Docker
|
||||
cd /Docker/Fedora/web2py-gunicorn
|
||||
docker build -t username/fedora-web2py-gunicorn .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-gunicorn username/fedora-web2py-gunicorn
|
||||
docker build -t your_username/fedora-web2py-gunicorn .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-gunicorn your_username/fedora-web2py-gunicorn
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
@@ -19,9 +19,9 @@
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Fedora/web2py-gunicorn
|
||||
docker login -u username
|
||||
docker build -t username/fedora-web2py-gunicorn .
|
||||
docker push username/fedora-web2py-gunicorn
|
||||
docker login -u your_username
|
||||
docker build -t your_username/fedora-web2py-gunicorn .
|
||||
docker push your_username/fedora-web2py-gunicorn
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
@@ -34,8 +34,8 @@ cat << EOF > Dockerfile
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t username/fedora-web2py-gunicorn .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-gunicorn username/fedora-web2py-gunicorn
|
||||
docker build -t your_username/fedora-web2py-gunicorn .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-gunicorn your_username/fedora-web2py-gunicorn
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
|
||||
27
docker/fedora/web2py-paste/Dockerfile
Executable file
27
docker/fedora/web2py-paste/Dockerfile
Executable file
@@ -0,0 +1,27 @@
|
||||
FROM fedora:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN dnf install -y python python-pip python-setuptools unzip wget python-paste --nogpgcheck && \
|
||||
pip install --upgrade pip && \
|
||||
pip install virtualenv
|
||||
|
||||
RUN groupadd -r web2py && \
|
||||
useradd -m -r -g web2py web2py
|
||||
|
||||
USER web2py
|
||||
|
||||
RUN virtualenv /home/web2py && \
|
||||
rm -rf /home/web2py/web2py && \
|
||||
cd /home/web2py/ && \
|
||||
rm -f web2py_src.zip && \
|
||||
wget -c http://web2py.com/examples/static/web2py_src.zip && \
|
||||
unzip -o web2py_src.zip && \
|
||||
rm -rf /home/web2py/web2py/applications/examples && \
|
||||
chmod 755 -R /home/web2py/web2py
|
||||
|
||||
WORKDIR /home/web2py/web2py
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD . /home/web2py/bin/activate && /usr/bin/python /home/web2py/web2py/anyserver.py -s paste -i 0.0.0.0 -p 8000
|
||||
41
docker/fedora/web2py-paste/README.md
Executable file
41
docker/fedora/web2py-paste/README.md
Executable file
@@ -0,0 +1,41 @@
|
||||
# Start Service
|
||||
systemctl start docker
|
||||
|
||||
# Docker
|
||||
cd /Docker/Fedora/web2py-paste
|
||||
docker build -t your_username/fedora-web2py-paste .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-paste your_username/fedora-web2py-paste
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
|
||||
# Docker Compose
|
||||
pip install docker-compose
|
||||
cd /Docker/Fedora/web2py-paste
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
docker volume ls
|
||||
docker volume inspect root_applications
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Fedora/web2py-paste
|
||||
docker login -u your_username
|
||||
docker build -t your_username/fedora-web2py-paste .
|
||||
docker push your_username/fedora-web2py-paste
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
|
||||
EOF
|
||||
cat docker-compose.yml
|
||||
|
||||
cat << EOF > Dockerfile
|
||||
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t your_username/fedora-web2py-paste .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-paste your_username/fedora-web2py-paste
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
12
docker/fedora/web2py-paste/docker-compose.yml
Executable file
12
docker/fedora/web2py-paste/docker-compose.yml
Executable file
@@ -0,0 +1,12 @@
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
web2py-paste:
|
||||
build: .
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- applications:/home/web2py/web2py/applications
|
||||
|
||||
volumes:
|
||||
applications:
|
||||
@@ -1,5 +1,7 @@
|
||||
FROM fedora:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN dnf install -y python python-pip python-setuptools unzip wget --nogpgcheck && \
|
||||
pip install --upgrade pip && \
|
||||
pip install virtualenv
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
# Docker
|
||||
cd /Docker/Fedora/web2py-rocket
|
||||
docker build -t username/fedora-web2py-rocket .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-rocket username/fedora-web2py-rocket
|
||||
docker build -t your_username/fedora-web2py-rocket .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-rocket your_username/fedora-web2py-rocket
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
@@ -19,9 +19,9 @@
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Fedora/web2py-rocket
|
||||
docker login -u username
|
||||
docker build -t username/fedora-web2py-rocket .
|
||||
docker push username/fedora-web2py-rocket
|
||||
docker login -u your_username
|
||||
docker build -t your_username/fedora-web2py-rocket .
|
||||
docker push your_username/fedora-web2py-rocket
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
@@ -34,8 +34,8 @@ cat << EOF > Dockerfile
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t username/fedora-web2py-rocket .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-rocket username/fedora-web2py-rocket
|
||||
docker build -t your_username/fedora-web2py-rocket .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name fedora-web2py-rocket your_username/fedora-web2py-rocket
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user