{"id":23831954,"url":"https://github.com/csdms/bmi-example-c-docker","last_synced_at":"2026-04-29T09:35:05.537Z","repository":{"id":255406812,"uuid":"849515948","full_name":"csdms/bmi-example-c-docker","owner":"csdms","description":"The C BMI example, Dockerized","archived":false,"fork":false,"pushed_at":"2024-09-24T21:12:41.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-01-02T14:16:37.804Z","etag":null,"topics":["bmi","c","csdms","docker"],"latest_commit_sha":null,"homepage":"https://bmi.csdms.io","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/csdms.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":"2024-08-29T18:18:23.000Z","updated_at":"2024-11-22T18:48:48.000Z","dependencies_parsed_at":"2024-08-29T20:55:53.486Z","dependency_job_id":null,"html_url":"https://github.com/csdms/bmi-example-c-docker","commit_stats":null,"previous_names":["csdms/bmi-example-c-docker"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csdms%2Fbmi-example-c-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csdms%2Fbmi-example-c-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csdms%2Fbmi-example-c-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csdms%2Fbmi-example-c-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csdms","download_url":"https://codeload.github.com/csdms/bmi-example-c-docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240118427,"owners_count":19750491,"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":["bmi","c","csdms","docker"],"created_at":"2025-01-02T14:16:43.362Z","updated_at":"2026-04-29T09:35:05.533Z","avatar_url":"https://github.com/csdms.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e [!IMPORTANT]\n\u003e\n\u003e Please see [csdms/bmi-docker](https://github.com/csdms/bmi-docker) for the latest version of the BMI C example built with Docker.\n\n# bmi-example-c-docker\n\nThe [C example](https://github.com/csdms/bmi-example-c)\nfor the [Basic Model Interface](https://bmi.readthedocs.io),\ndockerized.\n\n## Build the image\n\nBuild this example locally with:\n```\ndocker build --tag bmi-example-c .\n```\nThe image is based on the [csdms/bmi](https://hub.docker.com/r/csdms/bmi) image.\nThe OS is Linux/Ubuntu.\n`conda` and `mamba` are installed in `CONDA_DIR=/opt/conda`,\nand the *base* environment is activated.\nThe C BMI specification and example, including the `run_bmiheatc` executable, are installed into it.\n\n## Run a container\n\nRun a container from this image interactively:\n```\ndocker run -it bmi-example-c\n```\nThis starts a bash shell in the container.\nRun the example program `run_bmiheatc` with a configuration file:\n```bash\ncd /tmp\necho \"1.5, 8.0, 6, 5\" \u003e config.txt\nrun_bmiheatc config.txt\n```\nView the program's output with:\n```bash\ncat bmiheatc.out\n```\n\n## Developer notes\n\nA versioned, multiplatform image built from this repository is hosted on Docker Hub\nat [csdms/bmi-example-c](https://hub.docker.com/r/csdms/bmi-example-c/).\nWhen this repository is tagged,\nan image is automatically built and pushed to Docker Hub\nby the [release](./.github/workflows/release.yml) CI workflow.\nTo manually build and push an update, run:\n```\ndocker buildx build --platform linux/amd64,linux/arm64 -t csdms/bmi-example-c:latest --push .\n```\nA user can pull this image from Docker Hub with:\n```\ndocker pull csdms/bmi-example-c\n```\noptionally with the `latest` tag or with a version tag.\n\n## What is the Basic Model Interface?\n\nThe Basic Model Interface (BMI) is a set of functions for querying, modifying, running, and coupling models.\nLearn more at https://bmi.readthedocs.io/.\n\n## Acknowledgment\n\nThis work is supported by the U.S. National Science Foundation under Award No. [2103878](https://www.nsf.gov/awardsearch/showAward?AWD_ID=2103878), *Frameworks: Collaborative Research: Integrative Cyberinfrastructure for Next-Generation Modeling Science*.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsdms%2Fbmi-example-c-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsdms%2Fbmi-example-c-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsdms%2Fbmi-example-c-docker/lists"}