Bruno Alla
ab4a32d558
Unify compressor, gulp and custom bootstrap options ( #3535 )
2022-03-20 15:00:40 +00:00
Bruno Alla
528a40989f
Fix cache dependency path for linter job in CI workflow ( #3520 )
...
* Fix cache dependency path for linter jon in CI workflow
* Reduce potential stylistic issues
* Reduce more potential stylistic issues
2022-01-07 22:26:56 +00:00
Bruno Alla
9f359939a9
Upgrade JS dependencies and upgrade to node 16 ( #3400 )
2021-11-16 20:29:43 +00:00
Chao Yang Wu
dbaf09a5e1
Fix ungraceful Celery workers shutdown in container ( #3405 )
2021-11-16 08:57:08 +00:00
Jelmer Draaijer
b61c70306f
Update the docker base images from slim-buster to slim-bullseye
2021-10-26 13:40:42 +02:00
Bruno Alla
9cfb7646cb
Update command line for Flower
2021-09-03 19:20:44 +01:00
Fabio C. Barrionuevo da Luz
abba9de2bd
Move ARG PYTHON_VERSION=3.9-slim-buster to the global scope
...
of production Dockerfile to fix #3187 which occurs when
Gulp is selected as `js_task_runner` on project generation.
2021-05-17 22:22:08 -03:00
Bruno Alla
9e7320ea1b
Merge branch 'master' into fix_upgrade_py39
...
# Conflicts:
# README.rst
# {{cookiecutter.project_slug}}/.gitlab-ci.yml
# {{cookiecutter.project_slug}}/compose/local/django/Dockerfile
# {{cookiecutter.project_slug}}/compose/production/django/Dockerfile
2021-04-08 18:43:54 +01:00
Bruno Alla
5a393f1d34
Merge branch 'master' into django-multi
2021-04-07 21:06:45 +01:00
Bruno Alla
c7bb4834e0
Fix pre-commit hook issues with Docker & Celery
2021-04-07 20:57:04 +01:00
Bruno Alla
c382894934
Fix pre-commit hook issues
2021-04-07 20:57:04 +01:00
Arnav Choudhury
2345c2c92d
Update {{cookiecutter.project_slug}}/compose/production/django/Dockerfile
...
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2021-02-24 16:26:58 +05:30
Arnav Choudhury
15453df824
Updated the local and production dockerfiles with more repeatability and easier to update in mind.
2021-02-24 10:58:28 +05:30
Bruno Alla
483b636fcb
Only indent with spaces in django Dockerfile
2021-02-23 20:36:52 +00:00
Bruno Alla
ff98d8f517
Remove --use-feature=2020-resolver in pip commands
...
They are now the default and cause a warning:
WARNING: --use-feature=2020-resolver no longer has any effect, since it is now the default dependency resolver in pip. This will become an error in pip 21.0.
2021-02-23 20:34:41 +00:00
Bruno Alla
25000e1015
Merge branch 'master' into django-multi
2021-02-23 20:09:58 +00:00
areski
a1d551d067
Update from Python3.8 to Python3.9
2021-01-26 16:13:27 +01:00
Arnav Choudhury
2408fc7756
Added a comment to relevant part of documentation. Also removed the unnecessary scheme key as the default value for scheme is https anyway
2020-09-18 22:14:18 +05:30
Arnav Choudhury
35b89997ef
Made Traefik conf much easier to understand and improved redirect response to entrypoint as opposed to middleware layer that is hit after entrypoint and routing layers.
2020-09-17 22:22:42 +05:30
Arnav Choudhury
4a52845a26
Replaced copying python package directories with wheel files which are then used to install all requirements. This way the generated images would be a lot more stable as well. Size increases by 2-3mb though
2020-09-16 15:24:16 +05:30
Arnav Choudhury
079db28661
Changed when Requirements are copied and installed to improve incremental image build times. The extra image layer is inconsequential since python-build-stage layers are discarded anyway.
2020-09-14 01:41:33 +05:30
Arnav Choudhury
17e577c924
Fixed Typo with python build stage name that was references incorrectly in the run stage
2020-09-12 11:11:19 +05:30
Arnav Choudhury
a795086b10
Removing using python wheels to build python dependecies due to issue resolving conflicts in package sub-dependencies. Ends up being much more trouble than it's worth.
2020-09-12 11:04:08 +05:30
Arnav Choudhury
070d4556f9
Multi stage Python build for Django
2020-09-11 22:04:44 +05:30
Arnav Choudhury
53ffbbcf2e
Multi stage Python build for Django
2020-09-11 22:00:50 +05:30
Arnav Choudhury
e1922807aa
Updating Traefik version from 2.0 to 2.2.11
2020-09-11 21:47:00 +05:30
Arnav Choudhury
536e86ecad
Traeffik and Django dockerfile changes ( #2801 )
2020-09-08 09:04:10 +01:00
Sudarshan Wadkar
9cf47898f4
Only consider TLDs while adding www
route
...
Instead of checking for `.co.XX` on best effort basis, we only check for
the single dot in the domain_name indicating no subdomain usage.
2020-04-24 19:43:38 +05:30
Sudarshan Wadkar
4021286be0
Add condition to include .co.XX TLDs
...
This is best effort checking of domain names and creating the traefik
rules. These two checks should cover most of the use cases.
2020-04-24 19:43:38 +05:30
Sudarshan Wadkar
cafc0ac1f3
Conditionally add www host to traefik router
...
If the domain_name entered contains subdomains, e.g. `api.example.com`
then do *not* add an additional `www.api.example.com` route to traefik
If the user enters only the domain `example.com` then add the optional
`www.example.com` Host to the traefik routers.
2020-04-24 19:43:37 +05:30
Bruno Alla
ca27ddd14d
Merge pull request #2524 from sorasful/master
2020-04-17 12:58:02 +01:00
Bruno Alla
c4e4bea31b
Merge branch 'master' into async
2020-04-16 09:43:38 +01:00
Tevak
0df3087d3d
Traefik - Also redirect wwww. to service.
2020-04-04 17:26:24 +02:00
Ernesto Cedeno
0cdf60ceac
Change Python version to 3.8
2020-03-29 19:55:27 +02:00
Andrew-Chen-Wang
367225e4e8
Removed the 4 workers from the production start of uvicorn
2020-03-24 21:46:40 -04:00
Andrew-Chen-Wang
125ffec243
Changed starting commands for running server
...
* Performance is very low
2020-03-24 20:51:43 -04:00
Andrew-Chen-Wang
aee2de347b
Add uvicorn and web sockets for Django 3
...
* Add use_async option to cookiecutter.json
* Add websocket configuration
2020-03-24 15:40:14 -04:00
James Williams
d3db7a867f
fix compresss offline never runs using environ
2020-02-28 17:04:15 +00:00
James Williams
89f85f1255
- configure compressor when not using s3
...
- update django start script to compress if using whitenoise and compress enabled
- add to contributors.rst
2020-02-28 15:59:14 +00:00
Demetris Stavrou
1a7bcccd94
Added celery cookiecutter condition in Traefik configuration
2020-02-18 11:01:56 +02:00
Demetris Stavrou
86c9b3cb28
Flower now served by Traefik
2020-02-04 15:04:47 +02:00
Bruno Alla
a0ad9b82b4
Replaced Docker python:3.7-alpine image with python:3.7-slim-bu… ( #2391 )
...
Replaced Docker python:3.7-alpine image with python:3.7-slim-buster
2020-01-11 16:46:09 +00:00
Bruno Alla
5d0b0a7fe3
Upgrade to Traefik v2 ( #2338 )
...
Upgrade to Traefik v2
2020-01-11 14:18:30 +00:00
Trung Dong Huynh
4a71b0b936
Using the python:3.7-slim-buster image for later Python version - 3.7.6
...
(instead of debian:buster-slim, shipped with Python 3.7.3)
2020-01-07 13:54:15 +00:00
Trung Dong Huynh
b22045bcd4
Replaced base Docker image with debian:buster-slim ( #2373 )
...
Using system Python 3 distribution (3.7.3) in order to allow the use of Debian packages for numpy, scipy, etc. without the need of building them or installing build dependencies.
Changed `#!/bin/sh` in shell scripts to `#!/bin/bash` to make `set -o pipefail` work.
2020-01-07 11:06:31 +00:00
Yuchen Xie
a88b6b04b6
Speed up django image build process, and reduce its size
2019-12-09 09:55:37 +08:00
Denis Savran
c76b3066d6
Upgrade to Traefik v2
2019-11-29 21:35:40 +03:00
Bruno Alla
5e196b45e9
Pin Traefik Docker image to v1
...
Until we do the required changes to update to v2.
Fixes #2258
2019-10-10 11:36:48 +01:00
Nicolas Stefani
7d0f8606ed
Update python image to 3.7
2019-09-29 09:41:13 -03:00
Tim Claessens
9b48f922ed
Remove all end-of-line carriage returns and not just the first occurrence
2019-06-19 09:46:10 +02:00