docker部署

pull/1/head
李强 2021-03-07 11:36:38 +08:00
parent b660578888
commit a83d0b6a3f
215 changed files with 1644 additions and 124 deletions

4
.gitignore vendored
View File

@ -16,4 +16,6 @@ bin-release/
# Project files, i.e. `.project`, `.actionScriptProperties` and `.flexProperties`
# should NOT be excluded as they contain compiler settings and other important
# information for Eclipse / Flash Builder.
./docker_env/mysql/data/
docker_env/mysql/data/
docker_env/redis/data/
*/.idea

View File

@ -1,76 +0,0 @@
aliyun-python-sdk-core-v3==2.13.11
aliyun-python-sdk-dysmsapi==1.0.0
astroid==2.3.3
autopep8==1.4.4
certifi==2019.11.28
chardet==3.0.4
defusedxml==0.6.0
diff-match-patch==20181111
Django==3.1.3
django-authtools==1.7.0
django-ckeditor==5.9.0
django-cors-headers==3.2.0
django-filter==2.4.0
django-debug-toolbar
django-import-export==2.4.0
django-js-asset==1.2.2
django-simpleui==3.7
django-tenants
djangorestframework==3.12.2
django-rest-swagger
djangorestframework-jwt==1.11.0
hiredis
django-redis-sessions
django-redis-cache
django-nested-admin
docutils==0.15.2
drf-extensions==0.5.0
entrypoints==0.3
et-xmlfile==1.0.1
flake8==3.7.9
idna==2.8
isort==4.3.21
jdcal==1.4.1
jmespath==0.9.4
lazy-object-proxy==1.4.3
Markdown==3.1.1
MarkupPy==1.14
mccabe==0.6.1
odfpy==1.4.0
openpyxl==3.0.2
optionaldict==0.1.1
ordered-set==3.1.1
Pillow==6.2.1
psycopg2==2.8.6
psycopg2-binary==2.8.6
pyasn1==0.4.8
pycodestyle==2.5.0
pycryptodome==3.9.4
pyflakes==2.1.1
PyJWT==1.7.1
pylint==2.4.4
pylint-django==2.0.13
pylint-plugin-utils==0.6
python-dateutil==2.8.1
pytz==2019.3
PyYAML==5.1.2
requests==2.22.0
rsa==4.0
simplepro==1.0.6
six==1.13.0
sqlparse==0.3.0
tablib==0.14.0
typed-ast==1.4.0
urllib3==1.25.7
wechatpy==1.8.6
wrapt==1.11.2
xlrd==1.2.0
xlwt==1.3.0
xmltodict==0.12.0
uwsgi
uuid
Celery==4.4
django-celery-beat
django-celery-results
tenant-schemas-celery
opencv-python

View File

@ -10,6 +10,7 @@ RUN apt-get install -y redis-tools
RUN mkdir /dvadmin-backend
WORKDIR /dvadmin-backend
COPY ./dvadmin-backend/requirements.txt /
COPY ./dvadmin-backend/conf/env.example.py ./dvadmin-backend/conf/env.py
RUN python3 -m pip install -i https://mirrors.aliyun.com/pypi/simple/ -r /requirements.txt
CMD ["/dvadmin-backend/docker_start.sh"]
# ENTRYPOINT [ "uwsgi --ini /backend/azcrm/uwsgi.ini" ]

View File

@ -1,37 +0,0 @@
apt update
apt install python3.7
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3.7 ./get-pip.py
sudo apt install python3-pip
python3.7 ./get-pip.py
sudo apt-get install python3-venv
sudo apt install python3.7-venv
python3.7 -m venv .
sudo apt-get install libpq-dev python3.7-dev
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
apt-cache madison docker-ce
sudo apt-get install docker-ce=5:19.03.6~3-0~ubuntu-bionic docker-ce-cli=5:19.03.6~3-0~ubuntu-bionic containerd.io
# 192.144.204.104 为正式上线前的预生产环境, 缓存启用redis, 数据库为postgres
echo 'export AZENV=preprod' >> ~/.bashrc
# fix Got permission denied while trying to connect to the Docker daemon socket
#
sudo gpasswd -a ${USER} docker
sudo -i
su ubuntu

View File

@ -0,0 +1,2 @@
[auto]
server-uuid=2fdd32f2-7ee3-11eb-b3e7-0242ac1c0002

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,119 @@
10,110
10,198
10,299
10,35
10,34
10,90
10,66
10,276
11,17
11,18
11,6
11,27
11,20
11,9
11,21
68,4
68,3
11,12
11,2
68,2
68,1
11,3
68,0
67,5
67,4
67,3
67,2
67,1
67,0
66,4
66,3
66,2
66,1
66,0
65,4
65,3
8,7
8,11
8,18
65,2
8,14
65,1
8,17
65,0
64,4
64,3
64,2
64,1
64,0
63,4
63,3
63,2
63,1
63,0
62,4
62,3
62,2
62,1
62,0
61,5
61,4
61,3
61,2
61,1
61,0
58,6
58,5
58,4
58,3
58,2
58,1
58,0
56,6
56,5
56,4
56,3
56,2
56,1
56,0
53,6
53,5
53,4
53,3
53,2
53,1
53,0
50,4
50,3
50,1
41,4
41,3
41,1
34,4
34,3
34,1
31,3
31,1
20,3
20,2
20,1
19,3
19,2
19,1
14,5
14,4
12,1
12,3
12,2
11,29
11,25
11,19
18,1
11,1
18,3
11,8
10,314
10,308
10,237
10,220

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,2 @@
default-character-set=utf8
default-collation=utf8_general_ci

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More