Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering GitLab 12

You're reading from   Mastering GitLab 12 Implement DevOps culture and repository management solutions

Arrow left icon
Product type Paperback
Published in Aug 2019
Publisher Packt
ISBN-13 9781789531282
Length 608 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Joost Evertse Joost Evertse
Author Profile Icon Joost Evertse
Joost Evertse
Arrow right icon
View More author details
Toc

Table of Contents (30) Chapters Close

Preface 1. Section 1: Install and Set Up GitLab On-Premises or in the Cloud FREE CHAPTER
2. Introducing the GitLab Architecture 3. Installing GitLab 4. Configuring GitLab Using the Web UI 5. Configuring GitLab from the Terminal 6. Section 2: Migrating Data from Different Locations
7. Importing Your Project from GitHub to GitLab 8. Migrating from CVS 9. Switching from SVN 10. Moving Repositories from TFS 11. Section 3: Implement the GitLab DevOps Workflow
12. GitLab Vision - the Whole Toolchain in One Application 13. Create Your Product, Verify, and Package it 14. The Release and Configure Phase 15. Monitoring with Prometheus 16. Integrating GitLab with CI/CD Tools 17. Section 4: Utilize GitLab CI and CI Runners
18. Setting Up Your Project for GitLab Continuous Integration 19. Installing and Configuring GitLab Runners 20. Using GitLab Runners with Docker or Kubernetes 21. Autoscaling GitLab CI Runners 22. Monitoring CI Metrics 23. Section 5: Scale the Server Infrastructure (High Availability Setup)
24. Creating a Basic HA Architecture Using Horizontal Scaling 25. Managing a Hybrid HA Environment 26. Making Your Environment Fully Distributed 27. Using Geo to Create Distributed Read-Only Copies of GitLab 28. Assessments 29. Other Books You May Enjoy

Configuring source installations

The main configuration file to change is gitlab.yml, which is usually found in /home/git/gitlab/config. It follows the .yml standard and this has several implications. The first one is that indentation is very important. If you just copy and paste configuration, you will find that it can mess up the file contents. Another important feature that is used in the gitlab.yml file is utilizing anchors and aliases (&base) to specify different configuration targets. In practice, this means that the main configuration for all environments is specified in the config file (production: &base).

Below the production: &base target , the other environments are specified, and they refer to &base but override certain key-value pairs. How does GitLab know which environment information should be used? That is determined by the RAILS_ENV variable used...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £16.99/month. Cancel anytime