Yield generated for 458353cc-786a-4aa8-832a-bdd139f5d22f
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Anatole-EES 60ed6c63a9 feat: exercice curl 5 years ago
..
bash feat: exo bash 5 years ago
curl feat: exercice curl 5 years ago
python Initial commit 5 years ago
Readme.md Initial commit 5 years ago

Readme.md

Dockerfile tp

Write dockerfile for each folder.

Package curl

My computer dosen't have curl installed, and I want a docker to run curl on my laptop (as shown with python in the previous tp).

I want to be able to do this :

cd curl
docker image build -t my-curl .

And then, run it.

You have to do is to write the Dockerfile.

I want to use it like that :

docker container run --rm my-curl:latest https://example.com

Package my bash script

I want the script in the folder bash to be run within a ubuntu container.

You must write the dockerfile.

Package a python app

I want my python app to be packaged in a docker container using python 2.7.

You have to do is to write the Dockerfile.

I want to run it like that :

docker run -d -p 5000:5000 my-hello-world

And I want it to be pushed on docker hub.

Tips :

To install dependancies, you must run pip install -r requirements.txt in the container.

Don't forget to copy requirements.txt too !