项目作者: relaxdiego

项目描述 :
Automation for your build automation
高级语言: Shell
项目地址: git://github.com/relaxdiego/cicd.git
创建时间: 2020-09-02T07:24:29Z
项目社区:https://github.com/relaxdiego/cicd

开源协议:Other

下载




Relaxdiego CI/CD auto-provisions and auto-configures a GitLab cluster for you.

Quick Start

Try it with the cluster configuration directory (configdir for short) at
examples/manual. Read examples/manual/README.md for instructions on how
to get started.

Development Guide

Development Requirements

I have been developing this project using the following tools but you
should be able to swap out some of them (VMware Fusion) with a few
modifications.

Special Considerations for macOS

Make sure you install the GNU versions of sed and grep since the BSD versions
that come with macOS have different interfaces:

  1. brew install gnu-sed grep
  2. echo "export PATH=/usr/local/opt/gnu-sed/libexec/gnubin:$PATH" >> ~/.bash_profile
  3. echo "export PATH=/usr/local/opt/grep/libexec/gnubin:$PATH"" >> ~/.bash_profile

Also make sure that your python environment has the right certificates by
installing the certifi package:

  1. pip install certifi

Instantiate a Local Cluster

To facilitate a faster development workflow, we can instantiate a
dev cluster locally using Vagrant.

  1. make gitlab configdir=examples/vagrant-vmware

Once provisioning has completed, you should now be able to ssh to your
dev cluster’s machines:

  1. ssh gitlab
  2. ssh runner

You should also be able to browse to your dev GitLab instance:

  1. curl -L http://gitlab.localdev

Clean Up the Local Cluster

When you’re done and want to remove the local cluster, run:

  1. make cluster-implode configdir=examples/vagrant-vmware

More Make Goals

To see more Make goals, run:

  1. make help