logo资料库

gitlab cookbook.pdf

第1页 / 共194页
第2页 / 共194页
第3页 / 共194页
第4页 / 共194页
第5页 / 共194页
第6页 / 共194页
第7页 / 共194页
第8页 / 共194页
资料共194页,剩余部分请下载后查看
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 it…
Linking your first project to GitLab CI
How to do it…
Creating a build script
Getting ready
How to do it…
How it works…
There's more…
Using GitLab CI webhooks
How to do it…
How it works…
A. Tips and Tricks
The power of snippets
Getting involved
Getting help
The GitLab RSS feed
Archiving projects
How to format a good Git commit message
How to change your Git editor
Understanding the anatomy of GitLab
Understanding the differences between GitLab's Community Edition (CE) and Enterprise Edition (EE)
How to fork a project and what is forking?
Understanding the branching workflow
Index
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 1. Introduction and Installation Introduction Using the Omnibus package Setting up the server dependencies for source installation Set up the database for source installation How to do it… Installing GitLab from source Getting ready How to do it… How it works… There's more… See also Conventions Reader feedback Customer support Errata Piracy Questions Getting ready How to do it… How it works… How to do it… How it works… Getting ready How to do it… How it works… Getting ready How to do it… How it works… How to do it… How it works… Using Chef and GitLab Cookbook Logging in for the first time 2
Creating your first project How to do it… 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 How to do it… How it works… How to do it… How it works… How to do it… How it works… How to do it… How it works… Getting ready How to do it… How it works… Getting ready How to do it… How to do it… How it works… How to do it… How it works… Introduction Adding a user How to do it… How it works… Creating a group How to do it… How it works… Getting ready How to do it… How it works… How to do it… How it works… How to do it… How it works… Removing a user Getting ready How to do it… Working with branches Performing a rebase operation Squashing your commits 3. Managing Users, Groups, and Permissions Working with user permissions Protecting your main branches Configuring the project's visibility 3
How it works… 4. Issue Tracker and Wiki Creating your first issue Getting ready How to do it… How it works… Getting ready How to do it… How it works… Creating your first merge request 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 Creating your first wiki page How to do it… How it works… How to do it… How it works… Getting ready How to do it… How it works… Managing your wiki with Gollum 5. Maintaining Your GitLab Instance Introduction Updating an Omnibus installation Importing an existing repository 6. Webhooks, External Services, and the API Introduction Working with external services How to do it… 4 Updating GitLab from a source installation Troubleshooting your GitLab installation How to do it… How it works… How to do it… How it works… How to do it… How it works… Creating a backup How to do it… Restoring a backup Getting ready How to do it… How to do it… How it works…
There's more… Using webhooks How to do it… How it works… Using system hooks How to do it… How to do it… How it works… How it works… Getting ready How to do it… Getting ready How to do it… 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 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 How to do it… How to do it… How to do it… How it works… How to do it… How to do it… How to do it… How it works… 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 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 it… Linking your first project to GitLab CI How to do it… Creating a build script Getting ready How to do it… 5
How it works… There's more… Using GitLab CI webhooks How to do it… How it works… A. Tips and Tricks The power of snippets Getting involved Getting help The GitLab RSS feed Archiving projects How to format a good Git commit message How to change your Git editor Understanding the anatomy of GitLab Understanding the differences between GitLab's Community Edition (CE) and Enterprise Edition (EE) How to fork a project and what is forking? Understanding the branching workflow Index 6
GitLab Cookbook 7
GitLab Cookbook Copyright © 2014 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. First published: December 2014 Production reference: 1191214 Published by Packt Publishing Ltd. Livery Place 35 Livery Street Birmingham B3 2PB, UK. ISBN 978-1-78398-684-2 www.packtpub.com 8
分享到:
收藏