Skip to content

hunterkirk/rv-rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rv-rails

This project demonstrates using the rv package manager to set up a Ruby development environment with Rails 8.1.1 in a slim Debian Trixie container.

Features

  • Slim Debian Container: Built on Debian Trixie base

  • rv Package Manager: Installs and manages Ruby versions

  • Version Pinning: Pins Ruby 3.4.7 for consistent builds

  • Non-Root User: Secure container setup with dedicated user space

Container Workflow

  1. Builds slim Debian Trixie container

  2. Installs rv package manager

  3. Sets up non-root user environment

  4. Installs and pins Ruby 3.4.7 using rv

  5. Installs Rails gem

  6. Scaffolds a simple Rails app

  7. Starts the Rails server

Makefile Commands

make build # Build multi-platform container
make run # Launch container (accessible at http://localhost:3000)
make shell # Open shell inside container

Quick Start

Build and run

make build
make run
# or you can pull from dockerhub
docker run -it -p 3000:3000 wkirk/rv-rails:0.2.0

About

rv rails in docker

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors