{"id":20640118,"url":"https://github.com/maresb/micromamba-devcontainer-example","last_synced_at":"2025-09-13T06:33:45.169Z","repository":{"id":65282323,"uuid":"469620030","full_name":"maresb/micromamba-devcontainer-example","owner":"maresb","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-13T21:28:19.000Z","size":285,"stargazers_count":17,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-17T08:35:56.385Z","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/maresb.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":"2022-03-14T07:14:32.000Z","updated_at":"2024-12-19T13:51:33.000Z","dependencies_parsed_at":"2023-11-29T23:24:28.646Z","dependency_job_id":"8c8fe854-bec3-456f-b0e0-655cb8be8020","html_url":"https://github.com/maresb/micromamba-devcontainer-example","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/maresb%2Fmicromamba-devcontainer-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maresb%2Fmicromamba-devcontainer-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maresb%2Fmicromamba-devcontainer-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maresb%2Fmicromamba-devcontainer-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maresb","download_url":"https://codeload.github.com/maresb/micromamba-devcontainer-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242679511,"owners_count":20168163,"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-11-16T15:28:01.898Z","updated_at":"2025-03-09T11:06:33.166Z","avatar_url":"https://github.com/maresb.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# micromamba-devcontainer-example\n\nThis is an example project which uses [micromamba-devcontainer](https://github.com/maresb/micromamba-devcontainer). The `.devcontainer` folder was created using [Cruft](https://github.com/cruft/cruft) with [cookiecutter-micromamba-devcontainer](https://gitlab.com/bmares/cookiecutter-micromamba-devcontainer).\n\n## Links\n\n* This project's [GitHub repository](https://github.com/maresb/micromamba-devcontainer-example)\n* The [micromamba-devcontainer](https://github.com/maresb/micromamba-devcontainer) base Docker image\n* The [cookiecutter-micromamba-devcontainer](https://github.com/maresb/cookiecutter-micromamba-devcontainer) template for the `.devcontainer` folder\n* [Cruft](https://github.com/cruft/cruft) for creating and updating projects from Cookiecutter templates\n\n## Deploying with an existing project\n\n* Install [Cruft](https://github.com/cruft/cruft) (also manages updates) or [Cookiecutter](https://cookiecutter.readthedocs.io/en/stable/installation.html).\n* Create `.devcontainer` in the project root by running the command\n\n  ```bash\n  cruft create https://github.com/maresb/cookiecutter-micromamba-devcontainer\n  ```\n\n  or\n\n  ```bash\n  cookiecutter https://github.com/maresb/cookiecutter-micromamba-devcontainer\n  ```\n\n  You will be asked values for the following variables, which are stored in [`.devcontainer/.cruft.json`](.devcontainer/.cruft.json):\n\n  * `package_name`: The name of the main package of your project, as you would `import` it from Python.\n  * `timezone`: The [timezone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) to configure in the devcontainer.\n  * `packages_dir`: The directory where `package_name` is located (often `src`), or `.` for the project root.\n\n* The project root should contain the subdirectory `[packages_dir]/[package_name]`, and moreover this subdirectory should contain an `__init__.py` file.\n* Customize `.devcontainer/dev-conda-environment.yaml` with your desired Conda development packages.\n* Customize `.devcontainer/dev.Dockerfile` to install (a skeleton of) your project, preferrably in editable mode (e.g. `pip install -e .`). This way the project dependencies will be installed in the devcontainer.\n* Customize the `extensions` and `settings` in `.devcontainer/devcontainer.json`.\n* Press Ctrl+Shift+P and select \"Remote-Containers: Rebuild and Reopen in Container\", and if all goes well, this will load successfully.\n\n## Troubleshooting / Quickstart\n\nFor more information, see [micromamba-devcontainer](https://github.com/maresb/micromamba-devcontainer#troubleshooting).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaresb%2Fmicromamba-devcontainer-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaresb%2Fmicromamba-devcontainer-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaresb%2Fmicromamba-devcontainer-example/lists"}