Commit Graph

448 Commits

Author SHA1 Message Date
Roland Geider
a814bae43b Move dependencies to pyproject.toml
Update CI workflows, docker files, etc.
2025-04-27 19:42:29 +02:00
Roland Geider
f1862bdb14 Add a simple readme file to the author generation script 2025-04-26 09:34:54 +02:00
Github-actions
90e1d38ecf Automatic linting 2025-04-26 07:21:40 +00:00
Roland Geider
e42dacdc41 Fix linting errors in AUTHORS.md 2025-04-26 09:21:25 +02:00
Roland Geider
472de72e66 Add logging configuration for the docker setup
Also remove the PROMETHEUS_URL_PATH from the url, this was just making things
complicated to setup
2025-04-12 22:04:21 +02:00
Roland Geider
5f6ff4677f Remove trailing space 2025-04-05 13:49:01 +02:00
Roland Geider
af353470ea Add link to development documentation with docker 2025-03-29 12:42:35 +01:00
Roland Geider
3e5f4448d4 Don't add the emails to the contributors
These are not a secret and can be extracted from the logs, but we probably shouldn't
expose them to harvesters too much
2025-03-27 18:06:55 +01:00
Roland Geider
65c5b74388 Add script to automate the generation of AUTHORS.md
This fetches the commit information from Github, so we don't have to tell
contributors to manually add themselves to the file with each PR. Also, we
now have an up-to-date list of translators.
2025-03-27 18:06:55 +01:00
Roland Geider
3bdd5906a5 Add link to the online documentation 2025-03-22 22:54:00 +01:00
Roland Geider
2265a63ff7 Remove explicit worker configuration from gunicorn command
Using GUNICORN_CMD_ARGS is more flexible since it allows us to pass any other
configuration option as needed and is a regular gunicorn env variable
2025-03-19 13:11:41 +01:00
Roland Geider
96743f834e Increase the number of workers that gunicorn will spawn 2025-03-15 15:10:07 +01:00
Roland Geider
215bea5ad7 Merge branch 'master' into feature/flexible-routines
# Conflicts:
#	wger/exercises/tests/test_exercise.py
#	wger/exercises/tests/test_exercise_translation.py
#	wger/nutrition/management/commands/sync-ingredients.py
#	wger/settings_global.py
2025-03-10 20:15:50 +01:00
Peter Dave Hello
65886403ef Clean apt temporary files in the base Docker image 2025-03-04 01:05:45 +08:00
Roland Geider
37bf698441 Merge branch 'master' into feature/flexible-routines
# Conflicts:
#	wger/core/templates/tags/render_day.html
#	wger/manager/tests/test_day.py
#	wger/manager/urls.py
#	wger/manager/views/day.py
#	wger/manager/views/set.py
2024-11-14 19:47:51 +01:00
Roland Geider
fcbe251691 Allow deactivating django compressor 2024-10-28 19:38:33 +01:00
Roland Geider
c63f680d4a Update README.md files 2024-10-22 14:51:20 +02:00
Roland Geider
b13063a2c1 Copy development Dockerfile from powersync branch 2024-10-22 14:27:23 +02:00
Roland Geider
276d4eb7a6 Merge branch 'master' into feature/flexible-routines 2024-10-09 16:49:50 +02:00
Roland Geider
fb243d49e5 Merge branch 'master' into feature/flexible-routines
# Conflicts:
#	pyproject.toml
2024-10-05 13:23:56 +02:00
Roland Geider
88cb2bae10 Fix linting in Dockerfile 2024-10-05 13:15:33 +02:00
Roland Geider
a43c3af5b7 Fix variable 2024-10-05 12:27:13 +02:00
Roland Geider
1e8d62f21c Refactor demo Dockerfile
This now also gets js and css files in the builder stage
2024-10-02 20:32:49 +02:00
Roland Geider
fbe30e0c24 Remove extending the path variable, this is not needed here 2024-10-02 19:58:15 +02:00
Roland Geider
1b527f5c7d Commit missing settings.py file 2024-10-02 11:30:50 +02:00
Roland Geider
365f953a0d Move start scripts to parent folder
There was only one start script per folder anyway, no need to keep the
structure so complicated
2024-10-02 11:29:04 +02:00
Roland Geider
178ca65ee6 Move docker files from development to production 2024-10-02 11:26:55 +02:00
Roland Geider
e021786638 Download and compile js and css files during build
This allows the image to start directly without needing to download anything
on every start. Also, this makes the image smaller since we don't need to install
any of the node dependencies
2024-10-02 11:25:04 +02:00
Roland Geider
2be0ce11d9 Correctly build all docker images 2024-10-01 22:54:07 +02:00
Roland Geider
d91970e22a Merge branch 'master' into feature/improved-docker-image
# Conflicts:
#	wger/core/static/react/main.js
2024-09-30 23:30:09 +02:00
Roland Geider
bd7b5f5146 Fix linting in Dockerfile 2024-09-30 23:29:46 +02:00
Roland Geider
7c74ccff58 Merge branch 'fork/taylor-fuller/specify-redis-ssl-cert-reqs' 2024-09-25 18:59:18 +02:00
Roland Geider
1a1f631ff0 Write the updates a bit more compactly 2024-09-25 18:59:09 +02:00
Roland Geider
af19f88425 Allow setting the number of proxies for django rest framework
This is used e.g. for throttling
2024-09-25 18:54:43 +02:00
Taylor Fuller
8afe3c4903 only set if specified 2024-08-29 15:47:06 -07:00
Taylor Fuller
66e9756ff1 revise django-redis config 2024-08-13 00:00:08 -07:00
Roland Geider
715ace7192 Improve docker image
This should result in somewhat smaller images, which is always nice
2024-08-11 13:37:18 +02:00
Dieter Plaetinck
5c1597d9ea typo fix 2024-08-02 23:05:19 +03:00
Dieter Plaetinck
5907f67527 docker image: support loading exercise videos, fixtures, nutrition info
the end goal here is to be able to run wger-docker development stack
without having to run any manual commands; rather i just want to be
able to run the container and have it do all downloading/syncing and
then just start the webserver.
2024-08-02 16:20:07 +03:00
Roland Geider
3ee122ec46 Add CSS file for react-simple-wysiwyg.css
This was previously being added to react/main.css, but was creating problems
when django-compressor was activated (which is the default during production).
Adding the CSS outside of the compress block fixes this problem
2024-07-09 17:34:02 +02:00
Roland Geider
e7d4ffc216 Rename exercisebase model to exercise 2024-07-08 19:14:06 +02:00
Roland Geider
cdf84d1de5 Export prometheus metrics (#1685)
Export prometheus metrics
2024-05-30 19:28:27 +02:00
Roland Geider
91ebb8c2b5 Merge branch 'master' into feature/import-usda-products 2024-05-23 17:41:57 +02:00
Roland Geider
e2f1751245 Add missing comma
The admins settings must be a list of 2-tuples and without the comma this
returns just the config tuple
2024-05-22 17:02:10 +02:00
Roland Geider
fdca08d409 Make sync of OFF daily delta files a celery task
This can run automatically once per day if configured
2024-05-22 16:31:22 +02:00
Roland Geider
2cc5d72108 Allow configuring the server's admins as well as the location of the sqlite db file 2024-05-21 23:13:10 +02:00
Roland Geider
5eb37836a6 Merge branch 'refs/heads/master' into feature/import-usda-products 2024-05-21 17:04:54 +02:00
Roland Geider
42d2addf93 Fix path for OFF mongo dump 2024-05-18 16:21:48 +02:00
Dieter Plaetinck
875fe4bb32 add instructions for buildx
I was getting this warning...:

DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
            Install the buildx component to build images with BuildKit:
            https://docs.docker.com/go/buildx/

...and later on, this failure:

Step 5/23 : RUN --mount=type=tmpfs,target=/root/.cargo     pip3 wheel --no-cache-dir --wheel-dir /wheels -r requirements_docker.txt
the --mount option requires BuildKit. Refer to https://docs.docker.com/go/buildkit/ to learn how to build images with BuildKit enabled
2024-05-04 19:17:16 +02:00
Dieter Plaetinck
9f54dced44 fix COPY statement
Step 4/23 : COPY requirements* .
When using COPY with more than one source file, the destination must be a directory and end with a /
2024-05-04 19:06:45 +02:00