The clib Docker Image 🐳
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.
$ docker pull abranhe/clib
See other ways to install clib.
alias clib='docker run --rm -it abranhe/clib clib sh -c clib'
- clib: The package manager for the C programming language.
$ 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.
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
Docker Image Version | Clib Version |
---|---|
latest |
latest |
MIT © Carlos Abraham