docker-compose-gitlab
docker-compose-gitlab
What?
Creates a local docker-compose based service for GitLab
Why?
Ansible provides a nice wrapper around docker-compose, offering up useful bits like a system service, tests, and supporting actions.
How?
Requirements
- A recent Debian- or RHEL-compatible Linux distribution.
- Python 2.7+ with pip installed.
- At least 2 cores, 4GB RAM, and 50GB of disk space available.
Python modules
This role will dumbly try to install these if not already present. the
docker-compose
>= 1.7.0docker
>= 2.0- DO NOT install
docker-py
, even if an error message says to. - KNOWN ISSUE: The
docker
Python library has a bug in v2.4.0 which prevents port mapping in docker-compose.
- DO NOT install
Installation
EL7 example 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
Decommission
This will only remove the Docker Compose service and its containers.
ansible-playbook playbook.yml -e service_state=absent```
About
Creates a local docker-compose based service for GitLab
Install
ansible-galaxy install inhumantsar/ansible-docker-compose-gitlab
License
bsd-3-clause
Downloads
545
Owner