https://github.com/saschpe/docker-cmakelint
cmakelint Docker container based on Alpine Linux.
https://github.com/saschpe/docker-cmakelint
alpine-linux cmakelint docker docker-container pip python
Last synced: 2 months ago
JSON representation
cmakelint Docker container based on Alpine Linux.
- Host: GitHub
- URL: https://github.com/saschpe/docker-cmakelint
- Owner: saschpe
- License: apache-2.0
- Created: 2018-01-05T13:00:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-22T14:45:53.000Z (over 6 years ago)
- Last Synced: 2025-02-03T21:43:29.795Z (4 months ago)
- Topics: alpine-linux, cmakelint, docker, docker-container, pip, python
- Language: Shell
- Homepage: https://hub.docker.com/r/saschpe/cmakelint/
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker cmakelint
[](http://www.apache.org/licenses/LICENSE-2.0.html)
[](https://travis-ci.org/saschpe/docker-cmakelint)
[](https://hub.docker.com/r/saschpe/cmakelint/)
[](https://hub.docker.com/r/saschpe/cmakelint/)[cmakelint](https://github.com/richq/cmake-lint) Docker container based on Alpine Linux.
## Usage
Invoke the container just like *cmakelint* ifself:docker run --rm saschpe/cmakelint --help
Assuming you want to format all CMake files in a directory
*src*, a full example might look like this:cmake_files=$(find . \( -name CMakeLists.txt -o -name *.cmake \) -exec echo /opt/{} \;)
docker run \
--rm \
--privileged=true \
--volume ${PWD}:/opt \
saschpe/cmakelint ${cmake_files}Just put this into a script for easier invocation.
## Scripts
These scripts simplify various tasks related to container building and
publishing..
└─── scripts
├── docker
│ ├── build Build the container locally
│ └── run Run the container locally
├── inc.constants
└── inc.functions## License
Copyright 2017 Sascha Peilicke
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.