Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 590375a2 authored by GILLES Sebastien's avatar GILLES Sebastien
Browse files

Merge branch 'name_in_docker' into 'master'

HandsOn: fix the path and user name in the README

See merge request !97
parents d1dd1208 617407bb
Branches
No related tags found
1 merge request!97HandsOn: fix the path and user name in the README
next=$(($1+1))
diff Solution/exercise$1.cpp Solution/exercise$next.cpp > p$1_$next
...@@ -2,14 +2,16 @@ The more natural to run the hands-ons is to set up your local environment with a ...@@ -2,14 +2,16 @@ The more natural to run the hands-ons is to set up your local environment with a
However if need be we prepared a Docker image which includes a very basic environment with the minimum required to be able to run the hands-ons. However if need be we prepared a Docker image which includes a very basic environment with the minimum required to be able to run the hands-ons.
The image is based on Fedora and is created through this [Dockerfile](../docker/Dockerfile.fedora). The image is based on Fedora and is created through this [Dockerfile](../docker/Dockerfile.fedora_for_hands_on).
To run it type: To run it, place yourself in the `HandsOn` directory and type:
``` ```
docker run -it --rm -v $PWD:/home/formation/gettingstartedwithmoderncpp --cap-drop=all registry.gitlab.inria.fr/formations/cpp/gettingstartedwithmoderncpp/fedora_for_hands_on:latest docker run -it --rm -v $PWD:/home/dev_cpp/training_cpp --cap-drop=all registry.gitlab.inria.fr/formations/cpp/gettingstartedwithmoderncpp/fedora_for_hands_on:latest
``` ```
You may now edit in your local environment the source files with your favorite IDE and compile and runs the example in the container.
Most options have already been covered in the [main README](../README.md); the only new one is: Most options have already been covered in the [main README](../README.md); the only new one is:
- `-it` which specifies the container must be run in interactive mode (i.e. you get a prompt to a terminal inside the Docker environment). - `-it` which specifies the container must be run in interactive mode (i.e. you get a prompt to a terminal inside the Docker environment).
......
next=$(($1+1))
echo "diff ../exercise$1.cpp ../exercise$next.cpp"
diff ../exercise$1.cpp ../exercise$next.cpp
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment