Sign inSign up

lingfeishengtian/rails-postgres

By lingfeishengtian

•Updated over 1 year ago

Ruby on Rails development environment with Heroku.

Image
0

987

lingfeishengtian/rails-postgres repository overview

⁠Ruby on Rails Docker Image

This Docker image is designed for Ruby on Rails development and includes essential dependencies and tools. It is built with support for ARM architecture, making it suitable for development on Macs. Additionally, it comes with the Heroku CLI pre-installed.

⁠Features

  • Ruby 3.1.2: Based on the official Ruby Alpine image.
  • PostgreSQL: Includes PostgreSQL client and server for database management.
  • Node.js: Installed via NodeSource for compatibility.
  • Yarn: Installed for managing JavaScript dependencies.
  • Heroku CLI: Pre-installed for deploying applications to Heroku.
  • ARM Support: Built with ARM architecture support for Macs.

⁠Usage

To build the Docker image:

docker build -t ruby-on-rails .

To run the Docker container:

docker run -it --volume "${PWD}:/directory" -e DATABASE_USER=<USER> -e DATABASE_PASSWORD=<PASS> -p 3000:3000 lingfeishengtian/rails-postgres

⁠Environment Variables

  • RAILS_ENV=development
  • PGDATA=/var/lib/postgresql/data
  • DATABASE_USER=<USER>
  • DATABASE_PASSWORD=<PASS>

⁠Exposed Ports

  • 3000: Default port for Rails server.

This image provides a robust environment for Ruby on Rails development, with all necessary tools and dependencies pre-configured.

Made for CSCE 431 at TAMU.

Tag summary

Content type

Image

Digest

sha256:405993baf…

Size

503.3 MB

Last updated

over 1 year ago

docker pull lingfeishengtian/rails-postgres