Difference between revisions of "Gitlab"

From CSLabsWiki
Jump to: navigation, search
Line 2: Line 2:
 
|ip_addr = 128.153.145.46
 
|ip_addr = 128.153.145.46
 
|contact_person = [[user:jared|Jared Dunbar]]
 
|contact_person = [[user:jared|Jared Dunbar]]
|last_update = April 2016
+
|last_update = Fall 2016
|host_vm = [[Gitlab]]
 
|vm_host = [[hydra]]
 
 
|services = Gitlab - Git and Build Testing Services
 
|services = Gitlab - Git and Build Testing Services
|category = VM
+
|category = Machines
 
|handoff = no
 
|handoff = no
 
|ldap=yes
 
|ldap=yes
 
}}
 
}}
  
{{VM
+
{{Machine
|hostname=[http://gitlab.cslabs.clarkson.edu gitlab.cslabs.clarkson.edu]
+
| screenshot =
|maintainer=[[user:jared|Jared Dunbar]]
+
| maintainer=[[user:jared|Jared Dunbar]]
|operating_system = Debian
+
| hostname=[http://gitlab.cslabs.clarkson.edu gitlab.cslabs.clarkson.edu]
|ldap=no
+
| operating_system = Debian 8
|development_status=Stable
+
| interface1 = {{Network Interface | name=Clarkson Network | mac=? | ip=128.153.145.46}}
|status=running
+
| cpuspecs = 2x AMD Opteron 6220 (16 cores total)
|vm_host=[[hydra]]
+
| ramspecs = 64GB
 
}}
 
}}
  

Revision as of 21:55, 6 November 2016

Gitlab
IP Address(es): 128.153.145.46
Contact Person: Jared Dunbar
Last Update: Fall 2016
Services: Gitlab - Git and Build Testing Services
LDAP Support: yes


Hostname: gitlab.cslabs.clarkson.edu
Operating system: Debian 8
NIC 1: Clarkson Network
MAC: ?
IP: 128.153.145.46
CPU: 2x AMD Opteron 6220 (16 cores total)
RAM: 64GB


GitLab is a git server and test build server. It can build your C, C++, LaTeX, Java (8?), python and python3 via a makefile and a .gitlab-ci.yml

To log in, make sure that you either accept Talos as a CA or that you have manually added GitLab as an exception to your browser. You will need to accept Talos as your CA to access gitlab via git unless you toggle the httpVerify flag in Git to false.

LDAP is the same as using your ldap username and password on the COSI network on the lab machines, and Local accounts are reserved for special purposes and the (non-netwokred) admins.

Build

To have a buildable commit, make sure that you already have a makefile that Make detects, then use the following to execute it internally:

.gitlab-ci.yml

job make:
    script: "make"

Once you add that to your commits, it will build them. Don't expect it to build your older commits that don't have that file though, or the makefile. If you are not using a makefile, go online to find out how to use the file to make custom build scripts.

Monitoring

If you think you've hung GitLab while building a large package, check http://management.cosi.clarkson.edu/gitlab to see that it is still up. Contact a maintainer if it fails to come back in 5 minutes or more. It may have caused some problems on the VM host.

Git Stuff

Git doesn't like it when you try to do stuff without verified SSL

To disable SSL checking on your system:

git config --global httpVerify false

To disable SSL checking for just a repo:

git config --local httpVerify false

If you want it to be secure (I would not recommend using the method above to solve the problem for an extended period of time) I would add Talos to your list of CA's in your system. That is beyond the scope of this page though, check out the OpenSSL CA page to do that.

Install

Installation was done in many steps by many people. In retrospect it should have been documented properly.

I would start with a web server, gitlab-ci, gitlab-ci-runner, and git installed on the system. Install certs, and then woo. I am not sure how exactly it was created unfortunately.