https://github.com/stefansundin/dockerfiles
Dockerfiles
https://github.com/stefansundin/dockerfiles
Last synced: 6 months ago
JSON representation
Dockerfiles
- Host: GitHub
- URL: https://github.com/stefansundin/dockerfiles
- Owner: stefansundin
- Created: 2016-03-12T21:23:39.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2025-02-15T15:07:49.000Z (8 months ago)
- Last Synced: 2025-02-15T16:20:14.910Z (8 months ago)
- Language: Ruby
- Homepage: https://hub.docker.com/u/stefansundin
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
https://hub.docker.com/r/stefansundin/ruby/
# Usage
Opt in to Ruby YJIT by setting an environment variable:
```
RUBYOPT="--yjit"
```Validate with:
```shell
$ docker run --rm --pull always -e RUBYOPT="--yjit" -it stefansundin/ruby:3.4 ruby -e "puts RUBY_DESCRIPTION"
ruby 3.4.2 (2025-02-15 revision d2930f8e7a) +YJIT +PRISM [aarch64-linux]
```# Multi-arch build
Warning: Building this can take several hours depending on your hardware.
```shell
# pre-requisite:
docker buildx create --use --name multiarch --node multiarch0# build and push:
# optional arguments: --no-cache
docker buildx build --progress plain --pull --push -f Dockerfile.ruby -t stefansundin/ruby:3.4 --platform linux/amd64,linux/arm64,linux/arm/v7 .
docker buildx build --progress plain --pull --push -f Dockerfile.ruby:jemalloc -t stefansundin/ruby:3.4-jemalloc --platform linux/amd64,linux/arm64,linux/arm/v7 .# run:
docker run --rm -it stefansundin/ruby:3.4 bash
```# Standard build
```shell
docker build --progress plain --pull --no-cache -f Dockerfile.ruby -t stefansundin/ruby:3.4-test .
docker run --rm -it stefansundin/ruby:3.4-test bash
```jemalloc:
```shell
docker build --pull --no-cache --squash -f Dockerfile.ruby:jemalloc -t stefansundin/ruby:3.4-test-jemalloc .
docker run --rm -it stefansundin/ruby:3.4-test-jemalloc bash# validate with:
ruby -r rbconfig -e "puts RbConfig::CONFIG['MAINLIBS']"
```