Régis Behmo
5f625f7baa
Simplify docs requirement management
...
It is assumed that users who compile the documentation also need base
requirements.
2019-04-20 00:47:20 +02:00
Régis Behmo
5e36febce4
Upgrade urllib3 following vulnerability alert
...
https://nvd.nist.gov/vuln/detail/CVE-2019-11324
2019-04-20 00:45:48 +02:00
Régis Behmo
11a0c082ce
Document the stop/start restart procedure on new image
2019-04-20 00:43:29 +02:00
Régis Behmo
97c646f875
Crash on env overwrite in non-interactive mode
...
We took the opportunity to replace the custom ask_bool code by
click.confirm, which just simpler.
2019-04-20 00:02:47 +02:00
Silvio Tomatis
8cbab483ca
Improve output of environment upgrade
2019-04-19 23:08:26 +02:00
Silvio Tomatis
a2b098c1f0
Add __pycache__ to .gitignore
2019-04-19 23:08:26 +02:00
Silvio Tomatis
a6a68881cd
Make sure we don't hang in non-interactive environments
2019-04-19 23:08:26 +02:00
Silvio Tomatis
08f157698f
Make sure tutor asks for permission before a possibly destructive action
2019-04-19 23:08:26 +02:00
Silvio Tomatis
1046b48cc1
Set number of gunicorn workers to 3 for notes and forum
2019-04-17 10:35:37 +02:00
Silvio Tomatis
9a782c5c37
Use the actually recommended value, not a random copy-paste I found somewhere and shamefully didn't check
2019-04-17 10:35:37 +02:00
Silvio Tomatis
f812ed7dc3
Tell openedx gunicorn to fork workers based on CPU count
2019-04-17 10:35:37 +02:00
Régis Behmo
d2f6783306
Fix security issue with jinja2 requirement
...
https://nvd.nist.gov/vuln/detail/CVE-2019-10906
To fix this issue, all requirements were simply upgraded to the latest
version.
2019-04-17 08:18:45 +02:00
Régis Behmo
b2d8c1b6cc
Improve cold start time by moving kubernetes import
...
"import kubernetes" takes a long time. Moving this import improves
"tutor --version" from 0.8s to 0.3s.
2019-04-09 18:30:12 -07:00
Régis Behmo
1a706889b2
Minor docs improvement for k8s
2019-04-09 13:53:42 -07:00
Régis Behmo
becd03cbf8
Allow uppercase "Y" and "N" as answers to boolean questions
2019-04-09 13:38:56 -07:00
Régis Behmo
695cc0d18a
v3.3.4 (2019-04-09)
...
- [Improvement] Rename `--silent` option to `-y/--yes`
- [Bugfix] Fix (again) login from studio when https is activated (#193 )
2019-04-09 11:50:09 -07:00
Régis Behmo
3b9880ec74
Rename --silent
option to -y/--yes
2019-04-09 11:17:19 -07:00
Régis Behmo
6c13710c79
Fix (again) login from studio when https is activated
...
Login from studio with https was broken by the fix for localhost login.
Close #193 .
2019-04-09 11:11:32 -07:00
WeJie
7a8ecbabec
Add quotes for command $(tutor config printroot)
...
https://github.com/regisb/tutor/issues/192
2019-04-09 10:54:08 -07:00
Régis Behmo
016210e899
v3.3.3 (2019-03-29)
...
- [Bugfix] Fix `pip install tutor-openedx`
2019-03-29 06:36:19 -07:00
Régis Behmo
1e956b9398
Better source installation instructions
...
Installing from "python setup.py develop" was causing a strange error:
error: The 'requests' distribution was not found and is required
by kubernetes
2019-03-29 06:33:07 -07:00
Régis Behmo
a034f95f83
Fix pip install tutor-openedx
...
Installing from pip was broken because, for some reason, the
templates/apps/xqueue/settings/ folder contained a __pycache__ folder
with compiled *.pyc files. Rendering the binary files was failing
miserably.
2019-03-29 06:27:34 -07:00
Régis Behmo
e2b0f3bfde
Fix login from localhost
...
Login from localhost/studio.localhost was broken on Ironwood because the
session cookie was configured to be stored under the production domain
name. We fix this by setting the SESSION_COOKIE_DOMAIN to None: in the
edx-platform code, this corresponds to using the current request domain.
2019-03-27 08:16:44 -07:00
Régis Behmo
7c0f3f2d76
v3.3.2 (2019-03-27)
...
- [Bugfix] Fix Android app image build
2019-03-27 07:57:08 -07:00
Régis Behmo
6e6dbed749
Fix remaining references to hawthorn in the docs
2019-03-27 07:56:24 -07:00
Régis Behmo
2f9acb79d9
Fix install from source docs
2019-03-27 07:55:09 -07:00
Régis Behmo
be9b820a59
Fix broken android app build
...
We are forced to clone the full edx-app-android repo: if not, the build
crashes, complaining of missing git names.
2019-03-27 07:35:33 -07:00
Régis Behmo
75a6a2d44c
Fix missing configuration parameters for android environment
2019-03-27 07:35:28 -07:00
Régis Behmo
c28d5e948c
wip
2019-03-26 15:31:58 -07:00
Régis Behmo
c72fee217e
v3.3.1
...
- [Improvement] Improve assets building for development
- [Improvement] Support CMS login when the CMS is not a subdomain of the
LMS
2019-03-25 07:43:15 -07:00
Régis Behmo
6c44406ba4
use update_assets
instead of the custom openedx-assets
script
...
Now that the correct webpack settings are loaded by the `update_assets`
command in Ironwood, we can stop relying on the `openedx-assets` script.
Actually, we could probably remove it.
2019-03-25 07:41:17 -07:00
Régis Behmo
fa5187b7da
Python 3.5 compatibility
...
After all, we don't use any 3.6-specific feature, so should just support
all major python 3 versions.
2019-03-24 14:45:23 -07:00
Régis Behmo
ddbcedab5a
Fix pyyaml deprecated warning
...
We were getting the following warning with the latest version of pyyaml:
YAMLLoadWarning: calling yaml.load() without Loader=... is
deprecated, as the default Loader is unsafe. Please read
https://msg.pyyaml.org/load for full details.
2019-03-24 14:43:17 -07:00
Régis Behmo
92c9132180
Move all yaml-related code to dedicated module
2019-03-24 14:34:50 -07:00
Régis Behmo
288dc12796
Fix yaml parsing of "null"
2019-03-24 14:27:00 -07:00
Régis Behmo
ca8eda839d
Fix CI unit tests on Mac OS
...
For some reason, the "nosetests" binary is not available on Mac OS in
Travis-ci. This is what we get when we try to install nose:
Requirement already satisfied: nose==1.3.7 in
/usr/local/Cellar/numpy/1.14.5/libexec/nose/lib/python3.6/site-packages
(from -r requirements/dev.txt (line 25)) (1.3.7)
2019-03-24 12:24:22 -07:00
Régis Behmo
7324d71d2c
Add missing nose requirements
...
This should fix ci build.
2019-03-24 09:40:33 -07:00
Régis Behmo
6889f6fa90
Add unit tests! yay!
...
Now, that was seriously missing.
2019-03-23 16:16:44 -07:00
Régis Behmo
a7ab1c5ace
Add missing CMS config (just in case)
...
I don't think this affects the CMS behaviour, but SESSION_COOKIE_DOMAIN
is used by the CMS, so rather be safe than sorry.
2019-03-23 16:15:51 -07:00
Régis Behmo
328cd2b1ac
Simpler proxy config
...
http redirects to http
https redirects to https
and the life of servers becomes more simple
2019-03-23 15:44:05 -07:00
Régis Behmo
d6a40c681d
Fix incorrect web proxy redirect
...
With WEB_PROXY=true, web server only listens on NGINX_HTTP_PORT.
2019-03-23 14:26:57 -07:00
Régis Behmo
76f9f5bb97
v3.3.0
...
- [Feature] Upgrade from Hawthorn to Ironwood
2019-03-22 23:39:50 +01:00
Régis Behmo
33239c14fd
Activate SSO studio login in HTTPS only
...
With the upgrade to Ironwood, studio login redirects to the LMS by
default. This breaks login from studio.localhost. So we activate SSO
login only when HTTPS is activated, which should happen only when the
domains are correctly configured.
2019-03-22 23:37:59 +01:00
Régis Behmo
949761aa29
Introduce the concept of "nightly" release
2019-03-22 23:37:59 +01:00
Régis Behmo
604093217f
Fix HTTPS openedx config value
2019-03-22 23:37:59 +01:00
Régis Behmo
7462f208de
Upgrade to Ironwood
...
Here, we upgrade all images from Ironwood to Hawthorn, except for the
locales, which we did not generate yet.
2019-03-22 23:37:59 +01:00
Régis Behmo
e2018c29b2
Refactoring: merge ops and scripts module
...
The "scripts" template folder is not rendered to the environment, as we
want to keep the possibility to make radical changes to this folder.
2019-03-22 18:50:33 +01:00
Régis Behmo
65433e1e1f
Fix SMTP which should be enabled only when required
2019-03-22 18:00:49 +01:00
Régis Behmo
78a81ab509
Fail early on certbot failures
2019-03-21 22:27:28 +01:00
Régis Behmo
8cb3dde706
v3.2.2
...
- [Feature] Multiple platforms on a single server \o/
- [Feature] Easily configure web proxy on the host
- [Bugfix] Fix `images pull all` command which failed on "all" image
- [Improvement] Add configurable mongodb, SMTP and rabbitmq
authentication
- [Improvement] Harmonize mysql username/password configuration
parameters
- [Feature] Configurable and pluggable data storage backends (#114 )
2019-03-21 19:11:28 +01:00