geraldolsribeiro / microCI

Minimalist continuous integration tool
https://microci.dev
MIT License
1 stars 0 forks source link
ci microci

Welcome to microCI

C/C++ CI

microCI is a powerful tool designed to streamline the creation of continuous integration pipelines by generating portable, auditable scripts for executing tasks in Docker containers. This ensures that every step of the process is fully reproducible across various environments:

With microCI, the same tool, free of dependencies, can be used seamlessly on both development and production environments. For complete documentation, visit microci.dev.

The complete documentation can be found at microci.dev.

On the desktop

Using microCI on the developer's desktop is very simple:

microCI | bash

In the above command, microCI reads a .microCI.yml file containing the description of the pipeline steps and generates a script for executing these steps. This script is written to standard output and can be chained with other tools or passed to a bash interpreter for execution.

A file called .microCI.log is generated with all messages, warnings, errors from all executed commands and can be analyzed to resolve any problems that may occur.

On the server

To run on the server, it is sufficient to expose webhooks that, when triggered, execute microCI in the respective project folders.

Minimum requirements

Installation

The installation is equally simple, just copy the executable to a folder that is in the PATH. To completely remove microCI from the system, just delete the file copied to the PATH.

sudo curl -fsSL https://github.com/geraldolsribeiro/microci/releases/latest/download/microCI \
  -o /usr/bin/microCI
sudo chmod 755 /usr/bin/microCI

Docker Container

You can use any Docker container for execution, both public ones from Docker HUB and those you develop internally.

Integration with github, gitlab, ...

The simplest and safest way to use microCI to read from or write to repositories is to access them through an SSH key.

To do

Below are some features that may be present in the next releases.

Debian dependencies

For building standalone microCI binary the following dependencies should be installed:

sudo apt install gettext clang-format libspdlog-dev libfmt-dev libyaml-cpp-dev libssl-dev libcrypto++-dev

Docker private repository

In some cases, running a private registry without SSL, is necessary to add the IP of registry server to the insecure-registries section of the /etc/docker/daemon.json file.

Example:

{
    "insecure-registries": ["192.168.1.128:5000", "192.168.1.11:5000"]
}

Versions

License

MIT License

Copyright (c) 2022-2024 Geraldo Luis da Silva Ribeiro

░░░░░░░░░░░░░░░░░
░░░░░░░█▀▀░▀█▀░░░
░░░█░█░█░░░░█░░░░
░░░█▀▀░▀▀▀░▀▀▀░░░
░░░▀░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.