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
3ccedff3
Commit
3ccedff3
authored
4 years ago
by
Pierre Michiels
Browse files
Options
Downloads
Patches
Plain Diff
Update TP5 log.txt
parent
4bec0c23
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
TP5 log.txt
+15
-0
15 additions, 0 deletions
TP5 log.txt
with
15 additions
and
0 deletions
TP5 log.txt
+
15
−
0
View file @
3ccedff3
...
...
@@ -3,6 +3,21 @@ Docker avancé - Docker Image
- J'utilise le langage de programmation Python car c'est le langage le moins verbeux que je maitrise
(Python parmi Java, Javascript et C)
Dockerfile:
#va prendre l'image officielle de python3 sur le hub Docker
FROM python:3
#va copier le fichier server.py à l'emplacement '/'
ADD server.py /
#va exécuter la commande [...] quand l'image se lancera
CMD ["python3","./server.py"]
Pour créer l'image:
#docker build -t python_server .
Pour construire un container de l'image:
docker run --rm -ti -p 8080:8080 -e HOSTNAME=$(hostname) python_server
(--rm permet de supprimer le container dès son arrêt)
TODO réduire l'image le plus possible
Load balancing
\ No newline at end of file
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