Skip to content

Commit

Permalink
v1.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
hhyo committed Oct 28, 2018
1 parent 4cf294a commit 99a1d57
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
archery镜像:https://dev.aliyun.com/detail.html?spm=5176.1972343.2.2.58c75aaa3iK1Sb&repoId=244140
inception镜像: https://dev.aliyun.com/detail.html?spm=5176.1972343.2.12.7b475aaaLiCfMf&repoId=142093

准备配置文件以及docker-compose.yml,mysql和mongo可按需选择
#### docker-compose.yml

```yaml
Expand Down Expand Up @@ -62,7 +61,7 @@ services:
- "./inception/inc.cnf:/etc/inc.cnf"

archery:
image: registry.cn-hangzhou.aliyuncs.com/lihuanhuan/archery:1.3.3
image: registry.cn-hangzhou.aliyuncs.com/lihuanhuan/archery:1.3.5
container_name: archery
restart: always
ports:
Expand Down Expand Up @@ -102,7 +101,7 @@ docker logs archery

依赖或引用项目
===============
- [inception](https://github.com/mysql-inception/inception)
- [inception](https://github.com/hhyo/inception)
- [Themis](https://github.com/CreditEaseDBA/Themis)
- [binlog2sql](https://github.com/danfengcao/binlog2sql)
- [aquila_v2](https://github.com/thinkdb/aquila_v2)
Expand Down
6 changes: 4 additions & 2 deletions common/auth.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import datetime
import logging

import simplejson as json
from django.conf import settings
Expand All @@ -12,8 +13,9 @@

from common.config import SysConfig
from sql.models import Users
from sql.views import logger
from sql.sql_workflow import login_failure_counter, logger

logger = logging.getLogger('default')
login_failure_counter = {} # 登录失败锁定计数器,给loginAuthenticate用的


def loginAuthenticate(username, password):
Expand Down
2 changes: 1 addition & 1 deletion common/templates/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h4 class="modal-title" id="myModalLabel">

<!--底部部分 -->
<div class="row clearfix user-bottom-div">
<p><strong>SQL审核平台</strong>&nbsp;(v1.3.4)</p>
<p><strong>SQL审核平台</strong>&nbsp;(v1.3.5)</p>
</div>
<!-- jQuery (Bootstrap JavaScript 插件需要引入 jQuery务必先引入jquery js再引入bootstrap js) -->
<script src="{% static 'jquery/jquery.min.js' %}"></script>
Expand Down
1 change: 0 additions & 1 deletion sql/sql_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
from .models import SqlWorkflow

logger = logging.getLogger('default')
login_failure_counter = {} # 登录失败锁定计数器,给loginAuthenticate用的
sqlSHA1_cache = {} # 存储SQL文本与SHA1值的对应关系,尽量减少与数据库的交互次数,提高效率。格式: {工单ID1:{SQL内容1:sqlSHA1值1, SQL内容2:sqlSHA1值2},}
workflowOb = Workflow()

Expand Down
6 changes: 5 additions & 1 deletion src/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,14 @@ RUN cd /opt \
&& cd /opt && rm -rf /opt/SchemaObject/ && rm -rf /opt/SchemaSync/ \
&& yum install -y python-devel \
&& pip install mysql-python
#soar
RUN cd /opt \
&& wget https://github.com/XiaoMi/soar/releases/download/v0.8.1/soar.linux-amd64 -O soar \
&& chmod a+x soar
#archery
RUN cd /opt \
&& yum -y install openldap-devel nginx \
&& git clone https://github.com/hhyo/archery.git && cd archery && git checkout v1.3.4 \
&& git clone https://github.com/hhyo/archery.git && cd archery && git checkout v1.3.5 \
&& source /opt/venv4archery/bin/activate \
&& pip3 install -r /opt/archery/src/docker/requirements.txt -i https://mirrors.ustc.edu.cn/pypi/web/simple/ \
&& cp /opt/archery/src/docker/connections.py /opt/venv4archery/lib/python3.6/site-packages/MySQLdb/connections.py \
Expand Down

0 comments on commit 99a1d57

Please sign in to comment.