The Goal: Run an Integrated Development Environment (IDE) on your PC/Mac using a Docker image to compile and run programs without needing internet access.

System Requirements and Setup

  • Docker
  • Visual Studio Code (VSC): This is the IDE, you will be working with.

Docker

See the instructions at CSS Remote Linux Lab Docker Image to install Docker with cssimage.

You should now be able to start a shell in Docker using:
$ docker exec -it NETIDLinuxMachine /bin/bash

Visual Studio Code (the IDE)

  • Download and install Visual Studio Code (VSC) from this link
  • Install Remote Development extension to VSC from this link

Compiling and running “Hello World”

  1. Make sure the Docker container is running. If not, use the command above to start it
  2. Run VSC
  3. In VSC, click on Remote Development extension. This should give you a list of running containers
  4. In VSC, right-click on cssimages container and choose “Attach Visual Studio Code”

5. In the new VSC window, confirm that VSC is using the container.

6. You can now create main.cpp, type in your program and compile it with g++ *.cpp and execute it with ./a.out