Coder Social home page Coder Social logo

gitlab-docker-boilerplate's Introduction

Gitlab Boilerplate - Community Edition Setup

This instructions are designed to install Gitlab CE in your machine as fast as possible using Docker. A docker compose configuration is provided, it requires to set the following environment variables:

export GITLAB_HOME=/srv/gitlab
export GITLAB_HOST=localhost
export GITLAB_ROOT_PASSWORD=password
export EXTERNAL_URL=http://localhost:8010 

Check https://docs.gitlab.com/ee/install/docker.html#install-gitlab-using-docker-compose to change ports if you need it.

Note that localhost can be example.com (whatever domain you requires). /srv/gitlab will be the folder in your machine where all configuration will persist even if you kill docker containers.

The first step is to run the containers:

docker compose up -d

You can go now to http://localhost (Container last to load some minutes) and log with the root account:

USER: root PASSWORD: GITLAB_ROOT_PASSWORD

For setting up a runner that will run your pipelines, run the following command:

docker compose exec runner gitlab-runner register --docker-privileged

For host: http://gitlab:8010 (internal host in docker network)

It will ask for a token, token can be obtained in the following route:

http://localhost/admin => Overvierw => Runners => Register an instance runner

Set the name as: Shared runner

Enter the tags associated with the runner, separated by commas. You can change this value later in the GitLab user interface.

Provide the runner executor. Enter docker.

For default image: ubuntu:focal

gitlab-docker-boilerplate's People

Stargazers

Miguel Obando avatar

Watchers

James Cloos avatar William Gómez Ortega avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.