Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
sun
Commits
5985e2cc
Commit
5985e2cc
authored
Aug 17, 2019
by
yangchenglin
Browse files
Options
Browse Files
Download
Plain Diff
merge master
parents
a4aa22c8
0d69bf8f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
76 additions
and
0 deletions
+76
-0
Dockerfile
Dockerfile
+27
-0
readme
readme
+12
-0
sources.list
sources.list
+10
-0
id_rsa
ssh/id_rsa
+27
-0
No files found.
Dockerfile
0 → 100644
View file @
5985e2cc
FROM
python:3.6
ENV
PATH="/usr/local/bin:$PATH"
COPY
. /srv/apps/sun/
WORKDIR
/root/.ssh/
ADD
ssh/id_rsa .
ADD
./sources.list /etc/apt/sources.list
WORKDIR
/srv/apps/sun/
RUN
chmod
-R
600 /root/.ssh/id_rsa
\
&&
echo
"StrictHostKeyChecking no"
>>
/etc/ssh/ssh_config
\
&&
mkdir
-p
/data/log/sun/app
RUN
apt-key adv
--recv-keys
--keyserver
keyserver.ubuntu.com 3B4FE6ACC0B21F32
\
&&
apt-get
-y
update
&&
apt-get
-y
install
mysql-client libmysqlclient-dev
\
&&
apt-get clean
\
&&
apt-get autoclean
\
&&
rm
-rf
/var/lib/apt/lists/
*
RUN
pip3
install
-i
https://pypi.tuna.tsinghua.edu.cn/simple
-r
requirements.txt
ENTRYPOINT
bash -c 'source ~/.bashrc && gunicorn sun.wsgi:application -w 4 -b 0.0.0.0:8090 -k gevent'
readme
View file @
5985e2cc
...
@@ -35,3 +35,15 @@
...
@@ -35,3 +35,15 @@
说明:
说明:
sun采用前后端分离,前端请求打到后端,然后通过rpc去venus请求数据。
sun采用前后端分离,前端请求打到后端,然后通过rpc去venus请求数据。
在启动项目之前,记得配置好路由表和启动venus项目。
在启动项目之前,记得配置好路由表和启动venus项目。
###############################################################
镜像构建命令
docker build . -t sun-test:1.0
容器启动命令
docker run -it -p 8990:8000 -d \
--volume=/etc/gm-config:/etc/gm-config \
--volume=/etc/resolv.conf:/etc/resolv.conf \
--volume=/srv/apps/sun/sun/settings_local.py:/srv/apps/sun/sun/settings_local.py \
--entrypoint="/bin/bash" sun-test:1.0 "-c" "source ~/.bashrc && gunicorn sun.wsgi:application -w 4 -b 0.0.0.0:8090 -k gevent"
sources.list
0 → 100644
View file @
5985e2cc
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
ssh/id_rsa
0 → 100644
View file @
5985e2cc
-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEAvnSXGsqnlSxWVh9e4U40lWeV1f8DOD4B/atSjfxU9CJaSisc
xtmcLcyRY91lwx2OJJ0GvTx0DBifYBRsvpu8zrG33QQgr+StuJlIKUMlCXzaqsVt
u4wWgSLRks1nKFXVL4yIsKDxUAc60abHB3x9ygM+pS182iZAaW7yowe/E05I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/Ue9gqiB17PO7Yr9hX245
Oo9CcnsBQ4sPSrET5XdxK0dY4JXtGDdP75DcjjYCgOCFi1tsU0MWLYG1u9l0AcGW
St5qkFWJ5nIzKKhv+d3eX7fkw9XTdD/AWNl9CsOnOqE5TlfA8O79jXja4EjBTSF9
JGp+DQKBgC04JCqYJ4jHTQLNCEh42tajL34K8VCltNWdHrAabnd9a16YqzsdVIZ/
xxOBghO9Xwhz666v8yh5TDGAR8XA9kCNbVxeDlqWP1oqWMpHXSwUN5Q7cH/l8M8F
YlQLOkFz4B9mSobZoiupYXS9mpe2kMase2FroYkTy6NFX8mKa93q
-----END RSA PRIVATE KEY-----
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment