Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
Strategic Planting
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alexander Povel
Strategic Planting
Commits
5c70caf7
Commit
5c70caf7
authored
Aug 02, 2020
by
Ahmad Khalidi
Committed by
Alexander Povel
Aug 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add host and adjust ports in deploy.yaml
parent
d6b28c1e
Pipeline
#82486
canceled with stages
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
Dockerfile
Dockerfile
+3
-2
deploy.yaml
deploy.yaml
+2
-2
server.py
server.py
+1
-1
No files found.
Dockerfile
View file @
5c70caf7
FROM
python:3
ENV
STATIC_URL /static
ENV
STATIC_PATH /var/www/app/static
WORKDIR
/usr/src/app
COPY
requirements.txt ./
...
...
@@ -7,6 +10,4 @@ RUN pip install --no-cache-dir -r requirements.txt
COPY
. .
EXPOSE
8080
CMD
[ "python", "./server.py" ]
deploy.yaml
View file @
5c70caf7
...
...
@@ -20,7 +20,7 @@ spec:
name
:
air
imagePullPolicy
:
"
Always"
ports
:
-
containerPort
:
808
0
-
containerPort
:
500
0
protocol
:
TCP
imagePullSecrets
:
-
name
:
secret123
...
...
@@ -36,7 +36,7 @@ spec:
-
name
:
http
port
:
8080
protocol
:
TCP
targetPort
:
808
0
targetPort
:
500
0
selector
:
service
:
air
type
:
ClusterIP
server.py
View file @
5c70caf7
...
...
@@ -41,5 +41,5 @@ def getLuftdaten():
return
jsonify
(
result
)
if
__name__
==
"__main__"
:
app
.
run
(
debug
=
True
,
port
=
8080
)
app
.
run
(
debug
=
True
,
host
=
'0.0.0.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