Commit Graph

204 Commits

Author SHA1 Message Date
Eraldo Energy
f4362c7676
Update mentions of psycopg in comments (#4947) 2024-03-26 15:47:02 +00:00
Jelmer Draaijer
b488056b63 Upgrade Python to version 3.12 2024-03-18 20:07:24 +01:00
GitBib
f39aff8b3f
Fix fully qualified docker images (#4905)
* Fix Python (docker) Docker image version not being recognized after adding registry to image names

* Fix Python (docs) Docker image version not being recognized after adding registry to image names

* Fix Python (django) Docker image version not being recognized after adding registry to image names
2024-03-06 13:50:01 +00:00
Simeon Emanuilov
95e5598dfd
Fix permissions for media files when served by nginx (#4889)
chore: adding recursive flag for the WORKDIR directory
2024-02-28 09:41:08 +00:00
dependabot[bot]
dd841c6478
Bump traefik to 2.11.0 (#4857)
Bumps traefik from 2.10.7 to 2.11.0.

---
updated-dependencies:
- dependency-name: traefik
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-13 10:28:24 +00:00
Jelmer
bb6d176235
Merge pull request #4840 from cookiecutter/dependabot/docker/{{cookiecutter.project_slug}}/compose/local/docs/python-3.11.8-slim-bookworm
Bump python from 3.11.7-slim-bookworm to 3.11.8-slim-bookworm in /{{cookiecutter.project_slug}}/compose/local/docs
2024-02-08 08:09:36 +01:00
Jelmer
d1cc4dc801
Merge pull request #4841 from cookiecutter/dependabot/docker/{{cookiecutter.project_slug}}/compose/local/django/python-3.11.8-slim-bookworm
Bump python from 3.11.7-slim-bookworm to 3.11.8-slim-bookworm in /{{cookiecutter.project_slug}}/compose/local/django
2024-02-08 08:09:28 +01:00
dependabot[bot]
908697e5a3
Bump python in /{{cookiecutter.project_slug}}/compose/production/django
Bumps python from 3.11.7-slim-bookworm to 3.11.8-slim-bookworm.

---
updated-dependencies:
- dependency-name: python
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-08 05:29:46 +00:00
dependabot[bot]
f2c320527a
Bump python in /{{cookiecutter.project_slug}}/compose/local/django
Bumps python from 3.11.7-slim-bookworm to 3.11.8-slim-bookworm.

---
updated-dependencies:
- dependency-name: python
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-08 05:23:12 +00:00
dependabot[bot]
300ccc6b57
Bump python in /{{cookiecutter.project_slug}}/compose/local/docs
Bumps python from 3.11.7-slim-bookworm to 3.11.8-slim-bookworm.

---
updated-dependencies:
- dependency-name: python
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-08 05:10:33 +00:00
Tim Freund
c7eded8644
Add registry to Docker images names (#4804)
Prepending docker.io/ to image names allows projects to be run in
alternate runtimes such as podman-compose without additional
configuration.
2024-01-25 09:12:07 +00:00
Cristian Vargas
86faba37d9
Update traefik doc links (#4798)
* Update traefik doc links

* Update traefik doc. Use correct anchor
2024-01-21 22:32:47 +00:00
aiden
0618d35733
Upgrade debian to 12 bookworm (#4745)
Co-authored-by: aidenlu <aiden_lu@wochacha.com>
2023-12-19 10:43:16 +00:00
dependabot[bot]
31451da89d
Bump traefik from 2.10.6 to 2.10.7 (#4722)
Bumps traefik from 2.10.6 to 2.10.7.

---
updated-dependencies:
- dependency-name: traefik
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-07 09:18:53 +00:00
dependabot[bot]
d9a7d70899
Bump python from 3.11.6 to 3.11.7 (#4719)
* Bump python in /{{cookiecutter.project_slug}}/compose/production/django

Bumps python from 3.11.6-slim-bullseye to 3.11.7-slim-bullseye.

---
updated-dependencies:
- dependency-name: python
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump python in /{{cookiecutter.project_slug}}/compose/local/django

Bumps python from 3.11.6-slim-bullseye to 3.11.7-slim-bullseye.

---
updated-dependencies:
- dependency-name: python
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump python in /{{cookiecutter.project_slug}}/compose/local/docs

Bumps python from 3.11.6-slim-bullseye to 3.11.7-slim-bullseye.

---
updated-dependencies:
- dependency-name: python
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update Heroku runtime to 3.11.7

* Pin pre-commit Python version to 3.11

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
2023-12-06 09:40:04 +00:00
dependabot[bot]
957bc66d11
Bump node from 18 to 20 (#4283) 2023-12-04 09:58:02 +00:00
dependabot[bot]
9c016b7528
Bump traefik from 2.10.5 to 2.10.6 (#4706)
Bumps traefik from 2.10.5 to 2.10.6.

---
updated-dependencies:
- dependency-name: traefik
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-30 11:04:56 +00:00
Jakub Boukal
a849a6968f
Add rmbackup script to remove backups from postgres/backups. Fixes: #4663 (#4664) 2023-11-06 19:45:58 +00:00
dependabot[bot]
6ba4df4f62
Bump traefik
Bumps traefik from 2.10.4 to 2.10.5.

---
updated-dependencies:
- dependency-name: traefik
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-12 05:53:31 +00:00
dependabot[bot]
e749afdeda
Bump python from 3.11.5-slim-bullseye to 3.11.6-slim-bullseye in /{{cookiecutter.project_slug}}/compose/local/docs (#4615)
Bumps python from 3.11.5-slim-bullseye to 3.11.6-slim-bullseye.

---
updated-dependencies:
- dependency-name: python
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-04 09:28:20 +01:00
dependabot[bot]
c0576b6658
Bump python in /{{cookiecutter.project_slug}}/compose/local/django (#4612)
Bumps python from 3.11.5-slim-bullseye to 3.11.6-slim-bullseye.

---
updated-dependencies:
- dependency-name: python
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fábio C. Barrionuevo da Luz <bnafta@gmail.com>
2023-10-03 09:30:03 -03:00
dependabot[bot]
389f020ee4
Bump python in /{{cookiecutter.project_slug}}/compose/production/django (#4611)
Bumps python from 3.11.5-slim-bullseye to 3.11.6-slim-bullseye.

---
updated-dependencies:
- dependency-name: python
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-03 09:24:53 -03:00
Jakub Boukal
3126d2e554
Fix proper ownership for /start-flower script in production Dockerfile. Fixes: #4602 (#4603) 2023-09-27 20:46:39 +01:00
dependabot[bot]
3802572a88
Update Python version from 3.11.4 to 3.11.5 (#4542)
* Bump python in /{{cookiecutter.project_slug}}/compose/production/django

Bumps python from 3.11.4-slim-bullseye to 3.11.5-slim-bullseye.

---
updated-dependencies:
- dependency-name: python
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump python from 3.11.4-slim-bullseye to 3.11.5-slim-bullseye in /{{cookiecutter.project_slug}}/compose/local/django (#4544)

Bumps python from 3.11.4-slim-bullseye to 3.11.5-slim-bullseye.

---
updated-dependencies:
- dependency-name: python
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump python from 3.11.4-slim-bullseye to 3.11.5-slim-bullseye in /{{cookiecutter.project_slug}}/compose/local/docs (#4545)

Bumps python from 3.11.4-slim-bullseye to 3.11.5-slim-bullseye.

---
updated-dependencies:
- dependency-name: python
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Update Heroku runtime to Python 3.11.5

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2023-08-28 11:06:30 +01:00
dependabot[bot]
72e91da973
Bump traefik (#4483)
Bumps traefik from 2.10.3 to 2.10.4.

---
updated-dependencies:
- dependency-name: traefik
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-25 10:21:53 -03:00
Imran Rahman
f567b5f685
update docs docker-compose -> docker compose (#4463)
Co-authored-by: Imran Rahman <imranrahman.ix@gmail.com>
2023-07-24 10:42:51 +01:00
masavini
1ed6d6e03b
VS Code Dev Container (#4198)
* decontainer setup

* update

* fix typo

* keep .envs

* add info

* typo

* minor fixes

* keep compose/production

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* add isort and lint

* choose editor and configure devcontainer

* choose editor and configure devcontainer

* add ssh client

* Remove isort arguments duplicated with base config

* End of file

* Only keep black as code formatter

* Add note about black not being accepted as formatter in devcontainer

* Avoid empty lines in devcontainer.json

* Move bash_history into .devcontainer folder

* Remove .prettierignore file

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2023-07-03 11:55:33 +02:00
Andrew Chen Wang
9a74e459e4
Fix entrypoint 2023-06-28 09:19:56 -04:00
dependabot[bot]
b4c705f16e
Upgrade traefik to 2.10.3 (#4408)
Bumps traefik from 2.10.1 to 2.10.3.

---
updated-dependencies:
- dependency-name: traefik
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-21 10:36:44 +01:00
Bruno Alla
7ad2e1fdae
Fix missing celery env variable when running compilemessages (#4403) 2023-06-18 13:03:36 +01:00
Bruno Alla
2e561ed6c4
Fix missing compilemessages step before deploying to prod (#4363)
* Update readme on internationalization

* Run compilemessages when building production image

* Run compilemessages when deploying to Heroku

* Always keep Heroku post-compile hooks

* Add empty po file for en-US language

* Update instructions for Docker

* Update default po file

* Convert locale readme to markdown and expand a bit the instructions

* Don't compile translations for 3rd party packages

* Use simplified settings & set env variables for compiling translations

* Update README for translations

* Improve metadata for Brazilian Portuguese translations

* Fix condition for django compressor on Heroku

* Fix condition for Django Compressor
2023-06-09 11:12:44 +01:00
dependabot[bot]
ca780d5665
Update to Python 3.11.4 in production Docker compose (#4378)
Bumps python from 3.11.3-slim-bullseye to 3.11.4-slim-bullseye.

---
updated-dependencies:
- dependency-name: python
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-08 16:47:50 +01:00
dependabot[bot]
4e4ca84519
Update to Python 3.11.4 in docs Docker compose (#4379)
Bumps python from 3.11.3-slim-bullseye to 3.11.4-slim-bullseye.

---
updated-dependencies:
- dependency-name: python
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-08 16:47:43 +01:00
dependabot[bot]
b2dfd26834
Update to Python 3.11.4 in local Docker compose (#4380)
Bumps python from 3.11.3-slim-bullseye to 3.11.4-slim-bullseye.

---
updated-dependencies:
- dependency-name: python
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-08 16:47:37 +01:00
Bruno Alla
5bf90a43a9
Replace runserver with runserver_plus (#4373)
This reverts commit f93a9f78d9

In #4255, `runserver_plus` was replaced by `runserver` due to some bugs in django-extensions, preventing us to upgrade Django.

In #4372, django-extensions was upgraded to a version with a fix, so we can go back to using `runserver_plus`.
2023-06-07 17:12:01 +01:00
Bruno Alla
8d64f17494
Prevent Celery restarts on media file changes (#4352)
Fix #4318
2023-05-24 15:51:38 +01:00
dependabot[bot]
ffe666f2dd
Upgrade traefik to 2.10.1 (#4304)
Bumps traefik from 2.10.0 to 2.10.1.

---
updated-dependencies:
- dependency-name: traefik
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-02 16:28:54 +01:00
dependabot[bot]
5bc3df7650
Upgrade to node v18 (#4294)
* Bump node in /{{cookiecutter.project_slug}}/compose/local/node

Bumps node from 16-bullseye-slim to 18-bullseye-slim.

---
updated-dependencies:
- dependency-name: node
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update to node 18 in prod Dockerfile

* Update to node 18 in package.json

* Update node version in CI

* Update node version in documentation

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
2023-04-26 08:06:56 +01:00
Bruno Alla
15c933c206
Fix comment typos in Dockerfiles 2023-04-25 10:44:02 +02:00
dependabot[bot]
ebbb4b3673
Bump traefik from 2.9.10 to 2.10.0 (#4290)
Bumps traefik from 2.9.10 to 2.10.0.

---
updated-dependencies:
- dependency-name: traefik
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-25 09:13:42 +01:00
Bruno Alla
0dcc4c4b4c
Add more pre-commit hooks (#4266)
* Add more hooks from pre-commit-hooks repo

* Add pre-commit hook for prettier

* Format with prettier

* Remove check-docstring-first hook

* Run prettier in the template

* Tweak formatting of dependabot file

* Fix formatting of GitHub files for prettier

* More format fixes of ci.yml
2023-04-15 12:15:15 +01:00
Jelmer
42c30dafcb
Upgrade Python to version 3.11 (Faster CPython) (#4256)
* Upgrade Python to version 3.11 (Faster CPython)

* Update pyupgrade config for Python 3.11

* Update tox env to Python 3.11

* Update to latest Python 3.11.3

* Add a note about lack of support in PythonAnywhere

* Rephrase note

* Fix casing

---------

Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2023-04-15 11:42:33 +01:00
dependabot[bot]
73b16539d4
Upgrade traefik to 2.9.10 (#4267)
---
updated-dependencies:
- dependency-name: traefik
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-07 08:33:13 +01:00
Bruno Alla
a607284e1f
Update indent for nginx config file (#4260) 2023-04-05 21:32:05 +01:00
Jelmer
f93a9f78d9
Replace runserver_plus with runserver (#4255)
* Replace runserver_plus with runserver since it is not compatible with django >= 4.1

* Replace runserver_plus with runserver in post_gen_hooks

---------

Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
2023-04-04 21:42:53 +01:00
Arkadiusz Michał Ryś
e13f7afcb8
Fix traefik rule priority for media router (#4244)
* Add option to serve media files locally using nginx

* Fix nginx media location and storage issue

* Fix traefik django-media typo

* Add certresolver property to web-media-router

* Add trailing slash in nginx configuration to avoid path traversal exploits

* Remove autoindexing from nginx configuration so nginx uses its default off setting

* Use nginx to serve media files if cloud provider is None

* Add back warning about lack of media files without Docker or Cloud providers

* Update documentation

* Fix typos and rephrase

Co-authored-by: Arkadiusz Ryś <arkadiusz.michal.rys@gmail.com>

* Change Traefik media router rule generation to force priority

The web-secure-router could end up having priority over the web-media-router when the www subdomain was used.
This fix adds the www subdomain to the web-media-router if it's also present in the web-secure-router rule.
Traefik looks at the length of rules to determine priority when no explicit priority is set.
The web-media-router needs to always have priority over the web-secure-router in order for the media files to be served.

* Add space to Traefik rule

---------

Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2023-04-04 10:25:06 +01:00
dependabot[bot]
68133e8354
Bump traefik from 2.9.8 to 2.9.9 (#4225)
Bumps traefik from 2.9.8 to 2.9.9.

---
updated-dependencies:
- dependency-name: traefik
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-23 17:15:43 +00:00
dependabot[bot]
1605101321
Bump Docker python image from 3.10.9 to 3.10.10 on production Django (#4214)
Bumps python from 3.10.9-slim-bullseye to 3.10.10-slim-bullseye.

---
updated-dependencies:
- dependency-name: python
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-16 17:13:53 +00:00
dependabot[bot]
96950f2191
Bump Docker python image from 3.10.9-slim-bullseye to 3.10.10-slim-bullseye for docs (#4213)
Bumps python from 3.10.9-slim-bullseye to 3.10.10-slim-bullseye.

---
updated-dependencies:
- dependency-name: python
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-16 16:35:57 +00:00
dependabot[bot]
6554049a87
Bump Docker python image from 3.10.9-slim-bullseye to 3.10.10-slim-bullseye for local Django service (#4212)
Bumps python from 3.10.9-slim-bullseye to 3.10.10-slim-bullseye.

---
updated-dependencies:
- dependency-name: python
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-16 16:35:28 +00:00