17 Commits

Author SHA1 Message Date
Florian du Garage Num
1a9977e454 remove hard-coded uid 1000
Some checks failed
Sync with private repo / sync (push) Has been cancelled
Run tests / tests (3.12) (push) Has been cancelled
Run tests / tests (3.9) (push) Has been cancelled
2025-09-30 21:41:58 +02:00
Danyal Faheem
04f4275236
fix: do not add cairn-postgresql and cairn-clickhouse dependencies when they are running externally (#57)
* fix: don't add cairn-postgresql as a dependency when CAIRN_RUN_POSTGRESQL is false

* fix: don't manage cairn-clickhouse permissions CAIRN_RUN_CLICKHOUSE is false

* fix: add missing CAIRN_POSTGRESQL_HOST and CAIRN_POSTGRESQL_PORT settings to allow usage with external postgresql DBs
2025-03-14 17:48:06 +05:00
Danyal Faheem
e1fd75464c
feat: auto import course structure on course publish (#43) 2024-09-02 18:11:13 +05:00
Régis Behmo
5bf17dda91 feat: upgrade to Palm
This upgrade includes SSO login. Finally! We can now login to Superset
via the LMS. Thanks to OARS for providing the base security manager
implementation!
2023-06-15 00:13:57 +02:00
Régis Behmo
59b2868bdd fix: celery non-beat worker
Fix is the same as for the beat worker.
2023-01-12 12:40:04 +01:00
Régis Behmo
6e168d7f22 fix: celery 5 deprecation of beat --app=...
In celery 5 the `--app` option must be used as a global option: `celery
--app=... beat ...`. This was causing the worker to fail.
2023-01-12 09:47:54 +01:00
Régis Behmo
281e4ce7e6 fix: correctly configure redis instance
Superset was ignoring the cairn-redis container, so we decided to remove it.
But the superset celery worker was writing to the /0 database, which conflicts
with the default celery database from the lms/cms. We fix this issue by running
in a different database.
The CELERY_RESULT_BACKEND seemed to be completely useless, so we got rid of it.
2022-10-17 15:47:21 +02:00
Régis Behmo
30dd7714ce fix: upgrade vector and decrease log level to avoid spam
Vector is spamming us with messages concerning absent containers. Such messages include:

tutor_local-cairn-vector-1                  | 2022-10-07T13:09:27.053010Z  INFO source{component_kind="source" component_id=docker_logs component_type=docker_logs component_name=docker_logs}: vector::internal_events::docker_logs: Started watching for container logs. container_id=680c2bf183676caadee2c165b26493f90fb5d02cb15b9f2579a106fdd436f827

Or:

{“log”:“2022-10-07T07:19:17.839042Z INFO vector::internal_events::docker_logs: Started watching for container logs. container_id=a932d5916f9a1d1848224b71070591d16c813e83796d6850fa64b0a5f956d5ed\n”,“stream”:“stderr”,“time”:“2022-10-07T07:19:17.83961548Z”}
{“log”:“2022-10-07T07:19:17.839311Z INFO vector::internal_events::docker_logs: Stopped watching for container logs. container_id=cb9a4330dc154e02f02f6f6b49d9ddb04b5357083becdf6e9c5cbf49f4d01f68\n”,“stream”:“stderr”,“time”:“2022-10-07T07:19:17.83967086Z”}

See also: https://github.com/vectordotdev/vector/issues/8881

This issue has affected multiple users in the past. To address it, we first
tried to upgrade Vector, which did not help. Thus, we decided to reduce the
verbosity of Vector.
2022-10-07 15:24:59 +02:00
Régis Behmo
ee3dbb912f harmonize setting names 2022-03-17 10:05:42 +01:00
Régis Behmo
4161ff4f58 fix: permissions error when mounting custom migrations
See: https://discuss.overhang.io/t/custom-reg-form-extrainfo-does-not-exits-in-cairn/2508/8
2022-03-10 17:51:58 +01:00
Régis Behmo
2e28c5d551 fix: "unhealthy" superset containers
Superset container were reported as "unhealthy" because the healthcheck
was not testing the right port.
2022-03-09 09:55:41 +01:00
Régis Behmo
b1f9cabed3 fix: chown: cannot read directory clickhouse error
The error was caused by the fact that the clickhouse container attempts to chown
the data directory.

See: https://discuss.overhang.io/t/cairn-clickhouse-failed/2414
2022-02-21 12:02:28 +01:00
Régis Behmo
54049ee28a feat: upgrade to maple 2021-12-20 22:44:40 +01:00
Régis Behmo
546a0cf8f7 feat: upgrade to maple 2021-12-13 08:39:39 +01:00
Régis Behmo
c64da5c24a feat: introduce "cairn migrate --fake"
Also, mount migration files in the clickhouse container for convenience.
2021-06-10 09:01:24 +02:00
Régis Behmo
cb99cb9242 improved README and fixed many things 2021-06-08 21:59:36 +02:00
Régis Behmo
e8d3008dea rename to cairn 2021-06-08 13:35:34 +02:00