rhq
rhq copied to clipboard
Tracking issue for custom hosts
現状使用可能なホスティングサービスは GitHub, BitBucket および GitLab のみであり,それらへの URL がハードコーディングされている. これでは社内サーバや AWS などに設置されている GH Enterprise や GitLab などを扱うことが出来ないため,追加でホストを設定できる機能を追加する.
例:
# ~/.config/rhq/config.toml
[host."my.gitlab.host"]
http_address = "133.6.11.2:8888"
ssh_address = "133.6.11.2:2222"
$ rhq clone my.gitlab.host/organization1/repo1
# Equivalent to https://133.6.11.2:8888/organization1/repo1.git
Configuration File Format
- Candidate 1
[[host]] path = "my.gitlab.host" address = "133.6.11.2" https_port = 8888 ssh_port = 2222 - Candidate 2
[host."my.gitlab.host"] http_address = "133.6.11.2:8888" ssh_address = "133.6.11.2:2222"
よく考えれば(よく考えなくても)、自前で設定項目を追加するより/etc/hosts や ~/.ssh/config の内容を読みに行ったほうが楽なのでその方針に切り換える。
Tasks
- HTTP
- [ ]
getaddrinfo経由でホスト名が与えられたときのアドレスを解決する
- [ ]
- SSH
- [ ]
~/.ssh/configのパーサ - [ ] ホスト名と該当する設定を読み込む
- [ ]
- optional
- [ ]
~/.rhqconfig経由の設定項目の追加をサポート
- [ ]