iGhost / dockerizing-ruby

Dockerizing Ruby Tutorial

Home Page:https://semaphoreci.com/community/tutorials/dockerizing-a-ruby-on-rails-application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dockerizing Ruby Tutorial

Local setup

Prepare environment, for dev version you can use the example environment:

$ cp env-example .env

Start the server:

$ docker-compose up --build

Browse http://localhost:8020

Production image

Prepare production environment, set you production values:

$ cp env-example .env

Build two images:

  • drkiq: application
  • nginx: http server
$ docker build --build-arg USER_ID=$(id -u) --build-arg GROUP_ID=$(id -g) -t $DOCKER_USERNAME/dockerizing-ruby-drkiq:latest -f Dockerfile.production .
$ docker build --build-arg USER_ID=$(id -u) --build-arg GROUP_ID=$(id -g) -t $DOCKER_USERNAME/dockerizing-ruby-nginx:latest -f Dockerfile.nginx .

About

Dockerizing Ruby Tutorial

https://semaphoreci.com/community/tutorials/dockerizing-a-ruby-on-rails-application

License:MIT License


Languages

Language:Ruby 71.7%Language:HTML 14.3%Language:JavaScript 9.3%Language:Dockerfile 2.5%Language:CSS 2.2%