6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-11-18 02:55:17 +00:00
Commit Graph

296 Commits

Author SHA1 Message Date
Régis Behmo
bc5829e929 Declare volumes in open edx image
Volumes were used, but not declared. Consequently, data could not be
persisted e.g on kubernetes.

Close #48.
2018-08-22 16:29:04 +02:00
Régis Behmo
564a419ec0 Fix KeyError: XQUEUE_INTERFACE['url']
'url' and 'django_auth' keys need to be defined in all cases, even when
Xqueue is not used. This is because of courseware.module_render.
2018-08-19 20:08:55 +02:00
Régis Behmo
41e6cd89fd Fix missing XQUEUE_INTERFACE setting 2018-08-19 16:26:36 +02:00
Régis Behmo
8e46b4ca2b Make Xqueue an optional feature
Xqueue is no longer run by default. Instead, add the ACTIVATE_XQUEUE
environment variable to add it to the platform.
2018-08-19 14:49:14 +02:00
Régis Behmo
c883af35f7 Add HTTPS support
HTTPS is now fully supported. The ACTIVATE_HTTPS feature flag needs to
be set. Required domain names are LMS_HOST, preview.LMS_HOST and
CMS_HOST.

Close #46.
2018-08-19 14:49:14 +02:00
Régis Behmo
af6e62b069 Migrate templating to jinja2
In the future, jinja2 templates will allow us to create more complex
configuration templates.
2018-08-18 07:48:30 +02:00
Régis Behmo
ea2dd7c4fb Generate configuration from Docker
We no longer run the `configure` script on the host. Instead, we run a
container that generates the configuration files. This opens the way for
more complex configuration templates that would be written in jinja2.
More complex templates are required for feature flags, such as SSL,
XQUEUE, etc.
2018-08-16 14:42:10 +02:00
Régis Behmo
920997cc20 Fix forum access error
Access url to forums was not configured.

Closes #47.
2018-08-09 15:24:38 +02:00
Régis Behmo
ac7fe77280 hawthorn.1 release
From a deployment perspective, this release comes with an upgrade of the
cs_comments_service (forums) and a change to the logging configuration.
2018-08-08 15:02:49 +02:00
Régis Behmo
aece509b31 Empty commit to trigger post_receive hooks 2018-07-20 11:12:11 +02:00
Régis Behmo
245655908a Document the LMS/CMS urls
This closes issue #42.
2018-07-16 19:42:39 +02:00
Régis Behmo
d97142a2ea 32 bit host platforms are unsupported.
Close issue #38.
2018-07-16 14:53:44 +02:00
Régis Behmo
5e45e80c50 Improve docs regarding opening issues 2018-06-18 14:58:34 +02:00
Régis Behmo
d5890dadfb Add issue template for better contributions 2018-06-18 14:31:39 +02:00
Régis Behmo
61bcc2aa29 Add convenient make debug command
This command will certainly be used for github issue templating.
2018-06-18 14:20:08 +02:00
Régis Behmo
436ad015cf Attempt to accelerate travis build
Assets collection is too time-consuming. The Travis build fails after 50
minutes. So we don't test it.
2018-06-11 02:37:50 -04:00
Régis Behmo
9d4743f00e Give mysql more time
On Travis CI, provisioning may fail if mysql hass less than 10s to
bootstrap.
2018-06-08 19:18:17 -04:00
Régis Behmo
560f520af1 REALLY stop the containers on "make stop" 2018-06-08 18:50:12 -04:00
Régis Behmo
77b9a6a3e7 Fix major MySQL db connection bug
MySQL configuration file was in the wrong format. As a consequence, no
root user was created after running the mysql image for the first time.
2018-06-08 18:33:45 -04:00
Régis Behmo
85e7e45067 Wait more smartly for mysql DB to be ready
We replace the custom script wait-for-greenlight by dockerize: it is a
generic tool that allows for different services to be up. Also, on day,
it will allow us to generate config files dynamically (maybe).
2018-06-08 18:31:26 -04:00
Régis Behmo
7a179c079c git-ignore development files and folders
I keep a TODO file locally, as well as data-RELEASE folders for working
on multiple releases at the same time.
2018-06-08 17:50:26 -04:00
Régis Behmo
6d532be635 Attempt to fix xqueue -> MySQL connection errors
We explicitely set the MySQL connection port, even if it is the default
one. I don't think this solves anything, but it's a good idea to
set the port explicitely, generally speaking.
2018-06-08 17:47:01 -04:00
Régis Behmo
90247bc409 Move config.json to its (hopefully) final location
It didn't make much sense to store config.json inside the "openedx"
subfolder anymore, since the configuration values now affect all
services.
2018-06-08 17:39:34 -04:00
Régis Behmo
5cb51e0334 Allow direct access to gunicorn process in production
This is not a security issue because ports 8000-8001 are not open to the
world; it should also drastically simplify the life of many people. See
for instance issues #30 and #34.

Also, we allow access to nginx on hostnames "localhost" and
"studio.localhost" for lms and cms, respectively. Again, this will
remove much of the confusion for many users.
2018-06-08 17:32:22 -04:00
Régis Behmo
8366376bd0 Run provision command faster
By not setting the USERID environment variable, we don't have to chown
the /openedx folder, which makes the "provision" command much faster.
2018-06-08 17:19:12 -04:00
Régis Behmo
af49fef7db Don't suggest to provision DBs in the docs
It is unnecessary to document the "provision" command, because it is
called automatically by the "migrate" command.
2018-06-08 17:18:23 -04:00
Régis Behmo
103a9afbbf Xqueue is not a missing feature anymore 2018-06-08 17:14:45 -04:00
Régis Behmo
8ba0887724 Test migrations and assets on Travis CI 2018-06-08 09:58:59 -04:00
Régis Behmo
abf95862fe Clarify migration instructions 2018-06-08 09:46:30 -04:00
Régis Behmo
5115873e12 Re-add graphviz deps, accidentaly removed 2018-06-08 09:24:18 -04:00
Régis Behmo
43a97e5fe3 Add xqueue services
Xqueue containers consist of two services: a gunicorn service, that
receives requests from LMS/CMS, and a worker service. I guess the worker
service receives orders from the gunicorn service, through rabbitmq.
(but I'm less than certain about that).

While adding xqueue containers, we refactored the way mysql databases
are created, and how the root password is loaded. Also, we silenced some
options from the configure script.
2018-06-04 23:41:22 -04:00
Régis Behmo
4dc20e3d2b Instruct to use "localhost" for local testing. 2018-06-04 21:43:40 -04:00
Régis Behmo
065c53f9cb Fix travis build status 2018-06-01 10:35:48 -04:00
Régis Behmo
c075c52249 Only deploy on master branch 2018-06-01 10:34:09 -04:00
Régis Behmo
802e0a69ec Fix travis deploy step
Relying on web-defined env variables is just way simpler than encrypted
values.
2018-05-31 14:26:19 -04:00
Régis Behmo
e283016fc8 Improve README 2018-05-30 17:10:31 -04:00
Régis Behmo
de9b03daff Add asciinema video 2018-05-30 16:49:53 -04:00
Régis Behmo
6ce663a117 Add github issues badges to README 2018-05-30 14:01:03 -04:00
Régis Behmo
007f819d74 Travis integration 2018-05-30 14:00:55 -04:00
Régis Behmo
a01cd162d6 Add note about 'docker stats' 2018-05-29 13:52:29 -04:00
Régis Behmo
8219063683 💬 Minor documentation fixes 2018-05-28 00:39:19 -04:00
Régis Behmo
71912293a1 🤖 1-click android app building
TODO: README
2018-05-28 00:25:56 -04:00
Régis Behmo
f5a407cae7 🤡 Activate discussion forums 2018-05-28 00:25:56 -04:00
Régis Behmo
f37702fc8d 🐛 Fix critical nginx error
Nginx was simply not booting.
2018-05-27 20:24:32 -04:00
Régis Behmo
d6240b7349 Add MIT license 2018-05-27 19:26:43 -04:00
Régis Behmo
a213d2698e Build images with docker and not docker-compose
Otherwise, for some reason, it is not the right image that is uploaded
to dockerhub.
2018-05-24 15:56:27 +02:00
Régis Behmo
bfbc0c2b5b Switch docker hub username 2018-05-16 19:35:18 +02:00
Régis Behmo
9143413a7a Run migrations without opening port 2018-05-16 19:18:27 +02:00
Régis Behmo
b488bcf8ec Download, don't build
Images are no longer built locally, Instead, they are downloaded from
docker hub. This completely changes config file organisation. In
particular, we no longer copy configuration files to the original docker
image.
2018-05-16 19:07:31 +02:00
Régis Behmo
d5bdae0b62 Place convenient scripts in more appropriate place 2018-05-16 17:39:56 +02:00