-
Install
git
,make
,curl
, anddocker
sudo apt install git make curl curl -sSL https://get.docker.com | sh && sudo usermod -aG docker $USER
and reboot the PC.
-
Clone this repository
# Make sure to have your SSH keys added to GitHub git clone [email protected]:memristor/mep3.git
-
Run provisioning script to pull the image and run the container:
cd ./mep3/docker make all
Time to time you can run
make destroy run
to get the newest packages. -
Wait for the provisioning script to finish
-
Optional: run interactive setup if you prefer to manually configure the container
make setup-interactive
-
Acces the environment from any terminal window
docker exec -it mep3-devel bash
Graphical applications started inside this terminal will use your existing Xorg session to display.
If you prefer to use browser based VS Code, you can start it in the container and then access it locally through your browser at localhost:31415
# This will start the VS code server with your mep3 repo
make start-code-server
# To stop the VS code server
make stop-code-server
- Follow steps in Local development environment, but add
vnc
aftermake
in steps 4 and 6 (eg.make vnc setup
) - Enable VNC preferences in step 6 and wait for the container to restart
- Web-based VNC client will be accessible at
http://localhost:6810/
if you keep default noVNC webserver port - In step 6 replace
mep3-devel
withmep3-vnc
Note: If you are setting up through SSH, make sure to have a running Xorg server on host machine,
and set DISPLAY
environment variable on step 4 to its value (eg :0
).
export DISPLAY=:0
If you happen to have NVIDIA GPUs that you wish to use within these development environments, make sure to have NVIDIA Container Toolkit installed on your system. More info, specific to your distribution here.