Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abranhe/clib-docker
🐳The Clib Docker Image
https://github.com/abranhe/clib-docker
c clib docker docker-image package-manager-tool
Last synced: 5 days ago
JSON representation
🐳The Clib Docker Image
- Host: GitHub
- URL: https://github.com/abranhe/clib-docker
- Owner: abranhe
- License: mit
- Created: 2019-01-25T02:23:29.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-13T03:54:36.000Z (over 4 years ago)
- Last Synced: 2024-11-12T03:43:39.468Z (2 months ago)
- Topics: c, clib, docker, docker-image, package-manager-tool
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/abranhe/clib
- Size: 12.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
[![clib](https://avatars2.githubusercontent.com/u/5657447?s=120)](https://hub.docker.com/r/abranhe/clib)
# The [clib](https://github.com/clibs/clib) Docker Image 🐳
[![starts](https://img.shields.io/docker/stars/abranhe/clib.svg?logo=docker)](https://hub.docker.com/r/abranhe/clib)
[![pulls](https://img.shields.io/docker/pulls/abranhe/clib.svg?logo=docker)](https://hub.docker.com/r/abranhe/clib)
[![license](https://img.shields.io/github/license/abranhe/clib-docker.svg)](https://github.com/abranhe/clib-docker/blob/master/license)
[![automated](https://img.shields.io/docker/automated/abranhe/clib.svg?logo=docker)](https://hub.docker.com/r/abranhe/clib)## 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](http://dockeri.co/image/abranhe/clib)](https://hub.docker.com/r/abranhe/clib)
## Install
```
$ docker pull abranhe/clib
```See [other ways][install-clib] to install **clib**.
### Set as alias
```
alias clib='docker run --rm -it abranhe/clib clib sh -c clib'
```## Related
- [clib][clib]: The package manager for the C programming language.
## Usage
```
$ docker run -it \
abranhe/clib sh -c clib --help
```You will get:
```
clib [options]Options:
-h, --help Output this message
-v, --version Output version informationCommands:
install [name...] Install one or more packages
search [query] Search for packages
help Display help for cmd
```Learn more about [clib][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][travis-docker]. See the below example:
```yml
language: cservices:
- dockercompiler:
- clang
- gccbefore_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`](https://github.com/abranhe/binary/blob/cab8abb4d6d87964043175bd2881c938d9ca9ab5/.travis.yml)
## Versioning
| Docker Image Version | Clib Version |
| :-: | :-: |
| [`latest`][docker-latest] | [`latest`][clib] |## License
MIT © [Carlos Abraham](https://github.com/abranhe)
[clib]: https://github.com/clibs/clib
[install-clib]: https://github.com/clibs/clib/blob/master/Readme.md#installation
[travis-docker]: https://docs.travis-ci.com/user/docker/
[docker-latest]: https://hub.docker.com/r/abranhe/clib/tags/latest
[clib-1.8.1]: https://github.com/clibs/clib/releases/tag/1.8.1