Skip to content

Instantly share code, notes, and snippets.

View embs's full-sized avatar

Matheus Santana embs

View GitHub Profile
@embs
embs / Building images with Docker.md
Created June 23, 2017 14:31
Adventures In Containers Land

Start with Docker

I've started trying stuff within my hosting machine so I'd more confidently build an image later. It didn't pay off. Just type inside the Dockerfile instead of the terminal (shell).

Give apprentice steps

Nevermind the [state of the art][minimize-layers] when you're starting off:

@embs
embs / Gemfile
Last active October 19, 2018 14:49
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
ruby '2.3.1'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.2.1'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use Puma as the app server
start = Step.create(name: 'Saudações, aventureiro!',
description: 'Cuidado por onde anda. Esta terra
está repleta de abismos e feras perigosas.')
precipice = Step.create(name: 'Você caiu num precipício :(',
description: 'Mais sorte na próxima vez...')
dragon = Step.create(name: 'Um dragão te tostou :(',
description: 'Nem todo dia é dia de caçador.')