Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/steevanb/docker-composer-require-checker
Docker image for maglnet/composer-require-checker
https://github.com/steevanb/docker-composer-require-checker
composer docker docker-image php
Last synced: 11 days ago
JSON representation
Docker image for maglnet/composer-require-checker
- Host: GitHub
- URL: https://github.com/steevanb/docker-composer-require-checker
- Owner: steevanb
- Created: 2020-02-26T08:29:31.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-17T19:13:31.000Z (over 3 years ago)
- Last Synced: 2023-07-31T14:17:21.382Z (over 1 year ago)
- Topics: composer, docker, docker-image, php
- Language: Shell
- Homepage: https://hub.docker.com/r/steevanb/composer-require-checker
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Docker image for maglnet/composer-require-checker
[ComposerRequireChecker](https://github.com/maglnet/ComposerRequireChecker)
is a tool to analyse composer dependencies and verify that no unknown symbols are used in the sources of a package.As they said in their documentation, this tool should not be installed as dependency of your project.
So to use it you could install the phar version, or use this Docker image.
## Use the Docker image
Create a container from `steevanb/composer-require-checker` image and add a volume with your code into `/app` directory inside the container.
```bash
docker run --tty --rm --volume $(pwd):/app:ro steevanb/composer-require-checker:3.2.0
```## Use it with CircleCI
```yaml
version: '2.1'jobs:
composer:
docker:
- image: composer
working_directory: /app
steps:
- checkout
- restore_cache:
key: vendor-{{ checksum "composer.json" }}-{{ checksum "composer.lock" }}
- run:
composer install --ignore-platform-reqs --no-interaction;
- save_cache:
key: vendor-{{ checksum "composer.json" }}-{{ checksum "composer.lock" }}
paths:
- ./vendor
- persist_to_workspace:
root: .
paths:
- vendorcomposerRequireChecker:
docker:
- image: steevanb/composer-require-checker:3.2.0
working_directory: /app
steps:
- checkout
- restore_cache:
key: vendor-{{ checksum "composer.json" }}-{{ checksum "composer.lock" }}
- run:
name: composer-require-checker
command: composer-require-checkerworkflows:
version: '2.1'
CI:
jobs:
- composer
- composerRequireChecker:
requires:
- composer
```