GitLab Cookbook
eBook - ePub

GitLab Cookbook

  1. 172 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

GitLab Cookbook

About this book

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.

Tools to learn more effectively

Saving Books

Saving Books

Keyword Search

Keyword Search

Annotating Text

Annotating Text

Listen to it instead

Listen to it instead

GitLab Cookbook


Table of Contents

GitLab Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Conventions
Reader feedback
Customer support
Errata
Piracy
Questions
1. Introduction and Installation
Introduction
Using the Omnibus package
Getting ready
How to do it…
How it works…
Setting up the server dependencies for source installation
How to do it…
How it works…
Set up the database for source installation
How to do it…
Installing GitLab from source
Getting ready
How to do it…
How it works…
Using Chef and GitLab Cookbook
Getting ready
How to do it…
How it works…
Logging in for the first time
How to do it…
How it works…
Creating your first project
How to do it…
2. Explaining Git
Introduction
Generating your SSH key on Unix-like systems
How to do it…
How it works…
Generating your SSH key on Windows
How to do it…
How it works…
Adding your SSH key to GitLab
How to do it…
How it works…
Creating your first Git project
How to do it…
How it works…
Cloning your repository and pushing code to it
Getting ready
How to do it…
How it works…
Working with branches
Getting ready
How to do it…
Performing a rebase operation
How to do it…
How it works…
Squashing your commits
How to do it…
How it works…
3. Managing Users, Groups, and Permissions
Introduction
Adding a user
How to do it…
How it works…
Creating a group
How to do it…
How it works…
Working with user permissions
Getting ready
How to do it…
How it works…
Protecting your main branches
How to do it…
How it works…
Configuring the project's visibility
How to do it…
How it works…
Removing a user
Getting ready
How to do it…
How it works…
4. Issue Tracker and Wiki
Creating your first issue
Getting ready
How to do it…
How it works…
Creating your first merge request
Getting ready
How to do it…
How it works…
Accepting a merge request
Getting ready
How to do it…
How it works…
Referencing issues
How to do it…
There's more…
Working with milestones
How to do it…
How it works…
Creating your first wiki page
How to do it…
How it works…
Managing your wiki with Gollum
Getting ready
How to do it…
How it works…
5. Maintaining Your GitLab Instance
Introduction
Updating an Omnibus installation
How to do it…
How it works…
Updating GitLab from a source installation
How to do it…
How it works…
Troubleshooting your GitLab installation
How to do it…
How it works…
Creating a backup
How to do it…
Restoring a backup
Getting ready
How to do it…
Importing an existing repository
How to do it…
How it works…
6. Webhooks, External Services, and the API
Introduction
Working with external services
How to do it…
There's more…
Using webhooks
How to do it…
How it works…
Using system hooks
How to do it…
Getting your private token for the API
How to do it…
How it works…
Understanding the API status codes
How it works…
Managing your projects via the API
Getting ready
How to do it…
Managing issues via the API
Getting ready
How to do it…
Working with other API resources
Working with the API sudo command
7. Using LDAP and OmniAuth Providers
Introduction
Setting up your LDAP server
How to do it…
Installing a web interface for LDAP
How to do it…
Adding a user to your LDAP server
How to do it…
How it works…
Configuring GitLab to use LDAP on an Omnibus installation
How to do it…
Configuring GitLab to use LDAP on a source installation
How to do it…
Setting up GitHub as an OmniAuth provider
How to do it…
How it works…
8. GitLab CI
Introduction to GitLab CI
Installing the dependencies
How to do it…
Installing the coordinator
How to do it…
Installing the web server
How to do it…
Installing a runner
How to do ...

Table of contents

  1. GitLab Cookbook

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access GitLab Cookbook by Jeroen van Baarsen in PDF and/or ePUB format, as well as other popular books in Computer Science & Content Management Systems. We have over one million books available in our catalogue for you to explore.