https://github.com/fuglede/licensee-docker
Simple Dockerfile for licensee gem
https://github.com/fuglede/licensee-docker
Last synced: 5 months ago
JSON representation
Simple Dockerfile for licensee gem
- Host: GitHub
- URL: https://github.com/fuglede/licensee-docker
- Owner: fuglede
- Created: 2021-04-07T14:25:21.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-07T18:19:00.000Z (about 5 years ago)
- Last Synced: 2025-10-24T17:53:14.593Z (9 months ago)
- Language: Dockerfile
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# licensee-docker
This provides a simple Docker image for the Ruby Gem [licensee](https://github.com/licensee/licensee) for detecting licenses, to make it simpler to use in environments where Docker is available but Ruby is not.
A built image, which may or may not be particularly up-to-date, is available on `ghcr.io`.
## Usage
The Docker image simply uses as its entry point the `licensee` command line interface. In particular, you can use Docker volumes to run the tool on a given project or license file. For example, to detect the license of a file called `LICENSE.txt` in the current working directory, you could do the following:
```sh
$ docker run -v ${PWD}/LICENSE.txt:/LICENSE.txt ghcr.io/fuglede/licensee-docker/licensee:latest detect LICENSE.txt
License: BSD-3-Clause
Matched files: LICENSE.txt
```