Commit Graph

167 Commits

Author SHA1 Message Date
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
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
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
Dieter Plaetinck
461c1a9bd5 put building/obtaining image instructions before trying to run it. 2024-05-04 18:48:41 +02:00
Roland Geider
9cde008058 Read cache password from the config
See https://github.com/wger-project/docker/issues/84
2024-05-01 16:13:18 +02:00
Roland Geider
0f2c6976b5 Allow the user to set the USE_RECAPTCHA setting in the docker config 2024-03-27 10:42:12 +01:00
Roland Geider
2baa28f65c Use hatchling as the build backend, this seems to make less problems 2024-01-27 11:48:15 +01:00
Roland Geider
325502e10f Don't install in editable mode 2024-01-27 11:01:44 +01:00
Roland Geider
d87ac7e185 Add flag to allow controlling whether static assets are cleared first 2024-01-23 08:37:42 +01:00
Roland Geider
97d1e1d00c Add command to sync all the ingredients from a wger instance 2024-01-13 19:19:48 +01:00
bbk
f836741301 fix #74 2023-12-17 08:29:33 +01:00
bbk
f578cee241 use env.list 2023-12-08 11:19:42 +01:00
bbk
936683b36c add axes settings 2023-12-08 08:28:47 +01:00
Roland Geider
ea750d5783 Better checking if the enable email variable is set 2023-12-07 00:01:31 +01:00
bbkz
af30c2a1c6 EMAIL_USE_TLS or EMAIL_USE_SSL
EMAIL_USE_TLS/EMAIL_USE_SSL are mutually exclusive, so only set one of those settings to True.
2023-12-02 12:02:38 +01:00
Roland Geider
6923461998 Convert energy in kJ to kcal when importing data from OFF
See #1506
2023-11-26 17:42:47 +01:00
Roland Geider
d050767c9b Replace further appearances of twitter with mastodon 2023-11-26 14:06:26 +01:00
Roland Geider
431d3132c7 Perform an apt update in the builder stage before installing the dependencies 2023-08-20 16:57:54 +02:00
Roland Geider
7e7713b945 Add a global las update date for exercises
This is simply the last date for the exercise, any of the translations, videos
or images. Also, we're renaming the date entries for some of the models. Things
like the workout routines, etc. still need to be changed, but those would break
the apps and need a bit more of planning
2023-07-27 16:00:41 +02:00
Roland Geider
d846e77230 The default query manager now returns all objects again
This was causing problems when users would submit new exercises, since the
new translations could not load the exercise

See also wger-project/react/issues/756
2023-07-18 20:21:48 +02:00
Roland Geider
e845b3172e Don't do an apt update
We're using the base image which has already done that. Also don't delete
the apt cache since an automatic apt clear happens as well
2023-07-11 22:34:57 +02:00
Roland Geider
02697acdf0 Update installed packages
* remove git, which was not used
* use the base image for building, which saves us installing one or two things
* add a bunch of stuff so that the images build for arm/v7
2023-07-11 18:27:44 +02:00
Roland Geider
490480ec5c Install additional necessary packages 2023-05-07 13:18:41 +02:00
Roland Geider
f029f70804 Merge branch 'master' into feature/ingredient-images 2023-04-08 12:23:27 +02:00
Roland Geider
6f07d1ccab Clear the static files
This ensures that only the currently used files are used and makes sure that
we don't accumulate any cruft here
2023-04-04 09:36:37 +02:00
Roland Geider
ae0067f779 Remove option to download ingredient images on startup
There will be many thousands of image and this will unnecessarily make startup
slower (and can be done manually or with celery better anyway)
2023-03-22 17:03:24 +01:00
Roland Geider
97d95e22b5 Add basic auth to celery flower 2023-03-18 20:48:59 +01:00
Roland Geider
6df082662a Rename setting
In the future we will sync new ingredients from OFF if the user scanned a
product that is not known locally, so we will need an option to sync these
from a wger instance to another and this name is more general
2023-03-16 15:26:47 +01:00
Roland Geider
b0379dd161 Use a separate database for the celery broker 2023-03-15 23:03:56 +01:00
Roland Geider
5d14412e6a Mention the sync exercises command 2023-03-15 22:37:18 +01:00
Roland Geider
21528ecf19 Change order of commands so that all the mkdirs are together 2023-03-15 22:32:09 +01:00
Roland Geider
177e3e2bc0 Save beat database to its own folder 2023-03-15 22:23:59 +01:00
Roland Geider
5fbd58bd78 Add stubs to sync images and videos with celery 2023-03-05 20:52:12 +01:00
Roland Geider
c8bf068e13 Sort options alphabetically 2023-03-05 17:46:34 +01:00
Roland Geider
7aab43d3b9 Add configuration option to sync the exercises with celery 2023-03-05 17:44:50 +01:00
Roland Geider
67dcd0627f Move celery start scripts to folder where the Dockerfile is
This makes more sense and makes the path cleaner
2023-03-04 13:51:34 +01:00
Roland Geider
ebb43c5b11 Refactor options used for downloading product images 2023-03-04 13:03:58 +01:00
Roland Geider
dda73ec2fa Merge branch 'master' into feature/ingredient-images
# Conflicts:
#	extras/docker/development/settings.py
#	requirements.txt
#	wger/exercises/management/commands/sync-exercises.py
#	wger/settings.tpl
2023-02-14 13:45:50 +01:00
Roland Geider
67642d6bd6 Set all sender emails to value from environmental variable 2023-02-13 11:51:33 +01:00
Roland Geider
1935e3c029 Take full email from environmental variable 2023-02-13 11:51:33 +01:00
Roland Geider
9c77646133 Use the site url instead of localhost for verification emails
Closes wger-project/docker/issues/47
2023-01-27 16:09:14 +01:00
Roland Geider
18d3cab3b9 Set a default value for FROM_EMAIL
See wger-project/docker/issues/35
2023-01-26 19:58:20 +01:00
bbk
d14ee1b339 use requirements_docker.txt 2023-01-07 11:31:29 +01:00
bbk
196c1a157e the psycopg2-binary don't works on arm64 2023-01-01 18:32:58 +01:00
Roland Geider
03c2a7f0f7 Allow to set SECURE_PROXY_SSL_HEADER in the config
See #1203
2022-12-22 16:15:36 +01:00