Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cicd
Overview
Overview
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
郑天保
cicd
Commits
27368c6d
Commit
27368c6d
authored
Jan 02, 2019
by
zhengtianbao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change port
parent
776d3b6b
Pipeline
#11
passed with stage
in 16 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
.gitlab-ci.yml
.gitlab-ci.yml
+2
-2
Dockerfile
Dockerfile
+0
-1
test.py
app/test.py
+1
-1
No files found.
.gitlab-ci.yml
View file @
27368c6d
...
...
@@ -13,8 +13,8 @@ docker-deploy:
-
docker build -t testweb .
# 删除已经在运行的容器
-
if [ $(docker ps -aq --filter name=testweb ) ]; then docker rm -f testweb; fi
# 通过镜像启动容器,并把本机8000端口映射到容器80
00
端口
-
docker run -d -p
5000:500
0 --name testweb testweb
# 通过镜像启动容器,并把本机8000端口映射到容器80端口
-
docker run -d -p
8000:8
0 --name testweb testweb
tags
:
# 执行Job的服务器
-
test
...
...
Dockerfile
View file @
27368c6d
...
...
@@ -2,5 +2,4 @@ FROM tiangolo/uwsgi-nginx-flask:python3.7
COPY
./app /app
EXPOSE
5000
app/test.py
View file @
27368c6d
...
...
@@ -7,4 +7,4 @@ def hello():
if
__name__
==
"__main__"
:
# Only for debugging while developing
app
.
run
(
host
=
'0.0.0.0'
,
debug
=
True
,
port
=
500
0
)
app
.
run
(
host
=
'0.0.0.0'
,
debug
=
True
,
port
=
8
0
)
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