Skip to content
Snippets Groups Projects
Commit 707377f2 authored by Francesco Saverio Cafagna's avatar Francesco Saverio Cafagna
Browse files

README.md update.

parent 1eff38fc
Branches main
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ The image is based on a minimal Linux [Debian](http://debian.org) and contains t
To build the image and run the container you need to:
1. Install [Docker Desktop](https://www.docker.com/products/docker-desktop) on your Windows PC;
2. Download the [minimal-gcc](https://baltig.infn.it/fc-courses/it/programming/cpp-mag-2024/blob/master/container/minimal-gcc) dockerfile from the GitLab repository;
2. Download the [minimal-gcc](https://baltig.infn.it/fc-courses/it/programming/cpp-mag-2025/blob/master/container/minimal-gcc) dockerfile from the GitLab repository;
3. Open you favorite Windows command line interface, for example Windows PowerShell, change directory where the Dockerfile is stored and type the command:
` docker build -f .\minimal-gcc -t cppcourse .`
where *cppcourse* is the name of the image.
......@@ -26,15 +26,15 @@ To mount in the container the local directory containing the sources you can use
You can use the container to clone the GitLab repository. To do that:
1. Create the directory where you would like to store the repository, for example: *C:\cppcourse*;
2. Run the container to execute the git clone command:
`docker run --rm --name cpp -v c:\cppcourse:/home/student/cppcourse -w /home/student/cppcourse cppcourse git clone https://baltig.infn.it/fc-courses/it/programming/cpp-mag-2024.git`
`docker run --rm --name cpp -v c:\cppcourse:/home/student/cppcourse -w /home/student/cppcourse cppcourse git clone https://baltig.infn.it/fc-courses/it/programming/cpp-mag-2025.git`
3. As an alternative you can execute the git command interactively in the running container:
`docker run -it --rm --name cpp -v c:\cppcourse:/home/student/cppcourse cppcourse`
and the commands inside the container:
`cd cppcourse`
`git clone https://baltig.infn.it/fc-courses/it/programming/cpp-mag-2024.git`
`git clone https://baltig.infn.it/fc-courses/it/programming/cpp-mag-2025.git`
To update the GitLab repository:
1. `docker run --rm --name cpp -v c:\cppcourse:/home/student/cppcourse -w /home/student/cppcourse/cpp-mag-2024 cppcourse git pull`
1. `docker run --rm --name cpp -v c:\cppcourse:/home/student/cppcourse -w /home/student/cppcourse/cpp-mag-2025 cppcourse git pull`
2. Or use the `git pull` command inside a running container (in the local repository).
## How to create an executable using the Docker container
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment