Skip to content

Develop and run your epitech project like Marvin in any os ! A development environment based on the official epitech docker.

Notifications You must be signed in to change notification settings

Brancieq-Paul/Epitech-development-environment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Epitech-development-environment

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 !


Table of content

Docker desktop

You first need to install Docker Desktop on you pc. You can follow the instructions here.


Your project in Epitech (Marvin) environment

1) Put the .docker file in your project

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

2) Create a new Dev Environment from Docker Desktop

Create a new Dev Environment.

Alt text

Use your project repository as base. The .docker will be read and the Epitech environment set.

Alt text

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 !

Alt text


Problems

ssh-add is not working

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)

I need to get the name of the docker container

Clic on the docker container in Docker Desktop then you can select and copy the name:

Alt text

Alt text

I need an external shell in my project directory

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

I need to import files into my docker

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)

About

Develop and run your epitech project like Marvin in any os ! A development environment based on the official epitech docker.

Topics

Resources

Stars

Watchers

Forks