-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix errors in GH action coverage test #323
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ RUN echo "deb http://archive.debian.org/debian stretch main contrib non-free" > | |
RUN apt-get update && apt-get install -y libsasl2-dev python-dev libldap2-dev libssl-dev | ||
ADD REQUIREMENTS.txt /REQUIREMENTS.txt | ||
RUN pip install -r /REQUIREMENTS.txt | ||
RUN pip install uwsgi | ||
RUN pip install uwsgi freezegun | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wouldn't it be better to specify a specific version? |
||
|
||
# https://docs.docker.com/examples/running_ssh_service/ | ||
# Sudo is needed by pycharm when it tries to pip install packages | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
django==2.2.25 | ||
django-auth-ldap | ||
python-ldap | ||
django-taggit | ||
django-taggit==2.0.0 | ||
django-tinymce==3.4.0 | ||
psycopg2 | ||
# Updates for Django 2 | ||
|
@@ -21,8 +21,11 @@ django-sortable-listview | |
sorl-thumbnail | ||
django-extensions | ||
django-debug-toolbar==1.11.1 | ||
whoosh | ||
django-haystack | ||
|
||
# Updates for Django 2 & Python 3.7 | ||
git+https://github.com/Xpirix/whoosh.git | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here |
||
pickle5==0.0.12 | ||
django-haystack==3.2.1 | ||
|
||
# Feedjack==0.9.18 | ||
# So use George's fork rather | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
django==2.2.25 | ||
django-auth-ldap | ||
python-ldap | ||
django-taggit | ||
django-taggit==2.0.0 | ||
django-tinymce==3.4.0 | ||
psycopg2 | ||
# Updates for Django 2 | ||
|
@@ -21,5 +21,8 @@ django-sortable-listview | |
sorl-thumbnail | ||
django-extensions | ||
django-debug-toolbar==1.11.1 | ||
whoosh | ||
django-haystack | ||
|
||
# Updates for Django 2 & Python 3.7 | ||
git+https://github.com/Xpirix/whoosh.git | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here |
||
pickle5==0.0.12 | ||
django-haystack==3.2.1 |
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 = [ | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it be better to specify a specific commit?