-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit f833c2f
Showing
4 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Gitosis on DotCloud | ||
=================== | ||
|
||
Quick setup:: | ||
|
||
git clone git://github.com/jpetazzo/gitosis-on-dotcloud | ||
git push gito6 gitosis-on-dotcloud | ||
dotcloud run gito6.www cat /home/dotcloud/data/id_rsa > key | ||
chmod 600 key | ||
ssh-add key | ||
GITCLOUD="$(dotcloud info gito6.www | grep ssh:// | awk '{print $2}')" | ||
|
||
And now you can do e.g.:: | ||
|
||
git clone $GITCLOUD/gitosis-admin | ||
cd gitosis-admin | ||
cat >>gitosis.conf <<EOF | ||
[group foo] | ||
writable = foo | ||
members = @all | ||
EOF | ||
git commit -a -m 'add project foo' | ||
git push | ||
cd /some/git/repository | ||
git remote add gitosis $GITCLOUD/foo | ||
git push gitosis master | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
www: | ||
type: python |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/sh | ||
[ -d /home/dotcloud/data ] || { | ||
mkdir -p /home/dotcloud/data | ||
ssh-keygen -f /home/dotcloud/data/id_rsa -N '' | ||
gitosis-init < /home/dotcloud/data/id_rsa.pub | ||
mv /home/dotcloud/repositories /home/dotcloud/data/repositories | ||
ln -s /home/dotcloud/data/repositories /home/dotcloud/repositories | ||
mv /home/dotcloud/gitosis /home/dotcloud/data/gitosis | ||
ln -s /home/dotcloud/data/gitosis /home/dotcloud/gitosis | ||
APPNAME=$(grep DOTCLOUD_PROJECT /home/dotcloud/environment.json | | ||
cut -d\" -f4) | ||
SVCNAME=$(grep DOTCLOUD_SERVICE_NAME /home/dotcloud/environment.json | | ||
cut -d\" -f4) | ||
} | ||
echo "*******************************************************************" | ||
echo "To retrieve the SSH private key for your gitosis service, run:" | ||
echo "dotcloud run $APPNAME.$SVCNAME cat /home/dotcloud/data/id_rsa" | ||
echo "*******************************************************************" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
git+git://github.com/jpetazzo/gitosis.git#egg=gitosis |