Skip to content

Instantly share code, notes, and snippets.

View andreleoni's full-sized avatar
🎮
playing software development

André Luiz Leoni andreleoni

🎮
playing software development
View GitHub Profile
@andreleoni
andreleoni / Dockerfile
Created August 26, 2017 02:40
my default dockerfile
FROM ruby:2.4.1-slim
RUN apt-get update && apt-get install -qq -y --no-install-recommends \
build-essential nodejs libpq-dev imagemagick
ENV INSTALL_PATH /my_app
RUN mkdir -p $INSTALL_PATH
WORKDIR $INSTALL_PATH
@andreleoni
andreleoni / create_rails_app_with_docker
Last active August 26, 2017 02:38
create rails project by docker
docker run -it --rm --user "$(id -u):$(id -g)" -v "$PWD":/usr/src/app -w /usr/src/app rails rails new --skip-bundle my_app --database=postgresql
require 'rails_helper'
RSpec.describe TodosController, :type => :controller do
describe "GET #index" do
#describe "POST #create" do
#describe "GET #show" do
#describe "PATCH #update" do (or PUT #update)
#describe "DELETE #destroy" do
#describe "GET #new" do
.user-image {
width: 32px;
height: 32px;
border-radius: 50%;
background-color: #3c8dbc;
display: flex;
justify-content: center;
align-items: center;
font-size: 16px;
color: white;