{"id":28827861,"url":"https://github.com/berrij/devenv","last_synced_at":"2025-07-01T14:05:37.735Z","repository":{"id":37710146,"uuid":"288664972","full_name":"BerriJ/devenv","owner":"BerriJ","description":"My dev environment for Python, C++, R, and Latex.","archived":false,"fork":false,"pushed_at":"2024-11-18T12:41:44.000Z","size":1511,"stargazers_count":9,"open_issues_count":0,"forks_count":10,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-11T16:43:32.247Z","etag":null,"topics":["devcontainer","devenv","docker-image"],"latest_commit_sha":null,"homepage":"https://github.com/users/BerriJ/packages/container/devenv/versions","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BerriJ.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2020-08-19T07:33:36.000Z","updated_at":"2025-03-05T01:38:26.000Z","dependencies_parsed_at":"2023-10-02T08:59:27.894Z","dependency_job_id":"5ae08523-a023-4eaa-a637-8d1e885354c0","html_url":"https://github.com/BerriJ/devenv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BerriJ/devenv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BerriJ%2Fdevenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BerriJ%2Fdevenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BerriJ%2Fdevenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BerriJ%2Fdevenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BerriJ","download_url":"https://codeload.github.com/BerriJ/devenv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BerriJ%2Fdevenv/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260684357,"owners_count":23046110,"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":["devcontainer","devenv","docker-image"],"created_at":"2025-06-19T04:14:24.699Z","updated_at":"2025-07-01T14:05:37.725Z","avatar_url":"https://github.com/BerriJ.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VS Code Devcontainer and Docker Image for Coding in R, Python, and Latex\n\nObtain the latest stable image with:\n\n    docker pull ghcr.io/berrij/devenv:latest\n\n## Introduction\n\nThis Ubuntu-based docker image intends to deliver a fully isolated dev environment for Python, R and Latex. Extend it as needed by adding or removing components.\n\nIt is intended that you use this image with a [VS Code Devcontainer](https://code.visualstudio.com/docs/remote/containers). VS Code will automatically install all required extensions for code formatting, linting, execution, and debugging. A `.devcontainer.json` file is included in [this](https://github.com/BerriJ/devenv_devcontainer.json) repository.\n\n## Contents\n\n- R 4.4.X\n- Texlive 2024\n- Python 3.12.X\n\n# Setup using VS-Code\n\n## System requirements\n\n- Install [Git](https://git-scm.com/downloads)\n- Install [VS-Code](https://code.visualstudio.com/)\n- Install [Docker Desktop](https://www.docker.com/get-started)\n\n## Getting Started\n\n- [Fork the berrij/devenv github repository](https://github.com/BerriJ/devenv/fork).\n- Clone the forked repository.\n- Open the repository inside VS Code and install the recommended extensions.\n- VS Code should ask you if you want to reopen the workspace in a container. It will automatically download the latest master build, install extensions, and mount your current workspace.\n\n## SSH and GPG Keys\n\nLook [here](https://code.visualstudio.com/docs/remote/containers#_using-ssh-keys) on how to forward your local keys into the container.\n\n\n# Without VS-Code:\n\nYou may need to run:\n\n    xhost local:root \n\nlocally to grant access to the local x11 display server. This is necessary for R graphics devices to work.\n\n## Run using:\n\n    docker run -it --rm --network=host -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix ghcr.io/berrij/devenv:dev\n\n## Explanation:\n\n    -it             \n    # Interactive Mode, launches a shell\n    \n    --rm            \n    # Automatically remove the container when it exits\n    \n    --network=host  \n    # Configures the network of the Docker container to use   the host network. This is the simplest way to get access to X11\n\n    -e DISPLAY      \n    # Sets the DISPLAY variable to :0. Works ins most cases.\n    \n    -v /tmp/.X11-unix:/tmp/.X11-unix dev_env:latest\n    # Mounts the local .x11 server into the container\n\n# Remove Old Docker Images\n\nYou can check the disk usage of Docker by running:\n\n    docker system df\n\nYou likely want to add a cronjob to delete old docker images and containers. You can do so the following way:\n\nEdit your crontab with:\n\n    crontab -e\n\nThen add the following line:\n\n    0 18 * * 5 /usr/bin/docker system prune --all --volumes --force\n\nThis will remove all unused images not just dangling ones as long as they are older than 10 days.\n\nWhen using this image with the .devcontainer.json as a devcontainer, a local volume `extensions_cache` / `extensions_cache_insiders` will be created for storing container extensions between container runs. If extensions are updated in the .devcontainer.json this volume has to be deleted:\n\n    docker volume rm extensions_cache\n    docker volume rm extensions_cache_insiders\n\n# Issues\n\nIf you encounter issues or you want to propose a feature feel free to open an issue on [GitHub](https://github.com/BerriJ/devenv). \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fberrij%2Fdevenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fberrij%2Fdevenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fberrij%2Fdevenv/lists"}