{"id":22443326,"url":"https://github.com/theakito/docker-nim","last_synced_at":"2025-08-01T18:34:13.888Z","repository":{"id":199796190,"uuid":"703771597","full_name":"theAkito/docker-nim","owner":"theAkito","description":"Multi-Arch Nim Docker Image for linux/ppc64le, linux/arm/v7, linux/arm64/v8 \u0026 linux/amd64.","archived":false,"fork":false,"pushed_at":"2024-09-06T20:12:39.000Z","size":56,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-09-06T23:45:59.417Z","etag":null,"topics":["arm64","docker","linux","nim"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/theAkito.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":"2023-10-11T22:14:27.000Z","updated_at":"2024-09-06T20:12:42.000Z","dependencies_parsed_at":"2024-06-10T16:19:19.639Z","dependency_job_id":"c48f82db-6a68-4192-a2b0-7918c3ad3464","html_url":"https://github.com/theAkito/docker-nim","commit_stats":null,"previous_names":["theakito/docker-nim"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theAkito%2Fdocker-nim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theAkito%2Fdocker-nim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theAkito%2Fdocker-nim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theAkito%2Fdocker-nim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theAkito","download_url":"https://codeload.github.com/theAkito/docker-nim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228399861,"owners_count":17913860,"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":["arm64","docker","linux","nim"],"created_at":"2024-12-06T02:27:37.858Z","updated_at":"2024-12-06T02:27:38.532Z","avatar_url":"https://github.com/theAkito.png","language":"Shell","readme":"![Docker Image Version (latest semver)](https://img.shields.io/docker/v/akito13/nim?style=plastic)\n\n![Docker Stars](https://img.shields.io/docker/stars/akito13/nim?style=plastic)\n![Docker Pulls](https://img.shields.io/docker/pulls/akito13/nim?style=plastic)\n\n![Docker Image Size (latest semver)](https://img.shields.io/docker/image-size/akito13/nim?style=plastic)\n![Docker Cloud Automated build](https://img.shields.io/docker/cloud/automated/akito13/nim?style=plastic)\n\n[![Upstream](https://img.shields.io/badge/upstream-project-yellow?style=plastic)](https://github.com/nim-lang/Nim)\n\n![GitHub](https://img.shields.io/github/license/theAkito/docker-nim?style=plastic)\n![Liberapay patrons](https://img.shields.io/liberapay/patrons/Akito?style=plastic)\n\n## What\nNim compiler in Docker images, but with support for multiple platforms.\n\n## Why\nThe current official [Nimage](https://github.com/moigagoo/nimage) only supports [`linux/amd64` builds](https://hub.docker.com/r/nimlang/nim/tags).\nThis one supports at least the following platforms, based on what the [Ubuntu base images](https://hub.docker.com/_/ubuntu/tags) support.\n\n```\nlinux/ppc64le\nlinux/arm/v7\nlinux/arm64/v8\nlinux/amd64\n```\n\nThe [Alpine based images](https://hub.docker.com/_/alpine/tags) support the following architectures.\n\n```\nlinux/ppc64le\nlinux/arm/v7\nlinux/arm64/v8\nlinux/amd64\n```\n\n## How\nSemver tags are referring to the Nim version contained in that particular image.\n\n## Get\n#### Latest build\n```bash\ndocker pull akito13/nim\n```\n#### Fixed version\n```bash\ndocker pull akito13/nim:2.0.8\n```\nTags follow semver, without the `v`.\nGit tags equal Docker tags, so no need to check tags explicitly on Docker Hub.\n\n## Build\n#### Build yourself\n```bash\nbash docker-build.sh\n```\n\n## Run\n\n#### Create Test File\n```bash\necho 'import std/json; echo \"\"\"{\"hello\":\"test\"}\"\"\".parseJson.pretty' \u003e t.nim\n```\n\n#### Rootless\nIf you simply need to compile something, always use the rootless image.\n\n```bash\ndocker run -itv \"$PWD:/cwd\" --rm akito13/nim:2.0.8-rootless bash -c \"nim c -r /cwd/t.nim \u0026\u0026 rm /cwd/t\"\n```\n\n#### Root\nIf you compile or install something, which depends on libraries installed through `apt` or otherwise need root access, you can use the `root` based image.\n\n```bash\ndocker run -it --rm akito13/nim:2.0.8 bash -c \"apt update \u0026\u0026 apt install -y libncurses-dev \u0026\u0026 nimble install -y moe\"\n```\n\nYou may also run the rootless image as `root`, if you don't want to download an additional image \u0026 instead re-use the already existing rootless one.\n\n```bash\ndocker run -it --rm --user root akito13/nim:2.0.8-rootless bash -c \"apt update \u0026\u0026 apt install -y libncurses-dev \u0026\u0026 nimble install -y moe\"\n```\n\n### Alpine\nYou may also use the [Alpine](https://www.alpinelinux.org/) based images.\n\n```sh\ndocker run -it --rm akito13/nim:2.0.8-alpine sh -c \"apk --no-cache add ncurses-dev pcre \u0026\u0026 nimble install -y moe\"\n```\n\n\n## License\nCopyright © 2022-2024  Akito \u003cthe@akito.ooo\u003e\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program.  If not, see \u003chttps://www.gnu.org/licenses/\u003e.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheakito%2Fdocker-nim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheakito%2Fdocker-nim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheakito%2Fdocker-nim/lists"}