{"id":21070731,"url":"https://github.com/microbit-foundation/micropython-build-env","last_synced_at":"2026-04-28T09:02:12.750Z","repository":{"id":58264508,"uuid":"149587127","full_name":"microbit-foundation/micropython-build-env","owner":"microbit-foundation","description":"Replicable build environment for MicroPython","archived":false,"fork":false,"pushed_at":"2023-10-30T16:17:55.000Z","size":44,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T21:56:45.599Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","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/microbit-foundation.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":"2018-09-20T09:44:46.000Z","updated_at":"2022-08-30T22:45:13.000Z","dependencies_parsed_at":"2023-01-25T10:50:10.780Z","dependency_job_id":"f8a5cff7-3c35-4b02-8bec-6b2eea725cbb","html_url":"https://github.com/microbit-foundation/micropython-build-env","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microbit-foundation%2Fmicropython-build-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microbit-foundation%2Fmicropython-build-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microbit-foundation%2Fmicropython-build-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microbit-foundation%2Fmicropython-build-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microbit-foundation","download_url":"https://codeload.github.com/microbit-foundation/micropython-build-env/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243513807,"owners_count":20303012,"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-19T18:48:08.588Z","updated_at":"2025-12-28T10:12:06.703Z","avatar_url":"https://github.com/microbit-foundation.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MicroPython Replicable Build Environment\n\nReplicable build environment for MicroPython\n\n## Instructions\n\n### Build docker image\n\nBuild the docker image, you can overwrite the default versions by setting the\n `VERSION_V1` and `VERSION_V2` arguments with a MicroPython git tag:\n\n```\ndocker build -t \"ubit-upy-img\" --build-arg VERSION_V1=v1.0.0 --build-arg VERSION_V2=v2.0.0 .\n```\n\nEither of the builds can be skipped by passing the \"skip\" string to the\nversion build argument, e.g. `--build-arg VERSION_V1=skip`\n\nFor better traceability it's recommendable to save the build output, so preferably do:\n\n```\ndocker build -t \"ubit-upy-img\" --build-arg VERSION_V1=v1.0.0 --build-arg VERSION_V2=v2.0.0 . 2\u003e\u00261 | tee docker_build_op.txt\n```\n\n### Copy files from docker to host\n\n```\ndocker run --name ubit-upy-container ubit-upy-img\ndocker cp ubit-upy-container:/home/artefacts .\n```\n\n\n### Save docker image\n\n```\ndocker save ubit-upy-img \u003e ubit-upy-img.tar\ngzip -c ubit-upy-img.tar \u003e ubit-upy-img.tar.gz\n```\n\n### Load docker image\n\n```\ngzip -d ubit-upy-img.tar.gz\ndocker load \u003c ubit-upy-img.tar\ndocker image ls -a\n```\n\n## Tips\n\nTo run a bash session in a new container from an existing Docker image:\n\n```\ndocker run -it --entrypoint /bin/bash ubit-upy-img\n```\n\n## License\n\nThe contents of this repository are released under the [MIT LICENse](LICENSE).\n\nSPDX-License-Identifier: MIT\n\n## Code of Conduct\n\nTrust, partnership, simplicity and passion are our core values we live and\nbreathe in our daily work life and within our projects.\nOur open-source projects are no exception.\nWe have an active community which spans the globe and we welcome and encourage\nparticipation and contributions to our projects by everyone.\nWe work to foster a positive, open, inclusive and supportive environment and\ntrust that our community respects the micro:bit code of conduct.\nPlease see our [code of conduct](https://microbit.org/safeguarding/)\nwhich outlines our expectations for all those that participate in ou\ncommunity and details on how to report any concerns and what would happen\nshould breaches occur.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrobit-foundation%2Fmicropython-build-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrobit-foundation%2Fmicropython-build-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrobit-foundation%2Fmicropython-build-env/lists"}