Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thewalkingtoast/ruby-jemalloc
Docker images of common/recent Rubies built with jemalloc which are suitable for either web app or background processing servers.
https://github.com/thewalkingtoast/ruby-jemalloc
docker ruby
Last synced: 15 days ago
JSON representation
Docker images of common/recent Rubies built with jemalloc which are suitable for either web app or background processing servers.
- Host: GitHub
- URL: https://github.com/thewalkingtoast/ruby-jemalloc
- Owner: thewalkingtoast
- Created: 2021-03-19T21:14:31.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-07-04T22:02:13.000Z (over 1 year ago)
- Last Synced: 2024-10-25T02:04:53.476Z (2 months ago)
- Topics: docker, ruby
- Language: Dockerfile
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README #
This provides an Ubuntu 20.04 base build of Ruby from source (using ruby-build) with jemalloc.
The default `RUBY_VERSION` is Ruby 2.6.10.
## Building Ruby 2.6
```bash
docker build -t mediapingllc/ruby-jemalloc:2.6.10 .
```## Building Ruby 2.5
```bash
docker build -t mediapingllc/ruby-jemalloc:2.5.9 --build-arg RUBY_VERSION=2.5.9 .
```## Building Ruby 2.4
```bash
docker build -t mediapingllc/ruby-jemalloc:2.4.10 --build-arg RUBY_VERSION=2.4.10 .
```## Using
Sample Dockerfile:
```bash
FROM mediapingllc/ruby-jemalloc:2.6.10ARG RUBY_VERSION=2.6.10
ARG BUNDLER_VERSION=1.17.3
ENV LANG=C.UTF-8
ENV DEBIAN_FRONTEND=noninteractiveRUN apt-get update && \
apt-get install -y libmysqlclient-dev && \
apt-get auto-remove -y && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*;EXPOSE 3000
WORKDIR /app
COPY Gemfile /app/
COPY Gemfile.lock /app/RUN gem install bundler && \
bundle install --without development test --jobs `expr $(cat /proc/cpuinfo | grep -c "cpu cores") - 1` --retry 3;COPY . /app
# start the app
CMD ["bundle", "exec", "rails", "server"]
```