forked from qgis/QGIS-Django
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix errors in GH action coverage test (qgis#323)
* Fix test error in GH actions. * Revert test.yaml, update tests, install freezegun, update requirements * Delete volume in docker-compose * Specify commit for whoosh and version for freezgun
- Loading branch information
Showing
8 changed files
with
151 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,117 +1,119 @@ | ||
db: | ||
container_name: qgis-plugins-db | ||
image: kartoza/postgis:9.6-2.4 | ||
environment: | ||
- ALLOW_IP_RANGE=0.0.0.0/0 | ||
- POSTGRES_USER=docker | ||
- POSTGRES_PASS=docker | ||
volumes: | ||
- ./backups:/backups | ||
restart: unless-stopped | ||
version: "3.8" | ||
services: | ||
db: | ||
container_name: qgis-plugins-db | ||
image: kartoza/postgis:9.6-2.4 | ||
environment: | ||
- ALLOW_IP_RANGE=0.0.0.0/0 | ||
- POSTGRES_USER=docker | ||
- POSTGRES_PASS=docker | ||
volumes: | ||
- ./backups:/backups | ||
restart: unless-stopped | ||
|
||
web: | ||
# Note you cannot scale if you use container_name | ||
container_name: qgis-plugins-web | ||
build: docker | ||
hostname: uwsgi | ||
environment: | ||
- DATABASE_NAME=gis | ||
- DATABASE_USERNAME=docker | ||
- DATABASE_PASSWORD=docker | ||
- DATABASE_HOST=db | ||
- DJANGO_SETTINGS_MODULE=settings_docker | ||
- VIRTUAL_HOST=plugins.kartoza.com | ||
- VIRTUAL_PORT=8080 | ||
- DEBUG=False | ||
- RABBITMQ_HOST=rabbitmq | ||
volumes: | ||
- ../qgis-app:/home/web/django_project | ||
- ./static:/home/web/static:rw | ||
- ./static:/home/web/media:rw | ||
links: | ||
- db:db | ||
- rabbitmq:rabbitmq | ||
- worker:worker | ||
restart: unless-stopped | ||
user: root | ||
command: uwsgi --ini /uwsgi.conf | ||
web: | ||
# Note you cannot scale if you use container_name | ||
container_name: qgis-plugins-web | ||
build: docker | ||
hostname: uwsgi | ||
environment: | ||
- DATABASE_NAME=gis | ||
- DATABASE_USERNAME=docker | ||
- DATABASE_PASSWORD=docker | ||
- DATABASE_HOST=db | ||
- DJANGO_SETTINGS_MODULE=settings_docker | ||
- VIRTUAL_HOST=plugins.kartoza.com | ||
- VIRTUAL_PORT=8080 | ||
- DEBUG=False | ||
- RABBITMQ_HOST=rabbitmq | ||
volumes: | ||
- ../qgis-app:/home/web/django_project | ||
- ./static:/home/web/static:rw | ||
- ./static:/home/web/media:rw | ||
links: | ||
- db:db | ||
- rabbitmq:rabbitmq | ||
- worker:worker | ||
restart: unless-stopped | ||
user: root | ||
command: uwsgi --ini /uwsgi.conf | ||
|
||
devweb: | ||
# Note you cannot scale if you use container_name | ||
container_name: qgis-plugins-devweb | ||
build: docker | ||
hostname: uwsgi | ||
environment: | ||
- DATABASE_NAME=gis | ||
- DATABASE_USERNAME=docker | ||
- DATABASE_PASSWORD=docker | ||
- DATABASE_HOST=db | ||
- DJANGO_SETTINGS_MODULE=settings_docker | ||
- VIRTUAL_HOST=plugins.kartoza.com | ||
- VIRTUAL_PORT=8080 | ||
- RABBITMQ_HOST=rabbitmq | ||
volumes: | ||
- ../qgis-app:/home/web/django_project | ||
- ./static:/home/web/static:rw | ||
- ./static:/home/web/media:rw | ||
links: | ||
- db:db | ||
- rabbitmq:rabbitmq | ||
- worker:worker | ||
restart: unless-stopped | ||
user: root | ||
ports: | ||
# for django test server | ||
- "62202:8080" | ||
# for ssh | ||
- "62203:22" | ||
devweb: | ||
# Note you cannot scale if you use container_name | ||
container_name: qgis-plugins-devweb | ||
build: docker | ||
hostname: uwsgi | ||
environment: | ||
- DATABASE_NAME=gis | ||
- DATABASE_USERNAME=docker | ||
- DATABASE_PASSWORD=docker | ||
- DATABASE_HOST=db | ||
- DJANGO_SETTINGS_MODULE=settings_docker | ||
- VIRTUAL_HOST=plugins.kartoza.com | ||
- VIRTUAL_PORT=8080 | ||
- RABBITMQ_HOST=rabbitmq | ||
volumes: | ||
- ../qgis-app:/home/web/django_project | ||
- ./static:/home/web/static:rw | ||
- ./static:/home/web/media:rw | ||
links: | ||
- db:db | ||
- rabbitmq:rabbitmq | ||
- worker:worker | ||
restart: unless-stopped | ||
user: root | ||
ports: | ||
# for django test server | ||
- "62202:8080" | ||
# for ssh | ||
- "62203:22" | ||
|
||
rabbitmq: | ||
image: library/rabbitmq:3.6 | ||
hostname: rabbitmq | ||
environment: | ||
- RABBIT_PASSWORD=rabbit_test_password | ||
- USER=rabbit_user | ||
- RABBITMQ_NODENAME=rabbit | ||
restart: unless-stopped | ||
rabbitmq: | ||
image: library/rabbitmq:3.6 | ||
hostname: rabbitmq | ||
environment: | ||
- RABBIT_PASSWORD=rabbit_test_password | ||
- USER=rabbit_user | ||
- RABBITMQ_NODENAME=rabbit | ||
restart: unless-stopped | ||
|
||
worker: | ||
# Note you cannot scale if you use container_name | ||
container_name: qgis-plugins-worker | ||
build: docker | ||
hostname: uwsgi | ||
working_dir: /home/web/django_project | ||
command: celery -A plugins worker -l info | ||
environment: | ||
- DATABASE_NAME=gis | ||
- DATABASE_USERNAME=docker | ||
- DATABASE_PASSWORD=docker | ||
- DATABASE_HOST=db | ||
- DJANGO_SETTINGS_MODULE=settings_docker | ||
- VIRTUAL_HOST=plugins.kartoza.com | ||
- VIRTUAL_PORT=8080 | ||
- RABBITMQ_HOST=rabbitmq | ||
volumes: | ||
- ../qgis-app:/home/web/django_project | ||
- ./static:/home/web/static:rw | ||
- ./static:/home/web/media:rw | ||
links: | ||
- db:db | ||
- rabbitmq:rabbitmq | ||
worker: | ||
# Note you cannot scale if you use container_name | ||
container_name: qgis-plugins-worker | ||
build: docker | ||
hostname: uwsgi | ||
working_dir: /home/web/django_project | ||
command: celery -A plugins worker -l info | ||
environment: | ||
- DATABASE_NAME=gis | ||
- DATABASE_USERNAME=docker | ||
- DATABASE_PASSWORD=docker | ||
- DATABASE_HOST=db | ||
- DJANGO_SETTINGS_MODULE=settings_docker | ||
- VIRTUAL_HOST=plugins.kartoza.com | ||
- VIRTUAL_PORT=8080 | ||
- RABBITMQ_HOST=rabbitmq | ||
volumes: | ||
- ../qgis-app:/home/web/django_project | ||
- ./static:/home/web/static:rw | ||
- ./static:/home/web/media:rw | ||
links: | ||
- db:db | ||
- rabbitmq:rabbitmq | ||
|
||
nginx: | ||
# Note you cannot scale if you use container_name | ||
container_name: qgis-plugins-nginx | ||
image: nginx | ||
hostname: nginx | ||
volumes: | ||
- ./sites-enabled:/etc/nginx/conf.d:ro | ||
# I dont use volumes_from as I want to use the ro modifier | ||
- ./static:/home/web/static:ro | ||
- ./static:/home/web/media:ro | ||
- ./logs:/var/log/nginx | ||
links: | ||
- web:uwsgi | ||
ports: | ||
- "62201:8080" | ||
restart: unless-stopped | ||
nginx: | ||
# Note you cannot scale if you use container_name | ||
container_name: qgis-plugins-nginx | ||
image: nginx | ||
hostname: nginx | ||
volumes: | ||
- ./sites-enabled:/etc/nginx/conf.d:ro | ||
# I dont use volumes_from as I want to use the ro modifier | ||
- ./static:/home/web/static:ro | ||
- ./static:/home/web/media:ro | ||
- ./logs:/var/log/nginx | ||
links: | ||
- web:uwsgi | ||
ports: | ||
- "62201:8080" | ||
restart: unless-stopped |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Generated by Django 2.2.25 on 2023-11-30 05:13 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('plugins', '0002_plugins_feedback'), | ||
('plugins', '0003_plugin_allow_update_name'), | ||
] | ||
|
||
operations = [ | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters