Fedorahosted Infrastructure SOP

From FedoraProject

(Difference between revisions)
Jump to: navigation, search
(Add note on git non-fast-forward pushes.)
(redirect page to new infra-docs)
 
Line 2: Line 2:
 
{{shortcut|ISOP:HOSTED}}
 
{{shortcut|ISOP:HOSTED}}
  
Provide hosting place for open source projects
 
  
== Contact Information ==
+
This SOP has moved to the fedora Infrastructure SOP git repo. Please see the current document at: http://infrastructure.fedoraproject.org/infra/docs/fedorahosted.txt
Owner: Fedora Infrastructure Team
+
  
Contact: #fedora-admin, sysadmin-hosted
+
For changes, questions or comments, please contact anyone in the Fedora Infrastructure team.  
 
+
Location: Serverbeach
+
 
+
Servers: hosted1, hosted2
+
 
+
Purpose: Provide hosting place for open source projects
+
 
+
== Description ==
+
fedorahosted.org can be used to host open source projects. It provides the following facilities:
+
 
+
# An scm for maintaining the code. The currently supported scm's include Mercurial, Git, Bazaar, or SVN. Note: There is no cvs
+
# A trac instance, which provides a mini-wiki for hosting information and also provides a ticketing system.
+
# A mailing list
+
 
+
== How to setup a new hosted project ==
+
 
+
{{Admon/important |  This page is for administrators only.  People wishing to request a hosted project should use the [https://fedorahosted.org/fedora-infrastructure/ Ticketing System] ; see the [https://fedorahosted.org/web/new|  new project request template].  (Requires Fedora Account)}}
+
 
+
# [[Hosted_group_setup|  Create source group]] in [[Infrastructure/AccountSystem|  Fedora Account System]]  (<scm>project should be the group name)
+
# [[Hosted_repository_setup|  Create source repo]]
+
# Log into hosted1
+
# Create new project space:
+
#: <pre>$ sudo /usr/local/bin/hosted-setup.sh <project name> <project admin> <scm type></pre>
+
#:* <project name> must use the same case as the scm repo
+
#:* You're likely to end up with 'Command failed: columns username, action are not unique' - this can be safely ignored as this only tries to tell you that you are giving admin access to a person already having admin access
+
# If a mailing list is desired:
+
#: [[Mailman_Infrastructure_SOP | follow the directions for the mailman SOP]]
+
 
+
== How to import data from a cvs repo into git repo ==
+
 
+
Often users request their git repos to be imported from an existing cvs repo. This is a two step process as follows:
+
 
+
<pre>
+
git-cvsimport -v -d :pserver:anonymous@cvs.fedoraproject.org/cvs/docs -C <dir> <cvs_module>
+
</pre>
+
 
+
<pre>
+
sudo git clone --bare --no-hardlinks </pathto/cvsimported/repo> /git/<git_dir>.git/
+
</pre>
+
 
+
Example:
+
<pre>
+
git-cvsimport -v -d :pserver:anonymous@cvs.fedoraproject.org/cvs/docs -C translation-quick-start-guide translation-quick-start-guide
+
sudo git clone --bare --no-hardlinks translation-quick-start-guide/ /git/translation-quick-start-guide.git/
+
</pre>
+
 
+
== Git notes ==
+
 
+
Note that our git repos disallow non-fast-forward pushes by default.  This default makes the most sense, but sometimes, users understand the impact of doing so, but still wish to make such a push.
+
 
+
To enable this temporarily, edit the config file inside of the git repo, and make sure that receive.denyNonFastforwards is set to false.  Make sure to reenable this once the user has finished their push.
+
  
  
 
[[Category:Infrastructure SOPs]]
 
[[Category:Infrastructure SOPs]]
[[Category:Hosted Projects]]
 

Latest revision as of 17:40, 19 December 2011

Infrastructure InfrastructureTeamN1.png
Shortcut:
ISOP:HOSTED


This SOP has moved to the fedora Infrastructure SOP git repo. Please see the current document at: http://infrastructure.fedoraproject.org/infra/docs/fedorahosted.txt

For changes, questions or comments, please contact anyone in the Fedora Infrastructure team.