Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
graces_es6
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_es6
Commits
6cfe0772
Commit
6cfe0772
authored
Dec 11, 2019
by
胡凯旋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update Dockerfile / Jenkinsfile
parent
8c80e601
Show 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 @
6cfe0772
...
...
@@ -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_es6
/app
COPY
. /srv/apps/g
aia
/
COPY
. /srv/apps/g
races-es6
/
WORKDIR
/srv/apps/g
aia
/
WORKDIR
/srv/apps/g
races-es6
/
# 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 @
6cfe0772
...
...
@@ -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-es6
:$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