gitlab 源码托管,ci/cd 对标github https://gitlab.com/gitlab-org/gitlab-foss

天问 5b1f381083 Add 'docker-compose.yml' 9 months ago
README.md fe2fa4f97e Update 'README.md' 1 year ago
docker-compose.yml 5b1f381083 Add 'docker-compose.yml' 9 months ago

README.md

gitlab

Usage

docker方式部署

sudo docker run --detach \
  --hostname gitlab.example.com \
  --publish 443:443 --publish 80:80 --publish 22:22 \
  --name gitlab \
  --restart always \
  --volume $GITLAB_HOME/config:/etc/gitlab \
  --volume $GITLAB_HOME/logs:/var/log/gitlab \
  --volume $GITLAB_HOME/data:/var/opt/gitlab \
  --shm-size 256m \
  gitlab/gitlab-ee:latest

Develop

开放依赖,ruby,go,git,nodejs,PostgreSQL,redis,nginx

|-- home
|   |-- git
|       |-- .ssh
|       |-- gitlab
|       |-- gitlab-shell
|       |-- repositories

sudo apt-get install -y build-essential zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libre2-dev \
  libreadline-dev libncurses5-dev libffi-dev curl openssh-server libxml2-dev libxslt-dev \
  libcurl4-openssl-dev libicu-dev libkrb5-dev logrotate rsync python3-docutils pkg-config cmake \
  runit-systemd


sudo adduser --disabled-login --gecos 'GitLab' git
sudo apt install -y postgresql postgresql-client libpq-dev postgresql-contrib
sudo sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get -y install postgresql-14


# Clone GitLab repository
sudo -u git -H git clone https://gitlab.com/gitlab-org/gitlab-foss.git -b <X-Y-stable> gitlab

# Clone GitLab repository
#sudo -u git -H git clone https://gitlab.com/gitlab-org/gitlab.git -b <X-Y-stable-ee> gitlab


https://docs.gitlab.com/ee/install/installation.html