-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1429 from FJNR-inc/develop
Release 4.0.0
- Loading branch information
Showing
134 changed files
with
8,829 additions
and
720 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
## Docker database | ||
DATABASE_URL=postgres://root:my_password@db:5432/blitz | ||
DB_HOST=db | ||
DB_USER=root | ||
DB_PASSWORD=my_password | ||
DB_PORT=5432 | ||
DB_NAME=blitz | ||
|
||
## GENERAL SETTINGS | ||
DEBUG=True | ||
SECRET_KEY=NSH1FNjqRuZCZA2MxM7pNSH1FNjqRuZCZA2MxM7p | ||
ALLOWED_HOSTS=127.0.0.1, localhost, 0.0.0.0 | ||
#ADMINS=("You", "you@example.com"), | ||
ALLOWED_HOSTS=127.0.0.1,localhost,0.0.0.0 | ||
MAILCHIMP_API_KEY=00000000000000000000000000000000-aa00 #fake key | ||
MAILCHIMP_SUBSCRIBE_LIST_ID=1 | ||
MAILCHIMP_ENABLED=False | ||
MAILCHIMP_ENABLED=False | ||
|
||
EMAIL_SERVICE=True |
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,62 @@ | ||
pipeline { | ||
agent { | ||
docker { | ||
image 'tmaier/docker-compose' | ||
args '-v /var/run/docker.sock:/var/run/docker.sock' | ||
} | ||
} | ||
environment { | ||
HOME = '.' | ||
} | ||
stages { | ||
stage('Debug info') { | ||
steps { | ||
sh 'docker-compose --version' | ||
} | ||
} | ||
stage('Build images') { | ||
steps { | ||
sh 'docker-compose build' | ||
} | ||
} | ||
stage('Static code analysis') { | ||
steps { | ||
sh 'docker-compose run --rm api pycodestyle --config=.pycodestylerc .' | ||
} | ||
} | ||
stage('Unit tests') { | ||
steps { | ||
sh 'docker-compose run --rm api python manage.py test' | ||
} | ||
} | ||
stage('deploy QA') { | ||
when{ | ||
expression { | ||
return env.BRANCH_NAME == 'develop'; | ||
} | ||
} | ||
steps { | ||
sh ''' | ||
# No deploy QA | ||
''' | ||
} | ||
} | ||
stage('Store official image') { | ||
when{ | ||
expression { | ||
return env.BRANCH_NAME == 'master'; | ||
} | ||
} | ||
steps { | ||
sh ''' | ||
# No image repository | ||
''' | ||
} | ||
} | ||
stage("Final Cleanup") { | ||
steps { | ||
cleanWs deleteDirs: true, notFailBuild: true | ||
} | ||
} | ||
} | ||
} |
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,7 @@ | ||
from __future__ import absolute_import, unicode_literals | ||
|
||
# This will make sure the app is always imported when | ||
# Django starts so that shared_task will use this app. | ||
from .celery import app as celery_app | ||
|
||
__all__ = ('celery_app',) |
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,18 @@ | ||
""" | ||
ASGI config for Blitz-API project. | ||
It exposes the ASGI callable as a module-level variable named ``application``. | ||
For more information on this file, see | ||
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ | ||
""" | ||
|
||
import os | ||
|
||
from django.core.asgi import get_asgi_application | ||
from websocket.middleware import websockets | ||
|
||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'blitz_api.settings') | ||
|
||
application = get_asgi_application() | ||
application = websockets(application) |
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,23 @@ | ||
""" | ||
Celery config file | ||
https://docs.celeryproject.org/en/stable/django/first-steps-with-django.html | ||
""" | ||
|
||
from __future__ import absolute_import | ||
import os | ||
from celery import Celery | ||
|
||
# set the default Django settings module for the 'celery' program. | ||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'blitz_api.settings') | ||
app = Celery('blitz_api') | ||
|
||
# Using a string here means the worker will not have to | ||
# pickle the object when using Windows. | ||
|
||
app.config_from_object('django.conf:settings', namespace='CELERY') | ||
|
||
app.conf.beat_schedule = { | ||
# Add some schedule tasks here if you need | ||
} | ||
|
||
app.autodiscover_tasks() |
Empty file.
Oops, something went wrong.