Commit 18df4b8
Docker compose setup improvements + fix GitHub actions (#317)
* chore: Small improvements in the docker-compose setup
- remove the network used by all containers (dc creates it by default)
- set default DATABASE_TYPE to sqlite => simpler dc up commands
- change restart policy to unless-stopped => containers don't restart
after system restart (which was annoying in local development)
* fix: Fix the initial SQL data import for local docker-compose setup
* fix: added psycog2 package to init container and set grader network
* fix: Remove postgres-specific syntax from the initial data file
`E'\n'` is invalid syntax in sqlite. It was used in
`replace(<very long logs as a string>, '\n', E'\n')` and
`replace(<very long logs as a string>, '\012', E'\n')`.
I just replaced these values (`\n` and `\012`) with newlines.
* cleaup: Remove psycopg from Dockerfile (not needed, after all)
* fix: Fix database initialisation in docker compose for sqlite and postgres
* fix: update docker compose docs
* fix: Fix a comment
* chore: Use uv to install python packages in containers in Docker Compose setup
* chore: Make the various init bash scripts for containers more consistent
* chore: Also use uv in jupyterhub Dockerfile
* cleanup: Remove a redundant `expose` from docker compose file
* fix: Remove submission data from the initial db import
We don't include the submission files and repos in the initial setup,
and creating the database objects without them doesn't make much sense,
because one cannot do anything with such submissions in grader service.
* fix: Simplify python deps installation in Dockerfile-Service
* fix: Only load one assignment as initial db data in docker compose setup
* fix: Set the initial data assignment deadline to a future date
* fix: Small adjustment in the init assignment data
* chore: Add initial 'source' repo for docker compose setup
* chore: Add initial 'release' repo for docker compose setup
* chore: Make initial repos available in the docker compose setup
* fix: Fix celery worker container command
* fix: Add `test` dependency group to pyproject.toml, upgrade dev and test deps.
* fix: Replace deprecated `set-output` with $GITHUB_OUTPUT
* chore: Delete unused .gitlab-ci.yml file
* fix: Tiny improvements in docker compose setup (better caching, get rid of a warning)
* fix: Fix github action check for Dockerfile changes
Previously, the check would only output directory names, so the check
for the "Dockerfile" name would never match. I added a separate step that
checks specifically if the Dockerfile has changed.
---------
Co-authored-by: florian.jaeger <[email protected]>1 parent 0436fed commit 18df4b8
File tree
66 files changed
+2069
-149
lines changed- .github/workflows
- docs/source/installation
- examples/docker_compose
- init_repos/lect1/1
- release
- hooks
- info
- objects
- 06
- ad
- b0
- ce
- e6
- refs/heads
- source
- hooks
- info
- objects
- 13
- 34
- d0
- d6
- e6
- refs/heads
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
66 files changed
+2069
-149
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
37 | 45 | | |
38 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
39 | 51 | | |
40 | 52 | | |
41 | 53 | | |
42 | 54 | | |
43 | 55 | | |
44 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
45 | 60 | | |
46 | 61 | | |
47 | 62 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | | - | |
| 14 | + | |
12 | 15 | | |
13 | | - | |
14 | | - | |
15 | | - | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | | - | |
18 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
19 | 23 | | |
20 | | - | |
| 24 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
13 | | - | |
14 | | - | |
15 | | - | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | | - | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | | - | |
| 15 | + | |
12 | 16 | | |
13 | | - | |
| 17 | + | |
| 18 | + | |
14 | 19 | | |
15 | | - | |
16 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
17 | 24 | | |
18 | 25 | | |
19 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
0 commit comments