Search icon CANCEL
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
Gitlab Cookbook

You're reading from   Gitlab Cookbook Over 60 hands-on recipes to efficiently self-host your own Git repository using GitLab

Arrow left icon
Product type Paperback
Published in Dec 2014
Publisher
ISBN-13 9781783986842
Length 172 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Jeroen van Baarsen Jeroen van Baarsen
Author Profile Icon Jeroen van Baarsen
Jeroen van Baarsen
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Introduction and Installation 2. Explaining Git FREE CHAPTER 3. Managing Users, Groups, and Permissions 4. Issue Tracker and Wiki 5. Maintaining Your GitLab Instance 6. Webhooks, External Services, and the API 7. Using LDAP and OmniAuth Providers 8. GitLab CI A. Tips and Tricks Index

Creating a build script


In order to have GitLab CI build your projects, you need to tell it how to build the project. In this example, we will take a look at how you can easily set up a build script. I'll use a web app build on Ruby on Rails. If you use another programming language, you have to create a different build script.

Getting ready

For this recipe, I'll be using the passty project made by Dmitriy Zaporozhets, the creator of GitLab. The passty project is a web-based password management tool. You can find the project on https://github.com/randx/passty. You need to import this project on your own GitLab server. The passty project is just an arbitrary example.

How to do it…

  1. First, we need to make sure that all the dependencies for this project are installed.

  2. Log in via SSH to your GitLab CI server.

  3. Let's install SQLite:

    $ wget http://www.sqlite.org/2014/sqlite-autoconf-3080600.tar.gz
    $ sudo tar xvfz sqlite-autoconf-3080600.tar.gz
    $ cd sqlite-autoconf-3080600
    $ sudo ./configure --prefix=/usr...
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 €18.99/month. Cancel anytime