Sign inSign up

akito13/nim

By akito13

•Updated about 2 years ago

Multi-Arch Nim Docker Image for linux/ppc64le, linux/arm/v7, linux/arm64/v8 & linux/amd64.

Image
0

10K+

akito13/nim repository overview

⁠Source Code on Github⁠

Docker Image Version (latest semver)

Upstream

GitHub Liberapay patrons

⁠How

Semver tags are referring to the Nim version contained in that particular image.

⁠Get

⁠Latest build
docker pull akito13/nim
⁠Fixed version
docker pull akito13/nim:2.0.0

Tags follow semver, without the v. Git tags equal Docker tags, so no need to check tags explicitly on Docker Hub.

⁠Build

⁠Build yourself
bash docker-build.sh

⁠Run

⁠Create Test File
echo 'import std/json; echo """{"hello":"test"}""".parseJson.pretty' > t.nim
⁠Rootless

If you simply need to compile something, always use the rootless image.

docker run -itv "$PWD:/cwd" --rm akito13/nim:2.0.0-rootless bash -c "nim c -r /cwd/t.nim && rm /cwd/t"
⁠Root

If you compile or install something, which depends on libraries installed through apt or otherwise need root access, you can use the root based image.

docker run -it --rm akito13/nim:2.0.0 bash -c "apt update && apt install -y libncurses-dev && nimble install -y moe"

You may also run the rootless image as root, if you don't want to download an additional image & instead re-use the already existing rootless one.

docker run -it --rm --user root akito13/nim:2.0.0-rootless bash -c "apt update && apt install -y libncurses-dev && nimble install -y moe"
⁠Alpine

You may also use the Alpine⁠ based images.

docker run -it --rm akito13/nim:2.0.0-alpine sh -c "apk --no-cache add ncurses-dev pcre && nimble install -y moe"

Tag summary

Content type

Image

Digest

sha256:dd834a8a2…

Size

80.8 MB

Last updated

about 2 years ago

docker pull akito13/nim