{"id":17334471,"url":"https://github.com/marshallasch/cdev","last_synced_at":"2026-02-17T00:31:43.214Z","repository":{"id":37025768,"uuid":"214839893","full_name":"MarshallAsch/cDev","owner":"MarshallAsch","description":"A docker image to debug C programs on Mac","archived":false,"fork":false,"pushed_at":"2025-08-23T04:21:07.000Z","size":35,"stargazers_count":1,"open_issues_count":8,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-09T21:39:02.398Z","etag":null,"topics":["c","docker","mac"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MarshallAsch.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}},"created_at":"2019-10-13T15:00:31.000Z","updated_at":"2022-01-08T23:35:16.000Z","dependencies_parsed_at":"2024-12-19T21:28:03.314Z","dependency_job_id":"e407bdaa-6e55-4842-a3ef-af721bcb5ec3","html_url":"https://github.com/MarshallAsch/cDev","commit_stats":{"total_commits":18,"total_committers":2,"mean_commits":9.0,"dds":0.05555555555555558,"last_synced_commit":"0ada54d74d320e2191300286dbd015c9feb13372"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/MarshallAsch/cDev","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarshallAsch%2FcDev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarshallAsch%2FcDev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarshallAsch%2FcDev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarshallAsch%2FcDev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MarshallAsch","download_url":"https://codeload.github.com/MarshallAsch/cDev/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarshallAsch%2FcDev/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29526695,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T21:45:09.491Z","status":"ssl_error","status_checked_at":"2026-02-16T21:44:58.452Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["c","docker","mac"],"created_at":"2024-10-15T15:06:10.917Z","updated_at":"2026-02-17T00:31:43.183Z","avatar_url":"https://github.com/MarshallAsch.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n![GitHub](https://img.shields.io/github/license/marshallasch/cDev?style=plastic)\n![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/marshallasch/cdev?style=plastic)\n![Docker Pulls](https://img.shields.io/docker/pulls/marshallasch/cdev?style=plastic)\n\n\n# C Development\n\nThis docker container contains a bunch of the C development tools needed to build a program.\nOn MacOS 10.14.6 `valgrind` and `gdb` do not work, so I have made this useful docker image where\nyou can debug a C program from a directory on the host machine.\n\nThis container is based on Debian and contains:\n\n- gcc\n- g++\n- gdb\n- make\n- valgrind\n- git\n\n\n## Building\n\nTo build the container run\n\n```bash\ndocker build \\\n    --build-arg VCS_REF=$(git rev-parse -q --verify HEAD) \\\n    --build-arg BUILD_DATE=$(date -u +\"%Y-%m-%dT%H:%M:%SZ\") \\\n    -t cdev .\n```\n\n## Usage\n\n\n\n```bash\n$ docker pull marshallasch/cdev\n$ docker run -v \u003cpath to dir on host\u003e:/code -it marshallasch/cdev\n```\n\n\nWhere the `\u003cpath to dir on host\u003e` is the directory that contains the code that you wish to test.\nThe folder will be mounted at `/code`. *NOTE: that any changes made to the files in the docker container\nwill also be on the host machine.*\n\n\n\n## Alias function\n\nHere is a useful little bash function to save time when writing out the long command. You can put this in your `~/.bash_profile`\nfile.\n\n\n```\nfunction cDev() {\n\n    PASSED=$1\n\n    echo \"\"\n\n    if [[ !  -d $PASSED ]]; then\n        echo \"$PASSED  must be a directory\"\n        return 1\n    fi\n\n    docker pull marshallasch/cdev\n\n    if [[ $? -ne 0 ]]; then\n        echo \"Docker not running.... starting....\"\n        open /Applications/Docker.app\n        sleep 5\n        docker pull marshallasch/cdev\n    fi\n\n    echo \"starting c dev environment\"\n\n    docker run -v \"$PASSED:/code\" -it marshallasch/cdev\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarshallasch%2Fcdev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarshallasch%2Fcdev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarshallasch%2Fcdev/lists"}