GitLab Cookbook

Over 60 hands-on recipes to efficiently self-host your own Git repository using GitLab

GitLab Cookbook

Cookbook
Jeroen van Baarsen

Over 60 hands-on recipes to efficiently self-host your own Git repository using GitLab
$17.99
$29.99
RRP $17.99
RRP $29.99
eBook
Print + eBook

Instantly access this course right now and get the skills you need in 2017

With unlimited access to a constantly growing library of over 4,000 eBooks and Videos, a subscription to Mapt gives you everything you need to learn new skills. Cancel anytime.

Code Files
Preview in Mapt

Book Details

ISBN 139781783986842
Paperback172 pages

Book Description

GitLab is a popular, open source Git hosting solution implemented by more than 50,000 organizations. This book has some carefully chosen recipes to help you decide on the type of GitLab installation that will fit your requirements. Along with covering some of the basic principles of Git, the book covers practical scenarios to show how you or your organization can effectively manage your proprietary code.

You will learn how to manage multiple users, groups, and the permissions GitLab has for them. Updating your GitLab instance, creating backups, and restoring backups are a few of the important tasks described in detail to assist you in maintaining your GitLab server. Moreover, the GitLab API is extensively covered to guide you through the various operations to manage your project.

Table of Contents

Chapter 1: Introduction and Installation
Introduction
Using the Omnibus package
Setting up the server dependencies for source installation
Set up the database for source installation
Installing GitLab from source
Using Chef and GitLab Cookbook
Logging in for the first time
Creating your first project
Chapter 2: Explaining Git
Introduction
Generating your SSH key on Unix-like systems
Generating your SSH key on Windows
Adding your SSH key to GitLab
Creating your first Git project
Cloning your repository and pushing code to it
Working with branches
Performing a rebase operation
Squashing your commits
Chapter 3: Managing Users, Groups, and Permissions
Introduction
Adding a user
Creating a group
Working with user permissions
Protecting your main branches
Configuring the project's visibility
Removing a user
Chapter 4: Issue Tracker and Wiki
Creating your first issue
Creating your first merge request
Accepting a merge request
Referencing issues
Working with milestones
Creating your first wiki page
Managing your wiki with Gollum
Chapter 5: Maintaining Your GitLab Instance
Introduction
Updating an Omnibus installation
Updating GitLab from a source installation
Troubleshooting your GitLab installation
Creating a backup
Restoring a backup
Importing an existing repository
Chapter 6: Webhooks, External Services, and the API
Introduction
Working with external services
Using webhooks
Using system hooks
Getting your private token for the API
Understanding the API status codes
Managing your projects via the API
Managing issues via the API
Working with other API resources
Working with the API sudo command
Chapter 7: Using LDAP and OmniAuth Providers
Introduction
Setting up your LDAP server
Installing a web interface for LDAP
Adding a user to your LDAP server
Configuring GitLab to use LDAP on an Omnibus installation
Configuring GitLab to use LDAP on a source installation
Setting up GitHub as an OmniAuth provider
Chapter 8: GitLab CI
Introduction to GitLab CI
Installing the dependencies
Installing the coordinator
Installing the web server
Installing a runner
Linking your first project to GitLab CI
Creating a build script
Using GitLab CI webhooks

What You Will Learn

  • Install and maintain your GitLab instance
  • Work with multiple users, create groups, and configure your project visibility
  • Secure your code with the correct GitLab configuration
  • Make the most of the built-in issue tracker, including merge requests
  • Manage your projects through the GitLab API
  • Set up webhooks and system hooks to receive notifications
  • Manage your GitLab server using LDAP

Authors

Table of Contents

Chapter 1: Introduction and Installation
Introduction
Using the Omnibus package
Setting up the server dependencies for source installation
Set up the database for source installation
Installing GitLab from source
Using Chef and GitLab Cookbook
Logging in for the first time
Creating your first project
Chapter 2: Explaining Git
Introduction
Generating your SSH key on Unix-like systems
Generating your SSH key on Windows
Adding your SSH key to GitLab
Creating your first Git project
Cloning your repository and pushing code to it
Working with branches
Performing a rebase operation
Squashing your commits
Chapter 3: Managing Users, Groups, and Permissions
Introduction
Adding a user
Creating a group
Working with user permissions
Protecting your main branches
Configuring the project's visibility
Removing a user
Chapter 4: Issue Tracker and Wiki
Creating your first issue
Creating your first merge request
Accepting a merge request
Referencing issues
Working with milestones
Creating your first wiki page
Managing your wiki with Gollum
Chapter 5: Maintaining Your GitLab Instance
Introduction
Updating an Omnibus installation
Updating GitLab from a source installation
Troubleshooting your GitLab installation
Creating a backup
Restoring a backup
Importing an existing repository
Chapter 6: Webhooks, External Services, and the API
Introduction
Working with external services
Using webhooks
Using system hooks
Getting your private token for the API
Understanding the API status codes
Managing your projects via the API
Managing issues via the API
Working with other API resources
Working with the API sudo command
Chapter 7: Using LDAP and OmniAuth Providers
Introduction
Setting up your LDAP server
Installing a web interface for LDAP
Adding a user to your LDAP server
Configuring GitLab to use LDAP on an Omnibus installation
Configuring GitLab to use LDAP on a source installation
Setting up GitHub as an OmniAuth provider
Chapter 8: GitLab CI
Introduction to GitLab CI
Installing the dependencies
Installing the coordinator
Installing the web server
Installing a runner
Linking your first project to GitLab CI
Creating a build script
Using GitLab CI webhooks

Book Details

ISBN 139781783986842
Paperback172 pages
Read More

Read More Reviews