{"id":26766075,"url":"https://github.com/ucl/rc-cpp-vscode-dev-container","last_synced_at":"2025-09-20T22:14:03.001Z","repository":{"id":53559442,"uuid":"329306497","full_name":"UCL/rc-cpp-vscode-dev-container","owner":"UCL","description":"Docker container definitions for VSCode C++ development environment","archived":false,"fork":false,"pushed_at":"2023-02-20T17:17:15.000Z","size":25,"stargazers_count":7,"open_issues_count":0,"forks_count":7,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-15T12:46:45.249Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UCL.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-01-13T12:49:04.000Z","updated_at":"2025-01-17T15:03:13.000Z","dependencies_parsed_at":"2025-04-15T12:40:55.962Z","dependency_job_id":"f61b1dcf-ceec-4dc0-9db4-b6e0a0e19c57","html_url":"https://github.com/UCL/rc-cpp-vscode-dev-container","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/UCL/rc-cpp-vscode-dev-container","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UCL%2Frc-cpp-vscode-dev-container","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UCL%2Frc-cpp-vscode-dev-container/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UCL%2Frc-cpp-vscode-dev-container/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UCL%2Frc-cpp-vscode-dev-container/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UCL","download_url":"https://codeload.github.com/UCL/rc-cpp-vscode-dev-container/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UCL%2Frc-cpp-vscode-dev-container/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262944690,"owners_count":23388807,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-28T20:19:02.296Z","updated_at":"2025-09-20T22:13:57.934Z","avatar_url":"https://github.com/UCL.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rc-cpp-vscode-dev-container\n\nDocker container definitions for Visual Studio Code C++ development environment\n\nThe Dockerfile inside `.devcontainer` defines an Ubuntu docker image that can be built and linked to as a remote container from within VS code and GitHub codespaces (as well as any other editor that supports the open dev container standard). This means you can use VS Code on your host Mac, Windows, other Linux machine and be able to develop in a self contained environment matching what we recommend for PHAS0100: Ubuntu 22.04, g++ 11 and with other tools like cmake, git, clang-format already installed. \n\n### Visual Studio Code with C++ development environment\n\nTo get setup follow the steps here https://code.visualstudio.com/docs/remote/containers-tutorial to:\n   * Install VS Code on your host machine (Mac, Windows, Linux variant), or use GitHub codespaces\n   * Install Docker Desktop on your host machine and make sure it is running\n   * Open VS Code and add the `Remote - Containers` extension `ms-vscode-remote.remote-containers`\n   * Click on the green remote containers status button at the bottom left of the window\n   * Then to check everything works select the `Remote-Containers: Try a Sample...` and the C++ example\n   * Go through the README.md and suggested things to try to familiarise yourself  \n \nTo use this dev container, you can\n\n- download the `.devcontainer` folder and include it in the root directory of your project\n- Or configure this repository as a [git submodule](https://git-scm.com/book/en/v2/Git-Tools-Submodules) of your main git repository\n\nOnce you have the `.devcontainer` folder in the root directory of your project, you can then open the folder inside VS Code and it should ask if you want to reopen and build the project in the container. To test that it's working, try opening a VS Code terminal and running the command `cat /etc/os-release` and you should see the OS version is Ubuntu 22.04.\n  \n### Using docker without VS Code\n\nIf you just want to try out running from the command line, you can build and run the docker image without using VS Code. Follow the steps above to install Docker Desktop and make sure the app is running. Then clone this repository and from the command line on your host machine run the following to build and then run the docker image. From the folder containing the Dockerfile:\n* `docker build -t phas0100env .`\n* `docker run -it phas0100env /bin/bash`\n\nYou'll then have an interactive terminal on the Ubuntu image where you can try out any shell command.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fucl%2Frc-cpp-vscode-dev-container","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fucl%2Frc-cpp-vscode-dev-container","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fucl%2Frc-cpp-vscode-dev-container/lists"}