6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-12-25 03:16:00 +00:00
Commit Graph

1013 Commits

Author SHA1 Message Date
Régis Behmo
1d8fd232a5 Accelerate container bootstrapping
We don't need to run "chmod" on openedx files outside of development
mode. So, there is no need to set the USERID environment variable in
most cases. This should considerably accelerate pretty much all commands
that involve the openedx container.

For discussion consult PR #98.
2018-11-23 13:48:02 +01:00
Silvio Tomatis
d9f7ff830a Add missing line continuation in assets-development-[cl]ms 2018-11-23 12:00:51 +01:00
Régis Behmo
23ce23e76d No need for dependent containers in assets tasks 2018-11-20 19:06:43 +01:00
Régis Behmo
041113e9ee Revert "Attempt to generate assets with travis"
This reverts commit 9592672ff9.

Assets generation still requires too much time...
2018-11-20 19:06:21 +01:00
Régis Behmo
9592672ff9 Attempt to generate assets with travis
Now that assets generation has been accelerated (a little) we can
attempt again to run "make assets" in travisci.
2018-11-20 17:56:43 +01:00
Régis Behmo
274432436f Fix assets generation in development
webpack requires the NODE_ENV environment variable which is incorrectly
set "paver update_assets" in development mode. To avoid this issue, we
split update_assets into its subparts.
2018-11-20 17:55:00 +01:00
Régis Behmo
080341a32e Remove persistent data in openedx containers
VOLUME statements in a container make the data persist in this folder.
There is no need to do so, so we just remove the statements.
2018-11-20 17:10:16 +01:00
Régis Behmo
fd4f8aa359 Fix cross-platform theme assets generation
Theme assets generation relies on a cache stored in memcache. We were
observing incorrect urls generated for theme/xblock assets whenever
assets had been generated for another platform. For instance, when
viewing an XBlock in the LMS right after running "paver update_assets"
in the cms.

To solve this problem, we cache staticfiles assets in entries with
different prefix.

Close #95
2018-11-20 16:41:22 +01:00
Régis Behmo
1585a20558 Fix private requirements version control
private.txt was under version control.
2018-11-20 11:46:36 +01:00
Frank Anderson
2f9766a3a1 More simple nginx port mapping
Added the possibility to easily change the ports that nginx listens to.
This is useful, for instance when Apache or Nginx already runs on the
host. With this change, it is no longer necessary to edit the
docker-compose file to modify these ports.

To deploy with alternate ports, add a `.env` file with the following
contents:

```
OPENEDX_NGINX_PORT=8080
OPENEDX_NGINX_TLSPORT=8443
```
2018-11-17 09:04:56 +01:00
Frank Anderson
b949a44a78 Add "restart-openedx" make command
Close #91
2018-11-17 08:42:59 +01:00
Régis Behmo
79274f48b6 Make it easier to install extra XBlocks
As per issues #35 and #84
2018-11-13 18:40:01 +01:00
Régis Behmo
dfbc8547c8 Make sure rabbitmq restarts on failures
Rabbitmq was not configured to restart on failures. It does not explain
why rabbitmq crashes (with exit code 255, see issue #80), but this should be sufficient
as a quick fix.
2018-10-30 09:33:11 +01:00
Régis Behmo
79a98e39f6 Activate notes without fiddling with advanced settings
When the ENABLE_EDXNOTES feature is added to the CMS, it is not
necessary to modify the advanced module list to activate notes for each
course.

Close #79.
2018-10-03 19:10:25 +02:00
Régis Behmo
0bc553fbe4 Accelerate Android app build
App building is accelerated by pre-installing packages in docker image.
2018-10-03 16:06:28 +02:00
Régis Behmo
1dab77178d Fix Android apk path
Close #70
2018-10-03 15:43:21 +02:00
Régis Behmo
f03e120d9e Activate preview.localhost hostname
This allows local access to the preview endpoints. However, they should
not be used anywhere since preview.LMS_HOST is used instead.

Close #77.
2018-10-03 09:01:59 +02:00
Régis Behmo
b78d285779 Fix 'dorum' typo 2018-10-02 18:14:39 +02:00
Régis Behmo
c2d536dae5 Upgrade to hawthorn.2 2018-10-02 10:20:14 +02:00
Régis Behmo
58320e1e0f Workers need to share data with LMS/CMS
Hence, shared volumes must be identical.

Close #74.
2018-10-02 08:06:07 +02:00
Régis Behmo
b4947d10e7 Prevent package uninstall in openedx image
The `update_assets` paver task of the lms/cms attempt to manually
uninstall some old packages. We should not concern ourselves by this,
since all requirements are installed from scratch in every docker image.

Close #73.
2018-10-01 19:18:01 +02:00
Régis Behmo
30b23462d1 Fix broken celery tasks in CMS
Duplicate "environment" statement in the docker-compose.yml was causing
the first one to be forgotten. Hence, the cms celery worker was running
with LMS settings.

Close #72
2018-09-30 19:19:05 +02:00
Régis Behmo
96cd7c82d7 Fix travis build to include xqueue & notes 2018-09-30 14:51:03 +02:00
Régis Behmo
e60e0071c4 Make feature flags interactive
Feature flags are now asked to the user interactively, as part of the
configuration step. This makes defining feature flags much more simple.
2018-09-30 14:37:49 +02:00
Régis Behmo
96ab171f1c Revert "By default, don't push android image to dockerhub"
This reverts commit 8392f4a2d3.

Actually, no personal data is included in the Android image, so it's
perfectly fine to push it to docker hub.
2018-09-30 13:49:07 +02:00
Régis Behmo
8392f4a2d3 By default, don't push android image to dockerhub 2018-09-30 13:29:38 +02:00
Régis Behmo
b6ea8d9efb Fix activation flags: env supersedes Makefile.env
If users have installed previous version of Makefile.env, they will have
to delete it.
2018-09-30 12:27:32 +02:00
Régis Behmo
1357311be7 Add logging commands 2018-09-29 18:29:10 +02:00
Régis Behmo
6307a1888e Better naming for shell commands 2018-09-29 18:24:35 +02:00
Régis Behmo
050dfc9b23 Better naming for db make targets 2018-09-29 18:24:35 +02:00
Régis Behmo
4f3117f81b Better naming of android make targets 2018-09-29 18:24:33 +02:00
Régis Behmo
0d96033e1f Provide better names for help sections 2018-09-29 18:23:11 +02:00
Régis Behmo
500d690074 Add a self-documenting Make help
Picked from https://github.com/openfun/fun-platform, which itself picked
it from https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html

Running `make help` or simply `make` now produces a beautiful colored
help.
2018-09-29 18:22:06 +02:00
Régis Behmo
7f5e91a0db ACTIVATE_* env vars are only necessary during configuration 2018-09-29 17:36:25 +02:00
Régis Behmo
f85b0abac4 Add portainer as an optional feature 2018-09-29 15:10:25 +02:00
Régis Behmo
e5ce0c9a4c Documentation fix: dev containers are for hawthorn
Close #71.
2018-09-28 19:05:43 +02:00
Régis Behmo
fb36eb2d4e Make sure configurator has curl 2018-09-19 16:44:01 +02:00
Régis Behmo
22872412c3 Collect some usage stats 2018-09-18 20:25:58 +02:00
Régis Behmo
30bc6df091 Improve wait for mysql db to be ready 2018-09-16 13:24:17 +02:00
Régis Behmo
fd5af3e01c Improve configurator defaults and wording 2018-09-16 10:25:03 +02:00
Régis Behmo
75d86252bc Push notes to docker hub on 'make push' 2018-09-15 20:31:49 +02:00
Régis Behmo
4964f12725 Rename provision and oauth2 make targets 2018-09-15 20:25:13 +02:00
Régis Behmo
8f915f2d50 Test Xqueue and Notes in travis-ci 2018-09-15 20:24:35 +02:00
Régis Behmo
ae44e2beb1 Docs: Clarify missing features 2018-09-15 20:22:02 +02:00
Régis Behmo
5ca9cec888 Add optional Student Notes service
With notes, students can annotate sections of the courseware.
2018-09-15 18:11:15 +02:00
Régis Behmo
04a0fb5902 Simplify configurator
Template files are now directly loaded in the configurator container, so
that it is possible to run the configurator container directly, outside
of this project.
2018-09-15 17:22:02 +02:00
Régis Behmo
b0f2adb931 Read default settings from environment variables
Moreover, ACTIVATE_* variables are now made permanent. It is no longer
necessary to re-declare them at each call of `make configure`.
2018-09-15 15:51:41 +02:00
Régis Behmo
df95a50ab5 Fix xqueue: proper version is hawthorn 2018-09-15 15:26:05 +02:00
Régis Behmo
06f6be737c Docs: notifier is enabled
We didn't change anything, it's just that the notifier is activated by
default in hawthorn.
2018-09-15 15:13:56 +02:00
Régis Behmo
509bb91ef3 Split make assets command in two 2018-09-15 15:13:37 +02:00