A devlopment environment for epitech student based on the official epitechcontent/epitest-docker Docker. Work with Docker Desktop on Windows, Mac and Linux.
Don't forget to star this repository if you liked it !
You first need to install Docker Desktop on you pc. You can follow the instructions here.
You need to put the .docker file, from this repository, in your project. A simple way to do that is to execute this script:
# Go in your project local repository
cd YourProject
# Add this repository as remote and pull from it
git remote add dockenv git@github.com:Brancieq-Paul/Epitech-development-environment.git
git pull dockenv
#Don't forget to remove the remote when it's done
git remote rm dockenv
Create a new Dev Environment.
Use your project repository as base. The .docker will be read and the Epitech environment set.
An error may occur about your ssh-key. Execute the following script in your shell (work for all os) if that happen:
ssh-agent
ssh-add <path to your private ssh key>
You can now open this environment in Visual Studio Code !
Docker Desktop may ask you to add your ssh key before pulling your repository. Sometimes, you need to activate your ssh-agent before that (see here)
Clic on the docker container in Docker Desktop then you can select and copy the name:
First, you need to get the name of the container your project is in (see here).
You can open a new terminal in the same container as your project with this docker command:
docker exec -it <mycontainer> bash
First, you need to get the name of the container your project is in (see here).
Then, you can execute this command in your shell:
docker cp /(path to your file) (container_id):/(to_the_place_you_want_the_file_to_be)