38. SSH を利用したデバッグ
SSH 接続例
コンテナが複数起動している場合は
ssh node0, ssh node1, …
で他のコンテナに直接アクセス可能
$ ssh -p 64758 ubuntu@54.146.12.94
The authenticity of host '[54.146.12.94]:64758 ([54.146.12.94]:64758)' can't be established.
RSA key fingerprint is 5a:43:6d:7d:cb:a0:e6:26:cf:a3:fd:e6:8d:16:5f:3c.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[54.146.12.94]:64758' (RSA) to the list of known hosts.
Last login: Sat Aug 1 13:46:33 2015 from 10.155.246.48
ubuntu@box1234:~$ ssh node2
Warning: Permanently added '[54.159.70.222]:64646' (ECDSA) to the list of known hosts.
Last login: Sat Aug 1 13:46:46 2015 from 10.155.246.48
ubuntu@box952:~$
51. ブランチを CI 対象外にする
デフォルトでは、全てのブランチがビルド対象
general.branches.ignore でブラックリストを指定
(正規表現もOK)
ホワイトリスト指定もできるが、非推奨
general:
branches:
ignore:
- gh-pages # list of branches to ignore
- /release/.*/ # or ignore regexes
general:
branches:
only:
- master # list of branches to build
- /feature-.*/ # or regexes
52. コミットを CI 対象外にする
直近のコミットメッセージ (head commit) に文字列
[ci skip] が含まれていれば、ビルドは実行されない
"Skip a build - CircleCI"
- https://circleci.com/docs/skip-a-build
$ git log origin/master..HEAD
commit 63ce74221ff899955dd6258020d6cb9accede893
Author: Daniel Woelfel <daniel@circleci.com>
Date: Wed Jan 23 16:48:25 2013 -0800
fix misspelling [ci skip]
commit 463147193b2fe561cfb12a9787434dd726390fcd
Author: Daniel Woelfel <daniel@circleci.com>
Date: Wed Jan 23 16:30:24 2013 -0800
add "Skip a build" doc
53. その他のトピック
成果物の保存
"Build artifacts - CircleCI" - https://circleci.com/docs/build-artifacts
コードカバレッジの取得
"Generating code coverage metrics - CircleCI"
- https://circleci.com/docs/code-coverage
Docker 連携
"Continuous Integration and Delivery with Docker - CircleCI"
- https://circleci.com/docs/docker
REST API
"CircleCI REST API - CircleCI" - https://circleci.com/docs/api
継続的デプロイ
"Continuous Deployment with Heroku - CircleCI"
- https://circleci.com/docs/continuous-deployment-with-heroku
"Continuous Deployment with AWS CodeDeploy - CircleCI"
- https://circleci.com/docs/continuous-deployment-with-aws-codedeploy