-
Notifications
You must be signed in to change notification settings - Fork 30
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 #76 from Kyria/develop
Update master with all updates
- Loading branch information
Showing
225 changed files
with
22,617 additions
and
13,259 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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Starter pipeline | ||
# Start with a minimal pipeline that you can customize to build and deploy your code. | ||
# Add steps that build, run tests, deploy, and more: | ||
# https://aka.ms/yaml | ||
name: lb-docker-build | ||
|
||
trigger: | ||
batch: true | ||
branches: | ||
include: | ||
- develop | ||
- master | ||
- refs/tags/* | ||
|
||
pr: | ||
branches: | ||
include: | ||
- develop | ||
- master | ||
|
||
pool: | ||
vmImage: 'ubuntu-latest' | ||
|
||
variables: | ||
${{ if eq(variables['Build.SourceBranchName'], 'master') }}: | ||
customTag: 'latest' | ||
${{ if ne(variables['Build.SourceBranchName'], 'master') }}: | ||
customTag: $(Build.SourceBranchName) | ||
|
||
jobs: | ||
- job: pullrequests | ||
displayName: "Pull Request build test" | ||
condition: eq(variables['Build.Reason'], 'PullRequest') | ||
steps: | ||
- task: Docker@2 | ||
displayName: Build LB image | ||
inputs: | ||
containerRegistry: 'dockerhub' | ||
repository: 'anakhon/lazyblacksmith' | ||
command: 'build' | ||
Dockerfile: '**/Dockerfile' | ||
arguments: '--rm' | ||
addPipelineData: false | ||
buildContext: $(Build.SourcesDirectory) | ||
|
||
- job: BuildAndPushToDockerHub | ||
displayName: 'Build and Push to Docker Hub' | ||
condition: ne(variables['Build.Reason'], 'PullRequest') | ||
steps: | ||
- task: Docker@2 | ||
displayName: Login to Docker Registry | ||
inputs: | ||
command: login | ||
containerRegistry: 'dockerhub' | ||
- task: Docker@2 | ||
displayName: Build & Push LB image | ||
inputs: | ||
containerRegistry: 'dockerhub' | ||
repository: 'anakhon/lazyblacksmith' | ||
command: 'buildAndPush' | ||
Dockerfile: '**/Dockerfile' | ||
tags: $(customTag) | ||
addPipelineData: false | ||
buildContext: $(Build.SourcesDirectory) |
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,37 @@ | ||
__pycache__ | ||
*.pyc | ||
*.pyo | ||
*.pyd | ||
*.log | ||
.Python | ||
env | ||
venv | ||
env3 | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
.tox | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*,cover | ||
*.log | ||
.git | ||
node_modules | ||
.eslintrc.json | ||
.gitattributes | ||
.gitignore | ||
.pylintrc | ||
.vscode | ||
tmp | ||
*.sqlite | ||
|
||
# celery stuff | ||
celerybeat-schedule.db | ||
|
||
# configs | ||
config.py | ||
|
||
# docker stuff... | ||
Dockerfile |
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 was deleted.
Oops, something went wrong.
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,2 +1,6 @@ | ||
[MASTER] | ||
ignore=migrations | ||
[TYPECHECK] | ||
ignored-classes=scoped_session,SQLAlchemy,alembic,alembic.op | ||
ignored-classes=scoped_session,SQLAlchemy,alembic,alembic.op | ||
[MESSAGES CONTROL] | ||
disable=C0103,R0201,R0903,no-member |
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,41 @@ | ||
# -*- encoding: utf-8 -*- | ||
# pylint: disable=unused-import | ||
# flake8: noqa | ||
from __future__ import absolute_import | ||
import logging | ||
|
||
import config | ||
|
||
from lbtasks.flask_celery import celery_app | ||
from lbtasks.task_app import create_app | ||
from celery.schedules import crontab | ||
|
||
# disable / enable loggers we want | ||
logging.getLogger('pyswagger').setLevel(logging.ERROR) | ||
logging.getLogger('lb.tasks').setLevel(logging.WARNING) | ||
|
||
celery_app.init_app(create_app(config)) | ||
celery_app.autodiscover_tasks(packages=['lbtasks']) | ||
celery_app.conf.beat_schedule = { | ||
'purge': { | ||
'task': 'schedule.purge', | ||
'schedule': crontab(minute=0, hour=1), | ||
}, | ||
'spawn_char_tasks': { | ||
'task': 'schedule.character_task_spawner', | ||
'schedule': crontab(minute='*/5'), | ||
}, | ||
'update_indexes': { | ||
'task': 'universe.industry_indexes', | ||
'schedule': crontab(minute=0, hour=0), | ||
}, | ||
'update_adjusted_price': { | ||
'task': 'universe.adjusted_price', | ||
'schedule': crontab(minute=0, hour=0), | ||
}, | ||
'update_market_order': { | ||
'task': 'universe.spawn_market_price_tasks', | ||
'schedule': crontab(minute='*/30'), | ||
}, | ||
} | ||
celery_app.conf.timezone = 'UTC' |
Submodule bootstrap
deleted from
779ad9
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.