Skip to content

abranhe/clib-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

clib

The clib Docker Image 🐳

starts pulls license automated

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

License

MIT © Carlos Abraham