HUB
Sign inSign up

abranhe/clib

By abranhe

•Updated almost 8 years ago

The clib Docker Image 🐳

Image
2

358

abranhe/clib repository overview

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'
  • 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 VersionClib Version
latest⁠latest⁠

⁠License

MIT⁠ License © Carlos Abraham⁠

Tag summary
Recent tags
Content type
Image
Digest
Size
133.7 MB
Last updated
almost 8 years ago
docker pull abranhe/clib:latest