118 Commits

Author SHA1 Message Date
Zia Fazal
52af6adb57 feat: upgrade to quince 2023-12-11 18:12:10 +01:00
Overhang.IO
073fe08a04 Merge remote-tracking branch 'origin/master' into nightly 2023-12-09 18:15:12 +00:00
Régis Behmo
18cce706a7 v16.0.2 2023-12-09 19:05:52 +01:00
Muhammad Faraz Maqsood
e30a78936d fix: banner image base urls
close #46
2023-12-09 19:02:06 +01:00
Omar Al-Ithawi
e766c92c86 chore: use course-discovery openedx-atlas requirement
course-discovery now maintains its own base.in requirement for atlas
the tutor-discovery no longer needs to install it.
2023-12-08 11:00:30 +01:00
Overhang.IO
829025ff26 Merge remote-tracking branch 'origin/master' into nightly 2023-11-24 03:49:54 +00:00
Emad Rad
0f9ac7f4d4 chore: cleanup 2023-11-24 08:39:38 +05:00
Emad Rad
e18fede815 fix: typing added 2023-11-24 08:39:38 +05:00
Overhang.IO
0adea6785e Merge remote-tracking branch 'origin/master' into nightly 2023-11-21 10:40:21 +00:00
Muhammad Faraz Maqsood
8105cd9230 feat: introduce course discovery repository and version settings 2023-11-21 15:30:13 +05:00
Régis Behmo
902c223370 Merge branch 'master' into nightly 2023-11-20 17:46:41 +01:00
Régis Behmo
411a601ba9 feat: simplify nightly version management
By pulling the version suffix from tutor, we avoid git conflicts when
merging the release branch in nightly.
2023-11-20 17:39:47 +01:00
Overhang.IO
05f0bfe9d5 Merge remote-tracking branch 'origin/master' into nightly 2023-11-08 09:03:50 +00:00
Muhammad Faraz Maqsood
d3ab250f57 v16.0.1 2023-11-08 14:02:04 +05:00
Overhang.IO
16e90e10c4 Merge remote-tracking branch 'origin/master' into nightly 2023-11-08 07:02:12 +00:00
Muhammad Faraz Maqsood
811e792a17
fix: wrong variable name for extra_requirement for pip extra requirements
Co-authored-by: Muhammad Faraz  Maqsood <faraz.maqsood@a006-01130.home>
2023-11-08 07:50:17 +01:00
Omar Al-Ithawi
b9dd940903 feat: add minimal atlas step to the build
This contribution is part of the [FC-0012 project](https://openedx.atlassian.net/l/cp/XGS0iCcQ) which is sparked by the [Translation Infrastructure update OEP-58](https://open-edx-proposals.readthedocs.io/en/latest/architectural-decisions/oep-0058-arch-translations-management.html#specification).
2023-10-16 18:27:29 +02:00
Régis Behmo
21b82de63f fix: missing pkg-config in image build
Build was failing with the following error during the installation of
mysqlclient==2.2.0:

	#39 22.19 Collecting mysqlclient==2.2.0 (from -r requirements/production.txt (line 435))
	#39 22.20   Downloading mysqlclient-2.2.0.tar.gz (89 kB)
	#39 22.20      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 89.5/89.5 kB 95.8 MB/s eta 0:00:00
	#39 22.24   Installing build dependencies: started
	#39 24.79   Installing build dependencies: finished with status 'done'
	#39 24.81   Getting requirements to build wheel: started
	#39 25.07   Getting requirements to build wheel: finished with status 'error'
	#39 25.08   error: subprocess-exited-with-error
	#39 25.08
	#39 25.08   × Getting requirements to build wheel did not run successfully.
	#39 25.08   │ exit code: 1
	#39 25.08   ╰─> [24 lines of output]
	#39 25.08       /bin/sh: 1: pkg-config: not found
	#39 25.08       /bin/sh: 1: pkg-config: not found
	#39 25.08       Trying pkg-config --exists mysqlclient
	#39 25.08       Command 'pkg-config --exists mysqlclient' returned non-zero exit status 127.
	#39 25.08       Trying pkg-config --exists mariadb
	#39 25.08       Command 'pkg-config --exists mariadb' returned non-zero exit status 127.
	#39 25.08       Traceback (most recent call last):
	#39 25.08         File "/openedx/venv/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
	#39 25.08           main()
	#39 25.08         File "/openedx/venv/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
	#39 25.08           json_out['return_val'] = hook(**hook_input['kwargs'])
	#39 25.08         File "/openedx/venv/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
	#39 25.08           return hook(config_settings)
	#39 25.08         File "/tmp/pip-build-env-5hyrozx4/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 355, in get_requires_for_build_wheel
	#39 25.08           return self._get_build_requires(config_settings, requirements=['wheel'])
	#39 25.08         File "/tmp/pip-build-env-5hyrozx4/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 325, in _get_build_requires
	#39 25.08           self.run_setup()
	#39 25.08         File "/tmp/pip-build-env-5hyrozx4/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 341, in run_setup
	#39 25.08           exec(code, locals())
	#39 25.08         File "<string>", line 154, in <module>
	#39 25.08         File "<string>", line 48, in get_config_posix
	#39 25.08         File "<string>", line 27, in find_package_name
	#39 25.08       Exception: Can not find valid pkg-config name.
	#39 25.08       Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually
	#39 25.08       [end of output]
2023-09-08 09:53:08 +02:00
Régis Behmo
b5c266efdb fix: nightly package version
The package version may not include the "-nightly" suffix. Otherwise,
`pip install .` fails with:

    setuptools.extern.packaging.version.InvalidVersion: Invalid version: '...-nightly'
2023-09-07 18:39:53 +02:00
Régis Behmo
06536ceb4d Merge branch 'master' into nightly 2023-06-15 01:01:23 +02:00
Muhammad Faraz Maqsood
286acdae0b feat: upgrade to palm 2023-06-15 00:42:53 +02:00
Régis Behmo
f09d6140ec fix: nightly package version
The package version number may not include the "-nightly" suffix.
Otherwise, installation fails with:

   setuptools.extern.packaging.version.InvalidVersion: Invalid version: '15.0.7-nightly'
2023-05-26 18:47:48 +02:00
Régis Behmo
e8cf712a0b feat: label nightly version
This is to address https://github.com/overhangio/tutor-mfe/issues/122
As a consequence of this change, images will be tagged with a "-nightly"
suffix. Next, we'll probably have to build them periodically in CI.
2023-05-26 18:26:28 +02:00
Régis Behmo
dbcf969a7a chore: handle nightly version numbers
Here, we make it possible to add a "-nightly" suffix to the package
version. This suffix will find its way to the Docker image tags. Thus,
the nightly branch will have different image tags. This will resolve
some confusion, as image tags are currently identical in nightly and
master.
2023-05-26 16:28:10 +02:00
Navin Karkera
38a538a675 feat: extra pip requirements 2023-05-03 17:49:14 +02:00
Abderraouf Mehdi Bouhali
c0fadf4faa fix(build): load NPM_REGISTRY from config 2022-12-31 18:08:39 +01:00
Régis Behmo
36bbec4a9e feat: upgrade to olive 2022-12-12 19:23:02 +01:00
Régis Behmo
fec9f3202c v14.0.2 2022-11-21 18:13:03 +01:00
Régis Behmo
27b76c0096 fix: rsa_import_key is undefined
See: https://discuss.openedx.org/t/tutor-4-2-0-rsa-import-key-is-undefined/8763/1
2022-11-21 16:55:09 +01:00
Régis Behmo
84886feaa7 v14.0.1 2022-07-04 06:24:49 +02:00
Régis Behmo
a1eef4cd78 chore: simplify DJANGO_SETTINGS_MODULE configuration
The Docker image now defaults to the tutor production settings, which allows us
to remove the environment variable from the docker-compose and k8s
configuration files.
2022-07-04 06:24:49 +02:00
Régis Behmo
eac59cd82d fix: ConnectionError during init
Since we introduced `tutor dev quickstart`, we must be able to initialize the
discovery container in dev mode. The problem is that the "openedx" partner is
unavailable in dev mode. Thus, we need to default to the "dev" partner in dev
mode.

Close #33.
2022-07-04 06:24:49 +02:00
Régis Behmo
778b698084 feat: upgrade to nutmeg 2022-06-09 21:39:43 +02:00
Kyle McCormick
d2f4ea6f35 feat: open stdin & allocate tty on dev services
This ensures that services started with `tutor dev start`
are as capable for breakpoint debugging, et al, as services
started with `tutor dev runserver` are. We plan to remove
`tutor dev runserver`.
2022-04-21 14:47:27 +02:00
Régis Behmo
6ee17f6788 v13.0.1 2022-04-20 19:37:56 +02:00
Sofiane Bebert
dc47b220a7 fix: Fix 502 error on editing course metadata
The uwsgi buffer size was too small to account for large headers in requests with datatables query parameters. This issue is resolved by increasing the buffer size.  See docs: https://uwsgi-docs.readthedocs.io/en/latest/ThingsToKnow.html

Close #24
2022-04-20 19:37:20 +02:00
Gabor Boros
4bcc0b530f fix: support mysql8 syntax
Signed-off-by: Gabor Boros <gabor.brs@gmail.com>
2022-04-15 10:39:54 +02:00
Michael Wheeler
ffef307789 feat: Upgrade to maple
Patches related to nginx are removed and Caddy is now being used as a reverse proxy.
In addition, application log storage has been moved in order to run as
non-root. The local log handler was removed.
2021-12-21 00:08:35 +01:00
Régis Behmo
993cbc80c7 v12.0.4 2021-10-11 12:13:47 +02:00
Régis Behmo
e7bc9eaaa3 fix: programs discovery
In Discovery, programs and courses are always associated to a site and partner.
However, sites differ in development and in production, because their urls are
different. And when we run the `cache_programs` in the LMS, we must be careful
to hit the url that corresponds to the right site in dev and prod. This url is
no longer defined by the COURSE_API_URL setting, or the internal_api_url
attribute. Instead, they are loaded from the corresponding site configuration.
To resolve this mess, we make sure that the right site configurations are
properly defined in dev and local.

It is the responsibility of end users to properly associate courses and
programs to the right site (dev or local) on their running platform...

How to reproduce the issue:

- Run the `create_catalog_integrations` command indicated in the readme.
- Create a program in discovery, and add a few courses to it. Make sure it is associated to the "Open edX" partner, and not "Open edX - dev".
- Run the `cache_programs` command from the readme
- Authenticate and open /dashboard/programs. The program you created should appear.
2021-10-11 09:37:10 +02:00
Régis Behmo
552add319f v12.0.3 2021-09-23 05:45:59 +02:00
Sofiane Bebert
bb313d9d60 fix: add studio-url at initialisation 2021-09-23 05:45:11 +02:00
Régis Behmo
fefa151b03 v12.0.2 2021-08-31 14:56:13 +02:00
Miguel Afonso
572f62fccd Drop conditionals and leverage ELASTICSEARCH_SCHEME directly 2021-08-31 14:55:27 +02:00
Miguel Afonso
c81205b6dd Honour ELASTICSEARCH_SCHEME setting 2021-08-31 14:55:27 +02:00
Régis Behmo
eb6ccfd075 v12.0.1 2021-07-01 08:32:06 +02:00
liupengcheng
9c8536ba9c Add local nginx aliase.
Add local nginx aliase to allow access discovery service through
discovery.local.overhang.io when running locally. One use case
is credentials service needs to access discovery api to pull catalogs.
2021-07-01 08:31:32 +02:00
liupengcheng
6380a2b53d feat: upgrade to open-release/lilac.master 2021-06-08 22:35:58 +02:00
Régis Behmo
63117295b3 v11.0.3 2021-05-18 10:09:53 +02:00
liupengcheng
aa65ddf9d3 feat: Make redis database configurable for cache.
Use the same redis database as openedx cache by default.
2021-05-18 09:30:19 +02:00