Changes

Jump to navigation Jump to search
490 bytes added ,  16:06, 13 March 2017
no edit summary
[[Category: McNair Admin]]
For a listing of all software tools and scripts see [[Software Repository Listing]].
For a listing ==Quick Connection Instructions== All of all software tools and scripts see [[Software Repository Listing]]the following links go to the same place.Https is preferred as otherwise passwords are passed plain text.*From the RDP: https://localhost/codebase/*From the anywhere: https://rdp.mcnaircenter.org/codebase/ or https://128.42.44.182/codebase/ ==Our Git Server==
==Background==Given We have our git server on the amount of software that has been written by past computer science interns and more being written, we felt the need to have some kind of source code management system put into place so that developers can work without ever being in fear of breaking production and facing Ed's wrath (you do not want that dude angry! Wherever you go, he will find you! No escape.)RDP machine.
To enforce efficient source control we(Ed) chose to host our own git server on the RDP machine using [https://bonobogitserver.com/ Bonobo Git Server] that makes use of the windows IIS platform and is open source.===Access through a web browser===
Installing Bonobo git server is pretty simple:* dowload the zip file To access this from your computer and not the Bonobo website.* extract its contents. It should be a single folder containing directories like App_Data, bin etc.* rename that folder to anything RDP you want. I used the name "codebase"* copy the codebase folder to C:\inetpub\wwwroot\* Allow IIS User to modify C:\inetpub\wwwroot\codebase\App_Data folder. To do so:**select Properties of App_Data folder,**go to Security tab,**click edit,**select IIS user (in my case IIS_IUSRS) and add Modify and Write permission,**confirm these settings with Apply button.*Convert ''codebase'' to Application in IIS**Run IIS Manager and navigate to Sites -> Default Web Site. You should see Bonobo.Git.Server.**Right click on 'codebase' and convert to application.**Check if the selected application pool runs on .NET 4.0 and convert the site.*Enable Anonymous Authentication in IIS and disable the others. To do so, select the application in the left pane, double-click on the authentication icon in the right pane and set the value to of Anonymous Authentication to Enabled*Launch your browser and can go to http://localhost128.42.44.182/codebase. Now where it will prompt you can see the initial page of the Bonobo Git Server for your username and everything should workpassword.**default credentials are ''username'': '''admin''', ''password'': '''admin'''**[6-22-2016]: Can You can also use https://localhost128.42.44.182/codebase which is preferable, otherwise username/passwords are transmitted plain text'''. The browser will show a security error because we have a self signed certificate. This is ok if we are restricted to intranet. If we want to allow public access, we probably need to get a certificate from a Certificate Authority like Verisign etc.
==Our =Using a Git ServerClient===We have already done the set up of the git server on the RDP machine. Here are the admin credentials:*Username: '''boss'''*Name: '''Ed'''*Surname: '''Egan'''*Email: '''Edward.Egan@rice.edu'''*Password: '''you_seriously_thought_Id_write_that_in_here??'''*Repository Location on Disk: '''C:\inetpub\wwwroot\codebase\App_Data\Repositories'''
To access this from your computer We have Git.exe and not Sourcetree installed on the RDP you can go to http://128.42.44.182/codebase where it will prompt you for your username and password.**[6-22-2016]: Can also use https://128.42.44.182/codebase which is preferable. The browser will show a security error because we have a self signed certificate. This is ok if we are restricted to intranet. If we want to allow public accessTo run Git through the command line, we probably need to get a certificate from a Certificate Authority like Verisign etcfollow the instructions below (ignore the section that says ''installing'').
==Our Git workflow==
 
We chose a simple git workflow.
</div>
<div style="text-align: left; direction: ltr; margin-left: 5em;"><code><big>git rm -r <foldername></big></code></div>
 
</div>
==Useful Links==
 
* [http://learngitbranching.js.org/ A cool interactive tutorial for git]
* For those who are experienced with svn check out the [http://git.or.cz/course/svn.html svn-git comparison]
[[admin_classification::IT Build| ]]
 
==Build Notes==
 
Given the amount of software that has been written by past computer science interns and more being written, we felt the need to have some kind of source code management system put into place so that developers can work without ever being in fear of breaking production and facing Ed's wrath (you do not want that dude angry! Wherever you go, he will find you! No escape.).
 
To enforce efficient source control we(Ed) chose to host our own git server on the RDP machine using [https://bonobogitserver.com/ Bonobo Git Server] that makes use of the windows IIS platform and is open source.
 
Installing Bonobo git server is pretty simple:
* dowload the zip file from the Bonobo website.
* extract its contents. It should be a single folder containing directories like App_Data, bin etc.
* rename that folder to anything you want. I used the name "codebase"
* copy the codebase folder to C:\inetpub\wwwroot\
* Allow IIS User to modify C:\inetpub\wwwroot\codebase\App_Data folder. To do so:
**select Properties of App_Data folder,
**go to Security tab,
**click edit,
**select IIS user (in my case IIS_IUSRS) and add Modify and Write permission,
**confirm these settings with Apply button.
*Convert ''codebase'' to Application in IIS
**Run IIS Manager and navigate to Sites -> Default Web Site. You should see Bonobo.Git.Server.
**Right click on 'codebase' and convert to application.
**Check if the selected application pool runs on .NET 4.0 and convert the site.
*Enable Anonymous Authentication in IIS and disable the others. To do so, select the application in the left pane, double-click on the authentication icon in the right pane and set the value to of Anonymous Authentication to Enabled
*Launch your browser and go to http://localhost/codebase. Now you can see the initial page of the Bonobo Git Server and everything should work.
**default credentials are ''username'': '''admin''', ''password'': '''admin'''
**[6-22-2016]: Can also use https://localhost/codebase which is preferable, otherwise username/passwords are transmitted plain text. The browser will show a security error because we have a self signed certificate. This is ok if we are restricted to intranet. If we want to allow public access, we probably need to get a certificate from a Certificate Authority like Verisign etc.
 
Here are the admin credentials:
*Username: '''boss'''
*Name: '''Ed'''
*Surname: '''Egan'''
*Email: '''Edward.Egan@rice.edu'''
*Password: '''you_seriously_thought_Id_write_that_in_here??'''
*Repository Location on Disk: '''C:\inetpub\wwwroot\codebase\App_Data\Repositories'''

Navigation menu