IBM Cloudでテスト用gitリポジトリを作成
取り急ぎ、個人用のメモなので、分かる人しかわからない書き方をします。
以下の準備はできていることを前提として、説明は省略
なお、手元ではVirtualbox上でCentOSをゲストOSにして作業しているので、それに依存している記述があるかも。
手順など
ここから、手順などのメモ
ローカルの作業用ディレクトリを用意し、必要なファイルを作成
mkdir /tmp/gitweb-app cd /tmp/gitweb-app vim requirements.txt vim manifest.yml
作成するファイルの内容は以下のとおり
- requirements.txt
dulwich
- manifest.yml
applications: - name: dulwich-web routes: # <unique-prefix>は独自の値に変える - route: unique-prefix-dulwich-web.mybluemix.net memory: 32M command: git init $HOME/gitrepo && python -m dulwich.web -l 0.0.0.0 -p $PORT $HOME/gitrepo
IBM CloudのPublic Cloud Foundryにデプロイ
cf push
動作確認
git clone http://unique-prefix-dulwich-web.mybluemix.net gitrepo1 cd gitrepo1 echo test > testfile.txt git add testfile.txt git commit -m "test commit" testfile.txt git push origin master