Skip to content

Instantly share code, notes, and snippets.

@cnosuke
Last active June 11, 2016 07:47
Show Gist options
  • Save cnosuke/6a9267be4b1ce7041fc97efe97f1779e to your computer and use it in GitHub Desktop.
Save cnosuke/6a9267be4b1ce7041fc97efe97f1779e to your computer and use it in GitHub Desktop.

やったこと

  • Docker化
  • Docker for Mac beta を使っているんだけどなんか最近 Docker compose と主にネットワーク周りの相性が悪い
    • やっぱLinux最高
  • private registory は Google Container Registory が一番安い気がして使っている
    • GCSの容量分 + ネットワーク分しか課金されない
  • Circle CI で自動ビルド && ↑に docker push
    • ちなみにテストはcomposeでテスト環境作って docker-compose run app test.sh みたいなのを試している
      • けどめちゃ遅いしアレ...
      • あとCircle CIで入るDockerが少し古くて最新のdocker-composeは駄目だったりするのが微妙に注意
  • Rails の DB Schema 管理はやっぱり ridgepole gem が便利
    • MySQLに Specified key was too long; max key length is 767 bytes とか怒られてたので limit: 128 しまくる簡単なお仕事
      • MySQLはunique indexに767bytesまでしかいけないのでutf8mb4とかだと190文字くらいが限界なので
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment