Giter Site home page Giter Site logo

inhumantsar / ansible-docker-compose-gitlab Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 0.0 163 KB

Ansible role to launch GitLab and a CI Runner as a Docker service

License: BSD 3-Clause "New" or "Revised" License

ansible ansible-role gitlab gitlab-ci gitlab-runner docker docker-compose

ansible-docker-compose-gitlab's Introduction

docker-compose-gitlab

Build Status Ansible Galaxy

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.0
  • docker >= 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.

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```

ansible-docker-compose-gitlab's People

Contributors

inhumantsar avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ansible-docker-compose-gitlab's Issues

ansible-galaxy: Could not find inhumantsar.docker-compose.gitlab

Hi !

thanks for ansible-docker-compose-gitlab !
While trying to install, I hit the following issue:

bash-5.2$ ansible-galaxy collection install inhumantsar.docker-compose.gitlab
ERROR! Neither the collection requirement entry key 'name', nor 'source' point to a concrete resolvable collection artifact. Also 'name' is not an FQCN. A valid collection name must be in the format <namespace>.<collection>. Please make sure that the namespace and the collection name contain characters from [a-zA-Z0-9_] only.

Could not find inhumantsar.docker-compose.gitlab.

Did not find docker-compose.gitlab at https://galaxy.ansible.com/inhumantsar

Are you able to restore it ?

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.