Check the alpine version of the previous image.
alpine3.9 master$ docker run -it ruby:2.5.4-alpine sh
/ # cat /etc/alpine-release
3.9.2
/ # ruby -v
ruby 2.5.4p155 (2019-03-13 revision 67245) [x86_64-linux-musl]
| # place this in lib/fakeout.rb | |
| require 'ffaker' | |
| module Fakeout | |
| class Builder | |
| FAKEABLE = %w(User Product) | |
| attr_accessor :report |
| class MoveAttachmentsToNewLocation < ActiveRecord::Migration | |
| def initialize(name = self.class.name, version = nil) | |
| access_key = Rails.application.secrets.g3_access_key_id | |
| secret_key = Rails.application.secrets.g3_secret_access_key | |
| storage = Fog::Storage::Google.new google_storage_access_key_id: access_key, | |
| google_storage_secret_access_key: secret_key | |
| @bucket_name = Rails.application.secrets.g3_bucket | |
| @bucket = storage.directories.get(@bucket_name) | |
| super(name, version) |
| # Ruby Array's "-" (minus) method removes elements from the receiver which exist in the parameter Array | |
| [5, 6, 1] - [2, 3, 5] | |
| # => [6, 1] | |
| # this #subtract method will subtract the value of the parameter Array from the value of the receiver Array, defined by the actual index. | |
| # type mismatch, Nil, and different Array length are not handled | |
| class Array |
| class Child extends React.Component { | |
| render () { | |
| return (<div>I'm the child</div>); | |
| } | |
| } | |
| class ShowHide extends React.Component { | |
| constructor () { | |
| super (); | |
| this.state = { |
| %w(john paul ringo george).map { |p| p.capitalize } | |
| # => ["John", "Paul", "Ringo", "George"] |
| sudo ln -sf /usr/share/zoneinfo/UTC /etc/localtime |
| # app/models/user.rb | |
| class User < ActiveRecord::Base | |
| validates :zip_code, presence: true, zip_code: true | |
| end |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"