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
cfa483cd
Commit
cfa483cd
authored
Dec 11, 2019
by
胡凯旋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update Dockerfile / Jenkinsfile
parent
6a2490bb
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 @
cfa483cd
...
@@ -44,15 +44,14 @@ RUN apk add --no-cache --virtual .build-deps \
...
@@ -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 \
&& 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 \
&& 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 /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分支的依赖每次构建镜像都会重新安装
# requirements文件中指定安装master分支的依赖每次构建镜像都会重新安装
RUN
cat
requirements/common.txt |
grep
master
>
/tmp/gm-requirements.txt
\
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
\
&&
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
&&
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 @
cfa483cd
...
@@ -23,7 +23,7 @@ pipeline {
...
@@ -23,7 +23,7 @@ pipeline {
TAG
=
dockerTag
()
TAG
=
dockerTag
()
// Image Full Tag
// Image Full Tag
IMAGE
=
"${DOCKER_REGISTRY}/gm-backend/g
aia
:$TAG"
IMAGE
=
"${DOCKER_REGISTRY}/gm-backend/g
races
:$TAG"
}
}
stages
{
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