Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
graces
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
rank
graces
Commits
42b8ecfc
Commit
42b8ecfc
authored
Dec 12, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.wanmeizhensuo.com:rank/graces
parents
89739693
cfa483cd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
Dockerfile
Dockerfile
+3
-4
Jenkinsfile
Jenkinsfile
+1
-1
No files found.
Dockerfile
View file @
42b8ecfc
...
...
@@ -44,15 +44,14 @@ RUN apk add --no-cache --virtual .build-deps \
&& sed -i '/st_mysql_options options;/a unsigned int reconnect;' /usr/include/mysql/mysql.h \
&& pip install --no-cache-dir -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com -r /tmp/common.txt \
&& mkdir -p /tmp/video_convert \
&& mkdir -p /data/log/g
aia
/app
&& mkdir -p /data/log/g
races
/app
COPY
. /srv/apps/g
aia
/
COPY
. /srv/apps/g
races
/
WORKDIR
/srv/apps/g
aia
/
WORKDIR
/srv/apps/g
races
/
# requirements文件中指定安装master分支的依赖每次构建镜像都会重新安装
RUN
cat
requirements/common.txt |
grep
master
>
/tmp/gm-requirements.txt
\
&&
pip
install
--no-deps
--upgrade
-i
http://mirrors.aliyun.com/pypi/simple/
--trusted-host
mirrors.aliyun.com
-r
/tmp/gm-requirements.txt
\
&&
apk del .build-deps
CMD
gunicorn gaia.wsgi:application -w 6 -k gevent -b 0.0.0.0:8000 --worker-tmp-dir /dev/shm
Jenkinsfile
View file @
42b8ecfc
...
...
@@ -23,7 +23,7 @@ pipeline {
TAG
=
dockerTag
()
// Image Full Tag
IMAGE
=
"${DOCKER_REGISTRY}/gm-backend/g
aia
:$TAG"
IMAGE
=
"${DOCKER_REGISTRY}/gm-backend/g
races
:$TAG"
}
stages
{
...
...
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