Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DAC-TP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pierre Michiels
DAC-TP
Commits
4bec0c23
Commit
4bec0c23
authored
4 years ago
by
Pierre Michiels
Browse files
Options
Downloads
Patches
Plain Diff
07.11.20 22:15
parent
c73c760d
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
TP5_06.11.20/Dockerfile
+3
-0
3 additions, 0 deletions
TP5_06.11.20/Dockerfile
TP5_06.11.20/index.html
+1
-9
1 addition, 9 deletions
TP5_06.11.20/index.html
TP5_06.11.20/server.py
+7
-0
7 additions, 0 deletions
TP5_06.11.20/server.py
with
11 additions
and
9 deletions
TP5_06.11.20/Dockerfile
0 → 100644
+
3
−
0
View file @
4bec0c23
FROM
python:3
ADD
server.py /
CMD
["python3","./server.py"]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
TP5_06.11.20/index.html
+
1
−
9
View file @
4bec0c23
<html>
<head>
<title>
Python is awesome!
</title>
</head>
<body>
<h1>
html python server
</h1>
<p>
Congratulations! The HTTP Server is working!
</p>
</body>
</html>
<html><head><title>
Python is awesome!
</title></head><body><h1>
html python server None
</h1><p>
Congratulations! The HTTP Server is working!
</p></body></html>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
TP5_06.11.20/server.py
+
7
−
0
View file @
4bec0c23
import
http.server
import
socketserver
import
os
f
=
open
(
"
index.html
"
,
'
w
'
)
htmlCode
=
"
<html><head><title>Python is awesome!</title></head><body><h1>html python server %s
"
%
(
os
.
getenv
(
'
HOSTNAME
'
))
htmlCode
+=
"
</h1><p>Congratulations! The HTTP Server is working!</p></body></html>
"
f
.
write
(
htmlCode
)
f
.
close
()
PORT
=
8080
Handler
=
http
.
server
.
SimpleHTTPRequestHandler
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment