- GCP のすべてのリソースは プロジェクト の下に作成される
- プロジェクトごとに請求や IAM の管理が可能
- 本番やステージングといった複数環境のリソースを分離するためにもプロジェクトで分けよう
この機能は docker/docker#26061 で実装された。
--init をつけた場合に実行されるバイナリ(/dev/init)の実態は
docker/docker#28037 により krallin/tini に変更されている。
python で time.sleep(100)するだけのコンテナを docker run で実行し、そのコンテナに対して docker stop した場合に --init 有り無しで違いがあるかを比較してみる。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ==== Emojis ==== | |
| # 🐛 :bug: バグ修正 | |
| # 👍 :+1: 機能改善 | |
| # ✨ :sparkles: 部分的な機能追加 | |
| # 🎉 :tada: 盛大に祝うべき大きな機能追加 | |
| # ♻️ :recycle: リファクタリング | |
| # 🚿 :shower: 不要な機能・使われなくなった機能の削除 | |
| # 💚 :green_heart: テストやCIの修正・改善 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| # | |
| # pid2line.rb | |
| # | |
| # Show source files and line numers of given process's threads | |
| # | |
| # This script works only on Linux. | |
| # https://gist.github.com/nurse/0619b6af90df140508c2 | |
| # |
- vagrant 上で jessie をインストール
tasksel install gnome-desktop --new-installして gnome をインストール- build-essential や linux-headers あたりをインストール
- source.list を変更し、
apt-get update後に、apt-get upgradeしてapt-get dist-upgrade - 4 で initramfs-tools のスクリプトでコケるが/usr/share/initramfs-tools/hooks/udev 内での
cp -pをcp -apに変更
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| * { | |
| font-size: 12pt; | |
| font-family: monospace; | |
| font-weight: normal; | |
| font-style: normal; | |
| text-decoration: none; | |
| color: black; | |
| cursor: default; | |
| } |
