Difference between revisions of "Gitlab"

From CSLabsWiki
(Created page with "{{services |ip_addr = 128.153.145.46 |contact_person = Jared Dunbar |last_update = April 2016 |host_vm = Gitlab |vm_host = felix |services = Gitlab - Gi...")
 
 
(20 intermediate revisions by 5 users not shown)
Line 1: Line 1:
  +
  +
{{ edit }} {{ expand }} {{ outdated }}
 
{{services
 
{{services
 
|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 = [[felix]]
 
 
|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
  +
| screenshot =
|hostname=[http://gitlab.cslabs.clarkson.edu]
 
|maintainer=[[user:jared|Jared Dunbar]]
+
| maintainer=[[user:jared|Jared Dunbar]]
  +
| hostname=[http://gitlab.cslabs.clarkson.edu gitlab.cslabs.clarkson.edu]
|operating_system = Debian
 
  +
| operating_system = Debian 8
|ldap=no
 
  +
| interface1 = {{Network Interface | name=Clarkson Network | mac=? | ip=128.153.145.46}}
|development_status=Stable
 
  +
| cpuspecs = 2x AMD Opteron 6220 (16 cores total)
|status=running
 
  +
| ramspecs = 64GB
|vm_host=[[felix]]
 
 
}}
 
}}
   
  +
{{retired|fate=Became [[Starkist]], after backing up the stored repositories to cold backups. A GoGS server called simply [[Git (Server)|Git]] fulfilled its role.}}
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
 
   
  +
GitLab was a git repository host, with additional features including an integrated CI system, issue trackers, and more. It can build your C, C++, LaTeX, Java (8?), python and python3 via 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.
 
   
  +
The LDAP login is for COSI members, and is the same login as everything else. Students should use a standard account after it has been set up for them by their TA or a GitLab admin.
=Build=
 
   
  +
=CI/builds=
To have a buildable commit, make sure that you already have a makefile that Make detects, then use the following to execute it internally:
 
   
  +
See https://docs.gitlab.com/ce/ci/README.html for more information about GitLab CI. If you use a makefile, a simple .gitlab.yml might be:
.gitlab-ci.yml
 
  +
<pre>
 
job make:
+
<pre>job make:
 
script: "make"
 
script: "make"
 
</pre>
 
</pre>
   
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.
+
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.
   
=Git Stuff=
 
   
  +
=Install=
Git doesn't like it when you try to do stuff without verified SSL
 
   
  +
Installation of GitLab should be done with Omnibus: https://docs.gitlab.com/omnibus/README.html. We use Let's Encrypt for the certificates. Use certbot with the webroot config, and edit the nginx configs to forward /.well-known to the configured webroot use the new cert.
To disable SSL checking on your system:
 
 
<pre>
 
git config --global httpVerify false
 
</pre>
 
 
To disable SSL checking for just a repo:
 
 
<pre>
 
git config --local httpVerify false
 
</pre>
 
   
  +
[[Category:Web Service]]
If you want it to not work this way (I would not recommend it) 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.
 

Latest revision as of 19:04, 24 October 2018

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 was a git repository host, with additional features including an integrated CI system, issue trackers, and more. It can build your C, C++, LaTeX, Java (8?), python and python3 via a .gitlab-ci.yml

The LDAP login is for COSI members, and is the same login as everything else. Students should use a standard account after it has been set up for them by their TA or a GitLab admin.

CI/builds

See https://docs.gitlab.com/ce/ci/README.html for more information about GitLab CI. If you use a makefile, a simple .gitlab.yml might be:

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.


Install

Installation of GitLab should be done with Omnibus: https://docs.gitlab.com/omnibus/README.html. We use Let's Encrypt for the certificates. Use certbot with the webroot config, and edit the nginx configs to forward /.well-known to the configured webroot use the new cert.