Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Polpetta/datlabel
Perform queries on Docker containers and services to retrieve labels and their values
https://github.com/Polpetta/datlabel
docker docker-library docker-swarm
Last synced: 15 days ago
JSON representation
Perform queries on Docker containers and services to retrieve labels and their values
- Host: GitHub
- URL: https://github.com/Polpetta/datlabel
- Owner: Polpetta
- License: mit
- Created: 2019-07-15T21:40:41.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-18T10:13:20.000Z (about 5 years ago)
- Last Synced: 2024-08-02T15:48:52.812Z (4 months ago)
- Topics: docker, docker-library, docker-swarm
- Language: Go
- Homepage:
- Size: 29.3 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Datlabel
===[![Build Status](https://travis-ci.org/Polpetta/datlabel.svg?branch=master)](https://travis-ci.org/Polpetta/datlabel)
Datlabel is a micro Go library that aims to make the searching, listing and
filtering of labels in Docker containers and services as easy as possible.
On top of that, it offers the possibility to search on Stacks too.## Build
The library is a standard Go project that uses modules. In order to build it,
open a shell and type:
```shell script
go build github.com/Polpetta/datlabel
```## Testing
The project has tests too. In order to run them, you need a local and
working Docker installation. On top of that, your Docker installation needs
to be set up in Swarm mode. To wrap up, you need to follow this procedure:
```shell script
docker swarm init # This initialize Docker into Swarm configuration
go test -tags=unit -count=1 ./... # Launch unit tests
go test -tags=intergation -count=1 ./... # Launch integration tests
docker swarm leave -f # Set it back Docker to classic mode
```Alternatively, you can execute all the tests in one shot with:
```shell script
go test -tags="unit integration" -count=1 ./...
```## License
This software is licensed under the MIT license.