{"id":20640128,"url":"https://github.com/maresb/micromamba-role-example","last_synced_at":"2026-06-06T15:04:03.192Z","repository":{"id":107327193,"uuid":"424342474","full_name":"maresb/micromamba-role-example","owner":"maresb","description":null,"archived":false,"fork":false,"pushed_at":"2021-11-27T13:14:40.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-17T08:35:56.345Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/maresb.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":"2021-11-03T18:44:53.000Z","updated_at":"2024-05-08T23:14:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"a5cca199-da3c-481a-997f-7282657db5aa","html_url":"https://github.com/maresb/micromamba-role-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-role-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maresb%2Fmicromamba-role-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maresb%2Fmicromamba-role-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maresb%2Fmicromamba-role-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maresb","download_url":"https://codeload.github.com/maresb/micromamba-role-example/tar.gz/refs/heads/master","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:03.472Z","updated_at":"2026-06-06T15:04:03.163Z","avatar_url":"https://github.com/maresb.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# micromamba-role-example\n\n## Intro\n\nHere's how I use the [micromamba role](https://github.com/mamba-org/ansible-role-micromamba) to bootstrap from Ubuntu's Ansible to conda-forge's Ansible, and set up a root-owned base environment.\n\nUsers with sudo enabled can `sudo mamba install` into the base environment.\n\nOtherwise, users are suggested to `mamba env create` their own environment.\n\n## Building and running\n\n```bash\ndocker build -t micromamba-role-example .\ndocker run --rm -it micromamba-role-example\n```\n\nThen you can for example run\n\n```bash\nmamba activate myenv\ns3fs --version\n```\n\n## Design choices\n\n### Failed admin group for base environment\n\nI originally wanted /opt/conda to be writable by the group `condaadmins` and tried\n\n```bash\nchgrp -R condaadmins /opt/conda\nchmod -R g+rwX /opt/conda\nfind /opt/conda -type d -exec chmod g+s {} \\;\n```\n\nBut unfortunately when conda extracts freshly installed packages, they are not group writeable. Thus this leads to breakage.\n\n### Alternative user init\n\nI have [an idempotent script](alternative-user-init.sh) for updating `/etc/skel` which creates a temporary user, runs `conda init` and `mamba init`, and then copies the resulting `.bashrc` back to `/etc/skel`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaresb%2Fmicromamba-role-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaresb%2Fmicromamba-role-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaresb%2Fmicromamba-role-example/lists"}