GithubHelp home page GithubHelp logo

primeos-work / butido Goto Github PK

View Code? Open in Web Editor NEW

This project forked from science-computing/butido

0.0 1.0 0.0 2.15 MB

Build Linux packages using Docker Containers

License: Eclipse Public License 2.0

Shell 0.14% Rust 99.56% Nix 0.10% PLpgSQL 0.21%

butido's Introduction

BUTIDO

"butido" could stand for "but i do", "BUild Things In DOcker" or "Better Universal Task Instrumentation Docker Observator".

Anyways, it is a tool for building packages for linux distributions in docker and it does not make assumptions about the build procedure itself (and thus can build .rpm, .deb, or any other package format your scripts can build).

Functionality

Packages are defined in TOML and in hierarchies (see config-rs). See the examples for how to define packages.

The "business-logic" of packages are shell scripts which exist in predefined "phases". These scripts are compiled into one large script (per package) which is then run to build the source into a package.

The package definition(s) can hold meta-information and (of course) information about a packages dependencies. Both dependencies and meta-information is made available in a build.

Everything that is computed before, during or after a build or submit is written to a postgres database, including build logs. This database can be queried for packages, build information, logs and other data.

Successfully built packages are collected in a "staging" store on FS. A staging store is created per submit. The results can be taken from this "staging" store and be released into a "release" store.

Requirements

Building butido is easy, assuming you have a Rust installation:

cargo build --release # (remove --release for a debug build)

Butido is built and tested with Rust 1.64.0 as MSRV.

(Development) Setup

To set up a development infrastructure or a production infrastructure (using the examples from the ./examples/packages directory):

# pull down necessary docker images
docker pull debian:bullseye
docker pull postgres:12

# setup the database in a postgres container
PG_USER=pgdev   \
PG_PW=password  \
PG_DB=butido    \
PG_CONTAINER_NAME=butido-db \
bash scripts/dev-pg-container.sh

# copy the examples to /tmp
cd examples/packages
make

# Finish the database setup
cd /tmp/butido-test-repo
/path/to/butido db setup

# Start building
/path/to/butido build a --image debian:bullseye

Glossary

Word Explanation
build / job The procedure of transforming a set of sources to a package (or, technically, even to multiple packages)
dependency A "package" that is required during the buildtime or during the runtime of another "package"
endpoint A docker API endpoint butido can talk to
jobset A list of jobs that can be run in any order or in parallel
output The results of a butido build job
package A single (archive) file OR the definition of a job
script The script that is run inside a container. Basically the "->" in "source -> package".
source A file that contains a source code archive
submit A call to butido for building a single package, which can result in multiple packages (dependencies) being built
tree The tree structure that is computed before a packages is built to find out all (transitive) dependencies

License

butido was developed for science+computing ag (an Atos company).

License: EPL-2.0

butido's People

Contributors

matthiasbeyer avatar bors[bot] avatar dependabot[bot] avatar lschuermann avatar christophprokop avatar dtolnay avatar mersinvald avatar

Watchers

 avatar

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.