Commit Graph

67 Commits

Author SHA1 Message Date
Roland Geider
b4591857a7 Make clearer what each docker image does and what not 2020-09-21 16:22:50 +02:00
Roland Geider
c4c4f51041 Add links to discord server 2020-09-15 10:44:47 +02:00
Roland Geider
96b1f50274 Cleanup requirements files
And add requirements file for production
2020-09-12 21:35:02 +02:00
Roland Geider
5cc7f57b1c Simplify create-settings tasks and others
Create settings now uses the current path per default, which simplifies the
initial project setup
2020-09-02 12:58:13 +02:00
Roland Geider
c4476bc68c Bump invoke
This has the effect, that the commands don't have an underscore anymore, but a
dash (as had the parameters), which does look nicer

Closes #482
2020-08-26 00:07:26 +02:00
Roland Geider
af231b4ca6 Use new twitter handle 2020-08-20 23:09:49 +02:00
Roland Geider
c8889abf3d Use yarn to manage JS/CSS libraries
Bower is deprecated and was also making some trouble under certain circumstances
such as Docker, where sometimes it would download the files to the wrong folder.
Hopefully this results in less headaches.
2020-07-29 13:49:34 +02:00
Roland Geider
65decd0b82 Change owner of static folder
This is perhaps not the most elegant solution, but works
2020-07-27 21:34:38 +02:00
Roland Geider
5f8b20e4dd Add README to docker-compose folder 2020-07-27 21:18:53 +02:00
Roland Geider
86c73cb0f9 Make docker-compose work (seemingly) 2020-07-26 20:19:06 +02:00
Roland Geider
eee03f9257 Run cronjobs as wger user 2020-07-23 08:15:15 +02:00
Roland Geider
9014e6c5df Some improvement to development Dockerfile
Don't use a virtualenv insise the Dockerfile, not actually needed
2020-07-16 20:42:05 +02:00
Roland
07a72263f4 Optimizations/fixes for PyPI packaging 2020-06-28 18:46:24 +02:00
Roland
933452d5f3 Small documentation polishing 2020-06-25 15:47:24 +02:00
Roland
b0736f15ad Somewhat reduce the docker image size 2020-06-25 12:20:15 +02:00
Roland
739e38120c Fix formatting in markdown files 2020-06-24 21:35:31 +02:00
Roland
6013273704 Repair the dockerfiles 2020-06-24 21:07:41 +02:00
Roland
49567c644b Fix linting problems in markdown files 2020-06-23 01:50:31 +02:00
Scott Peshak
db5337c350 Slim docker image 2020-06-13 08:50:36 -05:00
Scott Peshak
9f1abb125a Move image download to container startup
Optional operation controlled by the DOWNLOAD_IMGS environmental
variable
2020-06-13 08:50:33 -05:00
Scott Peshak
4ea4ec6f47 Force compression, install migrations in docker entrypoint 2020-06-13 08:47:58 -05:00
Scott Peshak
aaebe034aa Use venvwrapper in docker entrypoint.sh 2020-06-13 08:47:55 -05:00
Scott Peshak
5b85130162 Add django-compress set to startup
Ensures that the CDN is primed with compressed objects.
2020-06-13 08:47:54 -05:00
Scott Peshak
073561977b Optionally use S3 for static assets 2020-06-13 08:47:52 -05:00
Scott Peshak
aec06ea70b Refactor docker build to not use git checkout
This fixes a persistent issue where non-master branch docker builds
would get master branch code.
2020-06-13 08:47:47 -05:00
Scott Peshak
b11d1fa1a9 Spit out docker installed revision info 2020-06-13 08:47:10 -05:00
Scott Peshak
4970820c13 Install forked modules
I'm not proud of how I ended up doing this, but I spent _hours_ trying
to get PEP508 URLs to work in setup.py/requirements.txt.  This should
hold things together for a bit.
2020-06-13 08:45:16 -05:00
Scott Peshak
37181c2d41 Set cache control headers for static assets 2020-06-13 08:45:02 -05:00
Scott Peshak
0c27a600f8 Set permissions on media directory 2020-06-13 08:45:00 -05:00
Scott Peshak
4e6d00dbd9 Fix manage.py venv wrapper 2020-06-13 08:44:20 -05:00
Scott Peshak
65b94e3428 Fix cache permissions... again 2020-06-13 08:44:20 -05:00
Scott Peshak
19ce20084a Fix cache symlink
Previous attempt broke git checkout
2020-06-13 08:44:20 -05:00
Scott Peshak
a35a1f9d9a Fix cache location 2020-06-13 08:44:19 -05:00
Scott Peshak
26001c38ee Configure cron on apache image 2020-06-13 08:44:18 -05:00
Scott Peshak
a5083c3790 Move libpq-dev install to base image 2020-06-13 08:44:18 -05:00
Scott Peshak
c9da93d4ac Symlink CACHE directory 2020-06-13 08:44:18 -05:00
Scott Peshak
7154b9c8df Clean apt cache after install 2020-06-13 08:44:17 -05:00
Scott Peshak
63f75f572a Add Postgres dependencies to docker image 2020-06-13 08:44:13 -05:00
Scott Peshak
5d2aff6de9 Allow setting git branch via build arg 2020-06-10 18:16:44 -05:00
Scott Peshak
de46a49095 Configure cron on apache image 2020-06-10 18:14:20 -05:00
Scott Peshak
74ee8c5f1c Combine Apache config commands
Reduces the number of generated layers.
2020-06-10 18:13:28 -05:00
Scott Peshak
65a0695b0e Clean apt cache after install 2020-06-10 18:13:25 -05:00
Scott Peshak
e81650bc3d Update deprecated MAINTAINER label 2020-06-10 18:12:16 -05:00
Scott Peshak
1c7e735e7c Add Postgres dependencies to docker image 2020-06-10 18:12:12 -05:00
Scott Peshak
669a51aa0d Update apt-get metadata 2020-06-10 18:06:57 -05:00
Withnale
adc154ecfc Added WSGI Authentication passthru 2020-06-10 18:06:29 -05:00
Scott Peshak
be5e4f14a0 Set Apache FQDN
Based on https://github.com/wger-project/wger/pull/438
2020-06-10 18:06:25 -05:00
Roland Geider
2da92e7d22 Change the permissions for the media folder
This is necessary since the apache process doesn't own the folder but the images
are downloaded by the wger user.
2017-03-05 15:34:25 +01:00
Roland Geider
4c2c662bd6 Fix docker image
The WSGI process wasn't using the application't virtualenv, so neither django
or any other of the dependencies could be found.

Also, note to self: make sure that when testing changes to the wger.conf file,
you are *really* restarting the apache process to see if the fixes actually work...
2017-03-04 18:54:57 +01:00
Roland Geider
efc953d597 Set locale for the apache docker file as well 2017-02-17 09:16:05 +01:00