Compare commits

...

103 Commits

Author SHA1 Message Date
mdipierro
95709e582d R-2.17.2 2018-10-06 11:41:01 -07:00
mdipierro
755275f8ef R-2.17.2 2018-10-06 11:36:23 -07:00
mdipierro
84a33f1a50 Merge branch 'master' of github.com:web2py/web2py 2018-10-06 11:35:29 -07:00
mdipierro
ca5c79c980 R-2.17.2 2018-10-06 11:35:12 -07:00
mdipierro
09e53f495d Merge pull request #2031 from leonelcamara/patch-22
Use export columns as is supposed instead of selectable ones
2018-10-06 11:31:14 -07:00
mdipierro
4ede2de037 Merge pull request #2030 from leonelcamara/patch-21
Show readable fields with a default in create form
2018-10-06 11:30:14 -07:00
Leonel Câmara
800bd53870 Use export columns as is supposed instead of selectable ones
Fixes #2014
2018-10-04 12:43:49 +01:00
Leonel Câmara
4c87932f06 Show readable fields with a default in create form
Fixes #2006 
This is a backwards compatibility fix.
2018-10-03 12:53:58 +01:00
mdipierro
8276b30c32 Merge pull request #2026 from nicozanf/patch-1
Python 3 compatibility + fixed link for cookbook
2018-09-27 22:19:37 -07:00
mdipierro
6f87a20e26 Merge pull request #2025 from leonelcamara/patch-20
Python 3 compatibility
2018-09-27 22:19:20 -07:00
mdipierro
41162c794e Merge pull request #2022 from leonelcamara/patch-19
Fixes #2020
2018-09-27 22:18:22 -07:00
Nico Zanferrari
6034368364 Python 3 compatibility + fixed link for cookbook 2018-09-27 21:16:05 +02:00
Leonel Câmara
19c41b308d Update languages.py 2018-09-27 17:57:24 +01:00
Leonel Câmara
f5638c8f6b Python 3 has no cmp function in sorted 2018-09-27 16:22:48 +01:00
Leonel Câmara
904ca403a2 Python 3 compatibility
Fixes #2024
2018-09-27 01:53:08 +01:00
Leonel Câmara
d244c34282 Fixes #2020 2018-09-24 22:04:04 +01:00
mdipierro
1715bccac4 Merge pull request #2019 from hrother/sqlform_factory_validators
Testcase for #2007
2018-09-23 10:44:37 -07:00
mdipierro
abf3ca54bf Merge pull request #2018 from leonelcamara/fix726
Fixes #726
2018-09-22 18:48:21 -07:00
mdipierro
2440932579 Merge pull request #2017 from leonelcamara/fixfactoryvalidators
Fixes #2007
2018-09-22 18:47:51 -07:00
mdipierro
02e14d91e1 Merge pull request #2016 from inpos/master
Python 3 compat
2018-09-22 18:44:25 -07:00
mdipierro
e9547d219a Merge pull request #2008 from leonelcamara/samesite
Add SameSite support
2018-09-22 18:43:38 -07:00
Holger Rother
70bb497b96 Simplify testcase 2018-09-22 09:55:26 +02:00
Holger Rother
398fc6de37 Testcase for #2007 2018-09-21 07:58:12 +02:00
Leonel Câmara
50692a4fd3 Fixes #726 2018-09-20 18:59:41 +01:00
Leonel Câmara
11b441b777 Make SameSite=Lax the default for all web2py apps 2018-09-20 13:02:09 +01:00
Leonel Câmara
62f5372876 Fixes #2007 2018-09-20 12:47:05 +01:00
Бородин Роман
fba90d31f4 Error 'dict_items += list' when try to save code-editor settings 2018-09-19 11:06:04 +03:00
Бородин Роман
9375ea7378 TypeError when try to disable appliance 2018-09-19 10:57:57 +03:00
mdipierro
e697bdaf90 Merge branch 'master' of github.com:web2py/web2py 2018-09-17 21:36:54 -07:00
mdipierro
7bddd67a61 fixed basestring in template.py filenames, thanks appjarbiz 2018-09-17 21:32:41 -07:00
mdipierro
93c05240b7 Merge pull request #2009 from misl6/master
Fixes request_reset_password w/ custom userfield
2018-09-17 06:29:16 -07:00
mdipierro
2f1db7dfa2 Merge pull request #2005 from Faelysse/master
HTTP header date made independent of locale, fixes #1997
2018-09-17 06:24:32 -07:00
mdipierro
0389a45034 Merge pull request #2004 from DonaldMcC/issue/2003
Issue/2003
2018-09-17 06:23:34 -07:00
mdipierro
ec53580a76 Merge pull request #2002 from JusticeN/patch-2
changing the anyserver.py to make it run with py3
2018-09-17 06:22:45 -07:00
Mirko Galimberti
09c8b5eced skip requires on custom userfield 2018-09-07 10:23:07 +02:00
Leonel Câmara
928fd364cf Add SameSite support 2018-09-06 16:16:44 +01:00
Mirko Galimberti
55a2f4a6b2 Fixes request_reset_password w/ custom userfield 2018-09-06 14:58:03 +02:00
Faelysse
6e0da9cea7 HTTP header date made independent of locale, fixes #1997 2018-09-06 14:46:07 +02:00
Donald McClymont
9364aa2036 Support for compiled apps on python 3.7 and above - marshal_header_size increased to 16 for those cases - tested by compiling and running welcome app on py 2.7,3.6 and 3.7 2018-09-05 23:34:05 +01:00
Donald
48806ccd8f Merge pull request #1 from web2py/master
merge my branch forward hopefully
2018-09-05 22:52:36 +01:00
JusticeN
80582daaa0 changing the anyserver.py to make it run with py3
actually fixing the issue #1993 i have created.
i tested it successfuly with the command python3 anyserver.py -s tornado -i 127.0.0.1 -p 80 -l
2018-09-05 14:17:33 +02:00
mdipierro
33c6dd9656 fixed broken connection in scheduler, thanks Bart 2018-09-02 10:45:06 -07:00
mdipierro
1c8790271d Merge pull request #1995 from wojtek555/issue/1974
Glyphicons replaced with awasome icons in list widget, fix #1974
2018-09-02 10:27:04 -07:00
mdipierro
f8cba1e5c4 Merge pull request #1992 from jvanbraekel/master
Update the style of SQLgrid select actions
2018-09-02 10:26:40 -07:00
mdipierro
f2aacd93c8 Merge pull request #1991 from Faelysse/master
Python3 redis compatibility
2018-09-02 10:25:59 -07:00
mdipierro
02b02f73bd Merge pull request #1989 from nicozanf/patch-2
partially restore original layout for Welcome page
2018-09-02 10:25:25 -07:00
mdipierro
af69716bf0 Merge pull request #1982 from kvanzuijlen/fix_issues_for_python3
Fixed KeyError that occured when trying to retrieve column 'session_data'
2018-09-02 10:23:36 -07:00
mdipierro
433ef09d2c Merge pull request #1924 from blackthorne/master
added task broadcasting for workers within a group
2018-09-02 10:22:18 -07:00
mdipierro
2859994bbe Merge branch 'master' of github.com:web2py/web2py 2018-09-02 10:21:53 -07:00
mdipierro
5cf2c9696d Merge pull request #1994 from JusticeN/patch-1
make make_min_web2py.py run for python3
2018-09-02 10:19:46 -07:00
mdipierro
b517282238 Merge pull request #1984 from amerikan/master
Adds the auto-fill Github issues templates
2018-09-02 10:19:06 -07:00
mdipierro
842a8d613b Merge pull request #1979 from kelvinspencer/patch-1
Update web2py_bootstrap.js
2018-09-02 10:18:02 -07:00
mdipierro
2226862ea9 Merge pull request #1976 from nicozanf/patch-1
Python 3 compatibility clarification
2018-09-02 10:17:14 -07:00
mdipierro
e87ef4bc3a fixed SimpleXMLRPCDispatcher, thanks Leonel 2018-09-02 10:15:01 -07:00
Wojciech Barcik
b28cc5b5c3 Glyphicons replaced with awasome icons in list widget, fix #1974 2018-08-29 19:01:22 +02:00
JusticeN
ef4e465222 make make_min_web2py.py run for python3
i tried to minify the web2py server and this script was not able to run with python3.5.
So i change it.
2018-08-25 13:45:46 +02:00
jvanbraekel
1cdda4f7f6 Merge https://github.com/jvanbraekel/web2py 2018-08-22 17:53:27 +02:00
jvanbraekel
de7aeceac8 Merge pull request #2 from web2py/master
merge origin changes
2018-08-22 17:50:14 +02:00
jvanbraekel
e04d16bdc1 Align SQLForm.grid selec action left and insure compatibility with bootsrap 4 2018-08-22 17:21:31 +02:00
Faelysse
c5547091cf Python3 redis compatibility
Redis expects int, Python3 <int>/<int> operation returns floatgit
2018-08-17 16:35:54 +02:00
Nico Zanferrari
83abe91e3a restore original background image 2018-08-16 18:38:55 +02:00
Nico Zanferrari
4f29733fae restore dark navbar 2018-08-16 18:31:13 +02:00
Erik Montes
6b8ccff2a4 Create feature_request.md 2018-08-13 23:36:16 -07:00
Erik Montes
e7fee6a417 Create bug_report.md 2018-08-13 23:34:22 -07:00
mdipierro
63972386c2 fixed limitby in sqlhtml grid, thanks Paolo 2018-08-12 10:56:58 -07:00
Koen van Zuijlen
5c626c6d95 Fixed KeyError that occured when trying to retrieve column 'session_data' 2018-08-10 16:06:40 +02:00
Kelvin Spencer
46b8ad3fdd Update web2py_bootstrap.js
This allows dropdown menu items to be open in the target specified if it exists without changing main/top window
2018-08-08 08:58:15 -05:00
Nico Zanferrari
7111b3dcb2 Python 3 compatibility clarification 2018-08-08 00:13:23 +02:00
mdipierro
285013a64a version 2.17.1 2018-08-05 17:57:11 -07:00
mdipierro
bcf288f55d fixed pydal 18.08 2018-08-05 17:56:03 -07:00
mdipierro
88c98cad5c fixed pydal 18.08 2018-08-05 17:22:23 -07:00
mdipierro
2203e0e49f Merge pull request #1970 from web2py/jwt_allow_decorator_fix
Jwt allow decorator fix
2018-08-05 17:21:17 -07:00
mdipierro
540bda993f Merge pull request #1967 from misl6/master
Fixes login_bare + register_bare w/ custom login_userfield
2018-08-05 17:19:34 -07:00
mdipierro
65b9c9ce17 Merge pull request #1960 from daniellibonati/master
Proposed Fix for #1959 "Can't initiate simplejsonrpc service object"
2018-08-05 17:18:29 -07:00
mdipierro
5f9a097505 Merge pull request #1956 from marian-vignau/master
Proposed fix to solve crash on markdown2 module
2018-08-05 17:18:00 -07:00
mdipierro
b33efddb77 Merge pull request #1954 from gonguinguen/patch-3
Catch KeyError in download function
2018-08-05 17:17:28 -07:00
mdipierro
577c45d183 Merge pull request #1951 from yamandu/issue/1950
correction to generate options also for fields generated with…
2018-08-05 17:16:47 -07:00
mdipierro
077eb4263d Merge pull request #1946 from leonelcamara/patch-17
Import urllib stuff from _compat
2018-08-05 17:14:43 -07:00
mdipierro
2904dae2c3 Merge pull request #1945 from leonelcamara/patch-16
Import urllib stuff from _compat
2018-08-05 17:14:29 -07:00
mdipierro
225380d00b Merge pull request #1944 from leonelcamara/patch-15
PY3 compatibility
2018-08-05 17:14:16 -07:00
mdipierro
fc295bb617 Merge pull request #1943 from leonelcamara/patch-14
fixed XML import
2018-08-05 17:14:03 -07:00
mdipierro
6438200923 Merge pull request #1942 from jvanbraekel/master
Use request_reset_password +  PDF and TSV exports
2018-08-05 17:13:45 -07:00
mdipierro
8c7955e107 Merge pull request #1937 from sugizo/add_docker
add another server in some os (docker)
2018-08-05 17:12:12 -07:00
jvanbraekel
68284be7b0 Fix pdf export , make it python3 compatible, Fix markmin2latex import 2018-08-02 11:04:14 +02:00
jvanbraekel
0d8dc294e9 Fix tsv ext, add tsv hidden exporter , use csv exporter for tsv export 2018-08-02 10:59:51 +02:00
jvanbraekel
cfe9c74eb1 Merge pull request #1 from web2py/master
web2py origin changes
2018-08-01 11:12:32 +02:00
jvanbraekel
e73029ce37 fix markmin2latex import
Add full path name in markmin2latex import
2018-07-31 10:13:21 +02:00
Mirko Galimberti
a053df7b75 Adds type error for handling NoneType exceptions 2018-07-27 12:03:39 +02:00
Mirko Galimberti
a22aac1e65 Fixes ipython console listindex error 2018-07-27 11:18:24 +02:00
Mirko Galimberti
1aab089205 Fixes login_bare + register_bare w/ custom login_userfield 2018-07-19 17:13:38 +02:00
Daniel Libonati
ea1d9acfad Fix #1959 2018-06-30 21:55:16 -03:00
mavignau@gmail.com
90222d7867 Fixed crash encountered in markdown2 module 2018-06-19 21:25:55 -03:00
mavignau@gmail.com
e6b7388758 Fix proposed to crash in linux on import markdown module 2018-06-19 21:18:33 -03:00
mavignau@gmail.com
52672530b7 Fix proposed to crash in linux on import markdown module 2018-06-19 21:13:53 -03:00
Lisandro
911cf430a9 Catch KeyError in download function
This change is necessary to avoid an error ticket when you delete an upload field from a table (and also from the model definition). In those cases, requests to old URLs will throw a KeyError. With this fix, those requests return 404 as expected.

Also, catching AttributeError is still necessary for the situation when the table is removed entirely. If an old request come in, that sentence will throw an AttributeError, that will be catched properly, and request will return 404.
2018-06-15 08:30:44 -03:00
Carlos Costa
9076053f7e correction to generate options also for fields generated with requires=IS_IN_SET or any field with options attribute 2018-06-12 19:55:25 -03:00
Leonel Câmara
c97cac19f0 Import urllib stuff from _compat 2018-06-08 10:54:57 +01:00
Leonel Câmara
b5e8cad672 Import urllib stuff from _compat 2018-06-08 10:45:36 +01:00
Leonel Câmara
d502275fc8 PY3 compatibility 2018-06-08 10:41:13 +01:00
Leonel Câmara
98c70d8a70 fixed XML import 2018-06-07 23:17:07 +01:00
jvanbraekel
b7ba4a15f1 Update request_reset_password in user.htlm
Update /user/request_reset_password to user/retrieve_password and linked settings option.
According to https://web2py.readthedocs.io/en/latest/_modules/gluon/tools.html#Auth 'request_reset_password' should not even be exposed anymore. (but this is still the case).
2018-06-07 16:14:52 +02:00
sugizo
3585ef828e add some of server (diesel, eventlet, gevent, paste, twisted, waitress, wsgiref) in some os 2018-06-02 06:53:31 +07:00
Francisco Ribeiro
32eb1bc27d added task broadcasting for workers within a group 2018-05-09 04:45:08 +01:00
214 changed files with 3961 additions and 330 deletions

35
.github/ISSUE_TEMPLATE/bug_report.md vendored Normal file
View 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.

View 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.

View File

@@ -1,3 +1,7 @@
## 2.17.1-2
- pydal 18.08
- many small bug fixes
## 2.16.1
- pydal 17.11
- bootstrap 4

View File

@@ -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

View File

@@ -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

View File

@@ -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)

View File

@@ -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):

View File

@@ -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');
}
});
});

View File

@@ -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>

View File

@@ -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>

View File

@@ -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;
}

View File

@@ -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>&nbsp;<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);

View File

@@ -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>

View File

@@ -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>

View File

@@ -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)
}}

View File

@@ -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>

View 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

View 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

View File

@@ -0,0 +1,12 @@
version: '3.1'
services:
web2py-gevent:
build: .
ports:
- "8000:8000"
volumes:
- applications:/home/web2py/web2py/applications
volumes:
applications:

View File

@@ -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

View File

@@ -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

View 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

View 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

View File

@@ -0,0 +1,12 @@
version: '3.1'
services:
web2py-paste:
build: .
ports:
- "8000:8000"
volumes:
- applications:/home/web2py/web2py/applications
volumes:
applications:

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View 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

View 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

View File

@@ -0,0 +1,12 @@
version: '3.1'
services:
web2py-waitress:
build: .
ports:
- "8000:8000"
volumes:
- applications:/home/web2py/web2py/applications
volumes:
applications:

View 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

View 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

View File

@@ -0,0 +1,12 @@
version: '3.1'
services:
web2py-wsgiref:
build: .
ports:
- "8000:8000"
volumes:
- applications:/home/web2py/web2py/applications
volumes:
applications:

View 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

View 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

View File

@@ -0,0 +1,12 @@
version: '3.1'
services:
web2py-eventlet:
build: .
ports:
- "8000:8000"
volumes:
- applications:/home/web2py/web2py/applications
volumes:
applications:

View 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

View 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

View File

@@ -0,0 +1,12 @@
version: '3.1'
services:
web2py-gevent:
build: .
ports:
- "8000:8000"
volumes:
- applications:/home/web2py/web2py/applications
volumes:
applications:

View File

@@ -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 && \

View File

@@ -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

View 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

View 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

View File

@@ -0,0 +1,12 @@
version: '3.1'
services:
web2py-paste:
build: .
ports:
- "8000:8000"
volumes:
- applications:/home/web2py/web2py/applications
volumes:
applications:

View File

@@ -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 && \

View File

@@ -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

View File

@@ -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 && \

View File

@@ -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

View 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

View 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

View File

@@ -0,0 +1,12 @@
version: '3.1'
services:
web2py-twisted:
build: .
ports:
- "8000:8000"
volumes:
- applications:/home/web2py/web2py/applications
volumes:
applications:

View 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

View 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

View File

@@ -0,0 +1,12 @@
version: '3.1'
services:
web2py-waitress:
build: .
ports:
- "8000:8000"
volumes:
- applications:/home/web2py/web2py/applications
volumes:
applications:

View 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

View 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

View File

@@ -0,0 +1,12 @@
version: '3.1'
services:
web2py-wsgiref:
build: .
ports:
- "8000:8000"
volumes:
- applications:/home/web2py/web2py/applications
volumes:
applications:

View 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

View 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

View File

@@ -0,0 +1,12 @@
version: '3.1'
services:
web2py-diesel:
build: .
ports:
- "8000:8000"
volumes:
- applications:/home/web2py/web2py/applications
volumes:
applications:

View 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

View 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

View File

@@ -0,0 +1,12 @@
version: '3.1'
services:
web2py-eventlet:
build: .
ports:
- "8000:8000"
volumes:
- applications:/home/web2py/web2py/applications
volumes:
applications:

View 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

View 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

View File

@@ -0,0 +1,12 @@
version: '3.1'
services:
web2py-gevent:
build: .
ports:
- "8000:8000"
volumes:
- applications:/home/web2py/web2py/applications
volumes:
applications:

View File

@@ -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 && \

View File

@@ -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

View 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

View 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

View File

@@ -0,0 +1,12 @@
version: '3.1'
services:
web2py-paste:
build: .
ports:
- "8000:8000"
volumes:
- applications:/home/web2py/web2py/applications
volumes:
applications:

View File

@@ -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 && \

View File

@@ -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

View File

@@ -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 && \

View File

@@ -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

View 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

View 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

View File

@@ -0,0 +1,12 @@
version: '3.1'
services:
web2py-twisted:
build: .
ports:
- "8000:8000"
volumes:
- applications:/home/web2py/web2py/applications
volumes:
applications:

View 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

View 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

View File

@@ -0,0 +1,12 @@
version: '3.1'
services:
web2py-waitress:
build: .
ports:
- "8000:8000"
volumes:
- applications:/home/web2py/web2py/applications
volumes:
applications:

View 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

View 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

View File

@@ -0,0 +1,12 @@
version: '3.1'
services:
web2py-wsgiref:
build: .
ports:
- "8000:8000"
volumes:
- applications:/home/web2py/web2py/applications
volumes:
applications:

View 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

View 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

View File

@@ -0,0 +1,12 @@
version: '3.1'
services:
web2py-eventlet:
build: .
ports:
- "8000:8000"
volumes:
- applications:/home/web2py/web2py/applications
volumes:
applications:

View 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

View 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

View File

@@ -0,0 +1,12 @@
version: '3.1'
services:
web2py-gevent:
build: .
ports:
- "8000:8000"
volumes:
- applications:/home/web2py/web2py/applications
volumes:
applications:

View File

@@ -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

View File

@@ -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

View 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

View 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

View File

@@ -0,0 +1,12 @@
version: '3.1'
services:
web2py-paste:
build: .
ports:
- "8000:8000"
volumes:
- applications:/home/web2py/web2py/applications
volumes:
applications:

View File

@@ -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

View File

@@ -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