inhumantsar.docker-compose-gitlab

docker-compose-gitlab

Build Status Ansible Galaxy

What is it?

This tool sets up a local service for GitLab using Docker Compose.

Why use it?

Ansible makes it easier to work with Docker Compose by adding features like system services, testing, and other helpful actions.

How to use it?

Requirements

  • You need a modern version of Debian or RHEL-compatible Linux.
  • You must have Python 2.7 or higher installed, along with pip.
  • Make sure your system has at least 2 CPU cores, 4GB of RAM, and 50GB of free disk space.

Python Modules

This setup will try to install the following Python packages if they're not already on your system:

  • docker-compose version 1.7.0 or newer
  • docker version 2.0 or newer
    • Do not install docker-py, even if you see an error message suggesting it.
    • KNOWN ISSUE: Version 2.4.0 of the docker library has a bug that affects port mapping in Docker Compose.

Installation Steps

Here's how to do it on EL7 systems (tested on RHEL and CentOS 7):

yum install -y git gcc python-devel openssl-devel && \
  pip install ansible

echo -e “- src: geerlingguy.docker\n- src: inhumantsar.docker-compose-gitlab” > requirements.txt
ansible-galaxy install -r requirements.txt

echo """---
> - hosts: localhost
>   roles:
>     - geerlingguy.docker
>     - inhumantsar.docker-compose-gitlab
> """ > playbook.yml
ansible-playbook playbook.yml

Removing the Service

If you want to remove the Docker Compose service and its containers, run this command:

ansible-playbook playbook.yml -e service_state=absent
Informazioni sul progetto

Creates a local docker-compose based service for GitLab

Installa
ansible-galaxy install inhumantsar.docker-compose-gitlab
Licenza
bsd-3-clause
Download
556
Proprietario