{"id":13792126,"url":"https://github.com/grouville/valgrind_42","last_synced_at":"2025-03-21T10:41:32.815Z","repository":{"id":39906659,"uuid":"317931771","full_name":"grouville/valgrind_42","owner":"grouville","description":"Dockerfile that includes Valgrind, Vim and Clang for corrections","archived":false,"fork":false,"pushed_at":"2023-05-19T23:11:19.000Z","size":7,"stargazers_count":53,"open_issues_count":1,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-26T07:11:24.682Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/grouville.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}},"created_at":"2020-12-02T17:00:58.000Z","updated_at":"2025-01-24T11:29:52.000Z","dependencies_parsed_at":"2024-01-07T05:09:23.432Z","dependency_job_id":"c928ad7d-18bc-4d3e-864d-c476c304a20e","html_url":"https://github.com/grouville/valgrind_42","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grouville%2Fvalgrind_42","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grouville%2Fvalgrind_42/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grouville%2Fvalgrind_42/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grouville%2Fvalgrind_42/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grouville","download_url":"https://codeload.github.com/grouville/valgrind_42/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244780384,"owners_count":20509355,"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":"2024-08-03T22:01:08.550Z","updated_at":"2025-03-21T10:41:32.783Z","avatar_url":"https://github.com/grouville.png","language":"Dockerfile","funding_links":[],"categories":["Resources","Tools"],"sub_categories":["Leakage Protection","Containers and VMs"],"readme":"# valgrind_42\nDockerfile that includes Valgrind, Vim and Clang for corrections\n\nThis Dockerfile will be very usefull when you want to use Valgrind. As you may have realized, Valgrind doesn't work on newer versions of Mac OS, that's why this Dockerfile exists.\n\n**\u003cu\u003eHow to use this git ?\u003c/u\u003e**\n\n\n\n\u003e Prerequisite : Run the docker app present in your Mac (or MSC)\n\n```bash\n$ git clone https://github.com/grouville/valgrind_42.git\n$ cd valgrind_42\n# This command creates the image with the latest Ubuntu. You'll only have to run this command the first time !\n$ docker build -t $(whoami)/valgrind .\n# We need to go to the directory of the project we want inside the container\n$ cd PATH_TO_PROJECT\n# This command runs the container, with the content of the current folder in the /valgrind PATH inside the container\n$ docker run -d -it -v `pwd`:/valgrind/ --name $USER-valgrind $(whoami)/valgrind\n# Then, on another terminal/ window, you can run this command, which will connect a shell inside the container :\n$ docker exec -it $USER-valgrind bash\n\n# You can check the status of the containers with this command (on your host machine) :\n$ docker ps\n\u003e CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES\n\u003e 2f41454ac0b9        home/valgrind       \"/bin/bash\"         13 minutes ago      Up 13 minutes                           eager_einstein\n\n\n```\n\n**\u003cu\u003eFor graphical projects needing to open a window\u003c/u\u003e**\n\nPlease follow the next steps so that your docker image can open windows.\n\n1. Launch XQuartz (software is already installed in 42's sessions)\n2. Go to XQuartz \u003e Preferences... \u003e Security tab, and check the \"Allow connections from network clients\" option\n3. Quit \u0026 restart XQuartz (to activate the setting)\n4. Enable authorisation for localhost for X11 forwarding by entering in a shell (on the host not the docker image)\n```bash\n$ xhost + 127.0.0.1\n```\n5. In your docker image's shell (see paragraph above, after docker run ... \u0026 docker exec ...), run the command\n```bash\n$ export DISPLAY=host.docker.internal:0\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrouville%2Fvalgrind_42","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrouville%2Fvalgrind_42","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrouville%2Fvalgrind_42/lists"}