Skip to content
🐳The Clib Docker Image
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.dockerignore
Dockerfile
license
readme.md

readme.md

clib

The clib Docker Image 🐳

starts pulls license automated cashapp patreon abranhe

Description

Clib is a suite of small C libraries that you can manually copy/paste into your project, or you can use the clib C package manager to install and search for existing packages that exist in the registry — just a plain old GitHub wiki page.

Build

DockerHub Badge

Install

$ docker pull abranhe/clib

See other ways to install clib.

Set as alias

alias clib='docker run --rm -it abranhe/clib clib sh -c clib'

Related

  • clib: The package manager for the C programming language.

Usage

$ docker run -it \
    abranhe/clib sh -c clib --help

You will get:

clib <command> [options]

  Options:

    -h, --help     Output this message
    -v, --version  Output version information

  Commands:

    install [name...]  Install one or more packages
    search [query]     Search for packages
    help <cmd>         Display help for cmd

Learn more about clib.

Integrate with Travis-ci

I decided to create thi project because I needed it in a Travis build. You can read more about the usage of Docker in Travis builds. See the below example:

language: c

services:
  - docker

compiler:
  - clang
  - gcc

before_install:

  # Download the docker image
  - docker pull abranhe/clib

  # Use clib install, to install dependencies
  - docker run -it -v $(pwd):/src -w /src abranhe/clib sh -c "clib install"

# Run tests defined in the Makefile
script: docker run -it -v $(pwd):/src -w /src abranhe/clib sh -c "make run-test"

See a real example .travis.yml

Versioning

Docker Image Version Clib Version
latest latest

Team

Carlos Abraham Logo
Carlos Abraham

License

MIT License © Carlos Abraham

You can’t perform that action at this time.