All Projects → pacuna → rails5-docker-alpine

pacuna / rails5-docker-alpine

Licence: other
Lightweight Docker development environment for Rails using Alpine Linux

Programming Languages

Dockerfile
14818 projects

Projects that are alternatives of or similar to rails5-docker-alpine

pi-factory
Bootstrap a bitcoin lightning box for Raspberry Pi 3 based on Alpine Linux
Stars: ✭ 17 (-76.06%)
Mutual labels:  alpine, alpine-linux
alpine-prestashop
Prestashop running on Alpine Linux [Docker]
Stars: ✭ 13 (-81.69%)
Mutual labels:  alpine, alpine-linux
headless-chrome-alpine
A Docker container running headless Chrome
Stars: ✭ 26 (-63.38%)
Mutual labels:  alpine, alpine-linux
docker-node-ci
The Docker image based on the official "node" image optimized for a CI environment
Stars: ✭ 18 (-74.65%)
Mutual labels:  alpine, alpine-linux
alpinist
Automatic Alpine Linux Package (apk) Repository Generation using AWS Lambda, S3 & SSM Parameter Store
Stars: ✭ 45 (-36.62%)
Mutual labels:  alpine, alpine-linux
docker-dataset
Docker database images with pre-populated data for testing and/or practice.
Stars: ✭ 35 (-50.7%)
Mutual labels:  lightweight, alpine
alpine-php-fpm
Lightweight and optimised PHP-FPM (PHP 7.4, 8.0, 8.1) Docker images with essential extensions on top of latest Alpine Linux.
Stars: ✭ 53 (-25.35%)
Mutual labels:  alpine, alpine-linux
Pieman
Script for creating custom OS images for single-board computers
Stars: ✭ 149 (+109.86%)
Mutual labels:  alpine, alpine-linux
alpine-php-wordpress
Wordpress running on Alpine Linux [Docker]
Stars: ✭ 30 (-57.75%)
Mutual labels:  alpine, alpine-linux
docker-geoserver
A basic docker geoserver image with JAI and marlin renderer running on tomcat
Stars: ✭ 17 (-76.06%)
Mutual labels:  alpine, alpine-linux
alpine-qbittorrent-openvpn
qBittorrent docker container with OpenVPN client running as unprivileged user on alpine linux
Stars: ✭ 230 (+223.94%)
Mutual labels:  alpine, alpine-linux
docker-nagios
Docker image for Nagios Core in Alpine Linux with basic plugins, available for x86, x64 , ARM v6, ARM v7 and ARM64.
Stars: ✭ 33 (-53.52%)
Mutual labels:  alpine, alpine-linux
http-server
A Java HTTP server in 35MB Docker image
Stars: ✭ 17 (-76.06%)
Mutual labels:  alpine, alpine-linux
docker-alpine-sshd
A lightweight OpenSSH Docker Image built atop Alpine Linux.
Stars: ✭ 108 (+52.11%)
Mutual labels:  alpine, alpine-linux
Termuxalpine
Use TermuxAlpine.sh calling to install Alpine Linux in Termux on Android. This setup script will attempt to set Alpine Linux up in your Termux environment.
Stars: ✭ 224 (+215.49%)
Mutual labels:  alpine, alpine-linux
docker-dind-awscli
A Docker image for Docker-in-Docker (dind) with AWS CLI v2 awscli tool included
Stars: ✭ 36 (-49.3%)
Mutual labels:  alpine, alpine-linux
Docker Oidc Proxy
Docker Image built on Alpine Linux for secure OpenID Connect (OIDC) proxy authentication
Stars: ✭ 91 (+28.17%)
Mutual labels:  alpine, alpine-linux
Docker Rails Base
Optimized Docker base images for Rails applications
Stars: ✭ 120 (+69.01%)
Mutual labels:  alpine, ruby-on-rails
docker flutter
Alpine Linux image for Flutter & Dart with helpful utils and web build support.
Stars: ✭ 33 (-53.52%)
Mutual labels:  alpine, alpine-linux
alpine-buildpack-deps
An attempt at a "buildpack-deps"-like Docker image with Alpine Linux
Stars: ✭ 30 (-57.75%)
Mutual labels:  alpine, alpine-linux

rails5-docker-alpine

This is a very lightweight Docker image based on Ruby Alpine to run a Rails 5 application. I also provide a docker-compose file to run your project using a PostgreSQL database.

Trying out the image

Clone the repository:

git clone [email protected]:pacuna/rails5-docker-alpine.git

Create a new Rails application under the repository directory

cd rails-docker-alpine
rails new . --database=postgresql

Modify your database configuration to use the postgresql container configuration:

default: &default
  adapter: postgresql
  encoding: unicode
  # For details on connection pooling, see rails configuration guide
  # http://guides.rubyonrails.org/configuring.html#database-pooling
  pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
  host: db
  username: postgres

Build the project:

docker-compose build

Create the database and run the migrations:

docker-compose run --rm web bin/rails db:create
docker-compose run --rm web bin/rails db:migrate

Run the app:

docker-compose up -d

Visit your application at localhost:3000.

Tested with:

  • Ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]
  • Rails 5.2.2 (to create the new application)
  • Docker version 18.09.0, build 4d60db4
  • docker-compose version 1.23.1, build b02f1306
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].