├── .travis.yml ├── LICENSE ├── README.md ├── autopep8 └── Dockerfile ├── beautysh └── Dockerfile ├── black └── Dockerfile ├── brittany └── Dockerfile ├── clang-format └── Dockerfile ├── crystal └── Dockerfile ├── docker-compose.yml ├── elm-format └── Dockerfile ├── goimports └── Dockerfile ├── ocp-indent ├── Dockerfile └── docker-entrypoint.sh ├── php-cs-fixer └── Dockerfile ├── phpcbf └── Dockerfile ├── puppet-lint └── Dockerfile ├── renovate.json ├── rscript └── Dockerfile ├── rubocop └── Dockerfile ├── ruby-beautify └── Dockerfile ├── sass-convert └── Dockerfile ├── sqlformat └── Dockerfile └── uncrustify └── Dockerfile /.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: required 2 | language: generic 3 | services: 4 | - docker 5 | env: 6 | - SERVICE=autopep8 7 | - SERVICE=beautysh 8 | # - SERVICE=black 9 | - SERVICE=brittany 10 | - SERVICE=clang-format 11 | - SERVICE=crystal 12 | # - SERVICE=elm-format 13 | - SERVICE=goimports 14 | # - SERVICE=ocp-indent 15 | - SERVICE=php-cs-fixer 16 | - SERVICE=phpcbf 17 | - SERVICE=puppet-lint 18 | - SERVICE=rscript 19 | - SERVICE=rubocop 20 | - SERVICE=ruby-beautify 21 | - SERVICE=sass-convert 22 | - SERVICE=sqlformat 23 | - SERVICE=uncrustify 24 | script: 25 | - docker-compose build "$SERVICE" 26 | - docker-compose up "$SERVICE" 27 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Unibeautify 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Docker Beautifiers [![Build Status](https://travis-ci.com/Unibeautify/docker-beautifiers.svg?branch=master)](https://travis-ci.com/Unibeautify/docker-beautifiers) 2 | 3 | > Docker images for code beautifiers/formatters. 4 | 5 | ## Docker Images 6 | 7 | See list of beautifier Docker images at https://hub.docker.com/u/unibeautify/ 8 | 9 | | Name | Build Status | Pulls | Stars | Size | 10 | | --- | --- | --- | --- | -- | 11 | | [autopep8](https://github.com/hhatto/autopep8) | [![Docker Build Status](https://img.shields.io/docker/build/unibeautify/autopep8.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/autopep8/) | [![Docker Pulls](https://img.shields.io/docker/pulls/unibeautify/autopep8.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/autopep8/) | [![Docker Stars](https://img.shields.io/docker/stars/unibeautify/autopep8.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/autopep8/) | [![Docker Size](https://images.microbadger.com/badges/image/unibeautify/autopep8.svg)](https://microbadger.com/images/unibeautify/autopep8) | 12 | | [beautysh](https://github.com/bemeurer/beautysh) | [![Docker Build Status](https://img.shields.io/docker/build/unibeautify/beautysh.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/beautysh/) | [![Docker Pulls](https://img.shields.io/docker/pulls/unibeautify/beautysh.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/beautysh/) | [![Docker Stars](https://img.shields.io/docker/stars/unibeautify/beautysh.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/beautysh/) | [![Docker Size](https://images.microbadger.com/badges/image/unibeautify/beautysh.svg)](https://microbadger.com/images/unibeautify/beautysh) | 13 | | [black](https://github.com/ambv/black) | [![Docker Build Status](https://img.shields.io/docker/build/unibeautify/black.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/black/) | [![Docker Pulls](https://img.shields.io/docker/pulls/unibeautify/black.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/black/) | [![Docker Stars](https://img.shields.io/docker/stars/unibeautify/black.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/black/) | [![Docker Size](https://images.microbadger.com/badges/image/unibeautify/black.svg)](https://microbadger.com/images/unibeautify/black) | 14 | | [brittany](https://github.com/lspitzner/brittany) | [![Docker Build Status](https://img.shields.io/docker/build/unibeautify/brittany.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/brittany/) | [![Docker Pulls](https://img.shields.io/docker/pulls/unibeautify/brittany.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/brittany/) | [![Docker Stars](https://img.shields.io/docker/stars/unibeautify/brittany.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/brittany/) | [![Docker Size](https://images.microbadger.com/badges/image/unibeautify/brittany.svg)](https://microbadger.com/images/unibeautify/brittany) | 15 | | [ClangFormat](https://clang.llvm.org/docs/ClangFormat.html) | [![Docker Build Status](https://img.shields.io/docker/build/unibeautify/clang-format.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/clang-format/) | [![Docker Pulls](https://img.shields.io/docker/pulls/unibeautify/clang-format.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/clang-format/) | [![Docker Stars](https://img.shields.io/docker/stars/unibeautify/clang-format.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/clang-format/) | [![Docker Size](https://images.microbadger.com/badges/image/unibeautify/clang-format.svg)](https://microbadger.com/images/unibeautify/clang-format) | 16 | | [Crystal](https://crystal-lang.org/) | [![Docker Build Status](https://img.shields.io/docker/build/unibeautify/crystal.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/crystal/) | [![Docker Pulls](https://img.shields.io/docker/pulls/unibeautify/crystal.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/crystal/) | [![Docker Stars](https://img.shields.io/docker/stars/unibeautify/crystal.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/crystal/) | [![Docker Size](https://images.microbadger.com/badges/image/unibeautify/crystal.svg)](https://microbadger.com/images/unibeautify/crystal) | 17 | | [elm-format](https://github.com/avh4/elm-format) | [![Docker Build Status](https://img.shields.io/docker/build/unibeautify/elm-format.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/elm-format/) | [![Docker Pulls](https://img.shields.io/docker/pulls/unibeautify/elm-format.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/elm-format/) | [![Docker Stars](https://img.shields.io/docker/stars/unibeautify/elm-format.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/elm-format/) | [![Docker Size](https://images.microbadger.com/badges/image/unibeautify/elm-format.svg)](https://microbadger.com/images/unibeautify/elm-format) | 18 | | [goimports](https://godoc.org/golang.org/x/tools/cmd/goimports) | [![Docker Build Status](https://img.shields.io/docker/build/unibeautify/goimports.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/goimports/) | [![Docker Pulls](https://img.shields.io/docker/pulls/unibeautify/goimports.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/goimports/) | [![Docker Stars](https://img.shields.io/docker/stars/unibeautify/goimports.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/goimports/) | [![Docker Size](https://images.microbadger.com/badges/image/unibeautify/goimports.svg)](https://microbadger.com/images/unibeautify/goimports) | 19 | | [ocp-indent](https://github.com/OCamlPro/ocp-indent) | [![Docker Build Status](https://img.shields.io/docker/build/unibeautify/ocp-indent.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/ocp-indent/) | [![Docker Pulls](https://img.shields.io/docker/pulls/unibeautify/ocp-indent.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/ocp-indent/) | [![Docker Stars](https://img.shields.io/docker/stars/unibeautify/ocp-indent.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/ocp-indent/) | [![Docker Size](https://images.microbadger.com/badges/image/unibeautify/ocp-indent.svg)](https://microbadger.com/images/unibeautify/ocp-indent) | 20 | | [php-cs-fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer) | [![Docker Build Status](https://img.shields.io/docker/build/unibeautify/php-cs-fixer.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/php-cs-fixer/) | [![Docker Pulls](https://img.shields.io/docker/pulls/unibeautify/php-cs-fixer.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/php-cs-fixer/) | [![Docker Stars](https://img.shields.io/docker/stars/unibeautify/php-cs-fixer.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/php-cs-fixer/) | [![Docker Size](https://images.microbadger.com/badges/image/unibeautify/php-cs-fixer.svg)](https://microbadger.com/images/unibeautify/php-cs-fixer) | 21 | | [phpcbf](https://github.com/squizlabs/PHP_CodeSniffer) | [![Docker Build Status](https://img.shields.io/docker/build/unibeautify/phpcbf.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/phpcbf/) | [![Docker Pulls](https://img.shields.io/docker/pulls/unibeautify/phpcbf.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/phpcbf/) | [![Docker Stars](https://img.shields.io/docker/stars/unibeautify/phpcbf.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/phpcbf/) | [![Docker Size](https://images.microbadger.com/badges/image/unibeautify/phpcbf.svg)](https://microbadger.com/images/unibeautify/phpcbf) | 22 | | [puppet-lint](http://puppet-lint.com/) | [![Docker Build Status](https://img.shields.io/docker/build/unibeautify/puppet-lint.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/puppet-lint/) | [![Docker Pulls](https://img.shields.io/docker/pulls/unibeautify/puppet-lint.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/puppet-lint/) | [![Docker Stars](https://img.shields.io/docker/stars/unibeautify/puppet-lint.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/puppet-lint/) | [![Docker Size](https://images.microbadger.com/badges/image/unibeautify/puppet-lint.svg)](https://microbadger.com/images/unibeautify/puppet-lint) | 23 | | [Rscript](https://stat.ethz.ch/R-manual/R-devel/library/utils/html/Rscript.html) | [![Docker Build Status](https://img.shields.io/docker/build/unibeautify/rscript.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/rscript/) | [![Docker Pulls](https://img.shields.io/docker/pulls/unibeautify/rscript.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/rscript/) | [![Docker Stars](https://img.shields.io/docker/stars/unibeautify/rscript.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/rscript/) | [![Docker Size](https://images.microbadger.com/badges/image/unibeautify/rscript.svg)](https://microbadger.com/images/unibeautify/rscript) | 24 | | [rubocop](https://github.com/bbatsov/rubocop) | [![Docker Build Status](https://img.shields.io/docker/build/unibeautify/rubocop.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/rubocop/) | [![Docker Pulls](https://img.shields.io/docker/pulls/unibeautify/rubocop.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/rubocop/) | [![Docker Stars](https://img.shields.io/docker/stars/unibeautify/rubocop.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/rubocop/) | [![Docker Size](https://images.microbadger.com/badges/image/unibeautify/rubocop.svg)](https://microbadger.com/images/unibeautify/rubocop) | 25 | | [ruby-beautify](https://github.com/erniebrodeur/ruby-beautify) | [![Docker Build Status](https://img.shields.io/docker/build/unibeautify/ruby-beautify.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/ruby-beautify/) | [![Docker Pulls](https://img.shields.io/docker/pulls/unibeautify/ruby-beautify.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/ruby-beautify/) | [![Docker Stars](https://img.shields.io/docker/stars/unibeautify/ruby-beautify.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/ruby-beautify/) | [![Docker Size](https://images.microbadger.com/badges/image/unibeautify/ruby-beautify.svg)](https://microbadger.com/images/unibeautify/ruby-beautify) | 26 | | [sass-convert](http://sass-lang.com/documentation/) | [![Docker Build Status](https://img.shields.io/docker/build/unibeautify/sass-convert.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/sass-convert/) | [![Docker Pulls](https://img.shields.io/docker/pulls/unibeautify/sass-convert.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/sass-convert/) | [![Docker Stars](https://img.shields.io/docker/stars/unibeautify/sass-convert.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/sass-convert/) | [![Docker Size](https://images.microbadger.com/badges/image/unibeautify/sass-convert.svg)](https://microbadger.com/images/unibeautify/sass-convert) | 27 | | [sqlformat](https://github.com/andialbrecht/sqlparse) | [![Docker Build Status](https://img.shields.io/docker/build/unibeautify/sqlformat.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/sqlformat/) | [![Docker Pulls](https://img.shields.io/docker/pulls/unibeautify/sqlformat.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/sqlformat/) | [![Docker Stars](https://img.shields.io/docker/stars/unibeautify/sqlformat.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/sqlformat/) | [![Docker Size](https://images.microbadger.com/badges/image/unibeautify/sqlformat.svg)](https://microbadger.com/images/unibeautify/sqlformat) | 28 | | [uncrustify](http://uncrustify.sourceforge.net/) | [![Docker Build Status](https://img.shields.io/docker/build/unibeautify/uncrustify.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/uncrustify/) | [![Docker Pulls](https://img.shields.io/docker/pulls/unibeautify/uncrustify.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/uncrustify/) | [![Docker Stars](https://img.shields.io/docker/stars/unibeautify/uncrustify.svg?style=flat-square)](https://hub.docker.com/r/unibeautify/uncrustify/) | [![Docker Size](https://images.microbadger.com/badges/image/unibeautify/uncrustify.svg)](https://microbadger.com/images/unibeautify/uncrustify) | 29 | 30 | ## Installation 31 | 32 | [Docker](https://docs.docker.com/engine/installation/) is required. 33 | 34 | ### Using Whalebrew 35 | 36 | 1. Install [Whalebrew](https://github.com/bfirsh/whalebrew) 37 | 2. `whalebrew install unibeautify/BEAUTIFIER` 38 | e.g. `whalebrew install unibeautify/php-cs-fixer` 39 | 3. Profit! You can now run the installed beautifier command. 40 | e.g. `php-cs-fixer --version` 41 | 42 | ### Manually 43 | 44 | 1. Pull the Docker image: `docker pull unibeautify/BEAUTIFIER` 45 | e.g. `docker pull unibeautify/php-cs-fixer` 46 | 2. Run the Docker image: `docker run -it -v "$(pwd)":/workdir -w /workdir unibeautify/BEAUTIFIER "--version"` 47 | e.g. `docker run -it -v "$(pwd)":/workdir -w /workdir unibeautify/php-cs-fixer "--version"` 48 | 49 | Note: Some tools could change file ownership/permissions upon reformat and/or rewriting. Adding `--user "$(id -u):$(id -g)"` to your `docker run` command should prevent this. 50 | -------------------------------------------------------------------------------- /autopep8/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM python:alpine 2 | 3 | LABEL io.whalebrew.name 'autopep8' 4 | LABEL io.whalebrew.config.working_dir '/workdir' 5 | WORKDIR /workdir 6 | 7 | RUN pip install --upgrade autopep8 8 | 9 | ENTRYPOINT ["autopep8"] 10 | CMD ["--help"] -------------------------------------------------------------------------------- /beautysh/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM python:alpine 2 | 3 | LABEL io.whalebrew.name 'beautysh' 4 | LABEL io.whalebrew.config.working_dir '/workdir' 5 | WORKDIR /workdir 6 | 7 | RUN pip install --upgrade beautysh 8 | 9 | ENTRYPOINT ["beautysh"] 10 | CMD ["--help"] -------------------------------------------------------------------------------- /black/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM python:3-alpine 2 | 3 | LABEL io.whalebrew.name 'black' 4 | LABEL io.whalebrew.config.working_dir '/workdir' 5 | WORKDIR /workdir 6 | 7 | RUN pip install --upgrade black 8 | 9 | ENTRYPOINT ["black"] 10 | CMD ["--help"] -------------------------------------------------------------------------------- /brittany/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM herpinc/brittany:0.12.1.1 2 | 3 | LABEL io.whalebrew.name 'brittany' 4 | LABEL io.whalebrew.config.working_dir '/workdir' 5 | WORKDIR /workdir 6 | 7 | ENTRYPOINT ["brittany"] 8 | CMD ["--help"] 9 | -------------------------------------------------------------------------------- /clang-format/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine:latest as clang-format-build 2 | 3 | # Build dependencies 4 | RUN apk update && apk add git build-base ninja cmake python3 5 | 6 | # Pass `--build-arg LLVM_TAG=master` for latest llvm commit 7 | ARG LLVM_TAG 8 | ENV LLVM_TAG ${LLVM_TAG:-llvmorg-8.0.0} 9 | 10 | # Download and setup 11 | WORKDIR /build 12 | RUN git clone --branch ${LLVM_TAG} --depth 1 https://github.com/llvm/llvm-project.git 13 | WORKDIR /build/llvm-project 14 | RUN mv clang llvm/tools 15 | RUN mv libcxx llvm/projects 16 | 17 | # Build 18 | WORKDIR llvm/build 19 | RUN cmake -GNinja -DLLVM_BUILD_STATIC=ON -DLLVM_ENABLE_LIBCXX=ON .. 20 | RUN ninja clang-format 21 | 22 | # Install 23 | FROM alpine:latest 24 | 25 | LABEL io.whalebrew.name 'clang-format' 26 | LABEL io.whalebrew.config.working_dir '/workdir' 27 | WORKDIR /workdir 28 | 29 | COPY --from=clang-format-build /build/llvm-project/llvm/build/bin/clang-format /usr/bin 30 | 31 | ENTRYPOINT ["clang-format"] 32 | CMD ["--help"] 33 | -------------------------------------------------------------------------------- /crystal/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM crystallang/crystal 2 | 3 | LABEL io.whalebrew.name 'crystal' 4 | LABEL io.whalebrew.config.working_dir '/workdir' 5 | WORKDIR /workdir 6 | 7 | ENTRYPOINT ["crystal"] 8 | CMD ["--help"] -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '2' 2 | services: 3 | autopep8: 4 | build: ./autopep8 5 | image: unibeautify/autopep8 6 | beautysh: 7 | build: ./beautysh 8 | image: unibeautify/beautysh 9 | black: 10 | build: ./black 11 | image: unibeautify/black 12 | brittany: 13 | build: ./brittany 14 | image: unibeautify/brittany 15 | clang-format: 16 | build: ./clang-format 17 | image: unibeautify/clang-format 18 | crystal: 19 | build: ./crystal 20 | image: unibeautify/crystal 21 | elm-format: 22 | build: ./elm-format 23 | image: unibeautify/elm-format 24 | goimports: 25 | build: ./goimports 26 | image: unibeautify/goimports 27 | ocp-indent: 28 | build: ./ocp-indent 29 | image: unibeautify/ocp-indent 30 | php-cs-fixer: 31 | build: ./php-cs-fixer 32 | image: unibeautify/php-cs-fixer 33 | phpcbf: 34 | build: ./phpcbf 35 | image: unibeautify/phpcbf 36 | puppet-lint: 37 | build: ./puppet-lint 38 | image: unibeautify/puppet-lint 39 | rscript: 40 | build: ./rscript 41 | image: unibeautify/rscript 42 | ruby-beautify: 43 | build: ./ruby-beautify 44 | image: unibeautify/ruby-beautify 45 | rubocop: 46 | build: ./rubocop 47 | image: unibeautify/rubocop 48 | sass-convert: 49 | build: ./sass-convert 50 | image: unibeautify/sass-convert 51 | sqlformat: 52 | build: ./sqlformat 53 | image: unibeautify/sqlformat 54 | uncrustify: 55 | build: ./uncrustify 56 | image: unibeautify/uncrustify 57 | -------------------------------------------------------------------------------- /elm-format/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:6-slim 2 | 3 | LABEL io.whalebrew.name 'elm-format' 4 | LABEL io.whalebrew.config.working_dir '/workdir' 5 | WORKDIR /workdir 6 | 7 | RUN npm install -g elm && \ 8 | elm package install -y 9 | ENV LANG=en_US.UTF-8 10 | RUN elm --version 11 | 12 | RUN npm install -g elm-format@exp 13 | RUN elm-format --help 14 | 15 | ENTRYPOINT ["elm-format"] 16 | CMD ["--help"] -------------------------------------------------------------------------------- /goimports/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM golang:alpine 2 | 3 | LABEL io.whalebrew.name 'goimports' 4 | LABEL io.whalebrew.config.working_dir '/workdir' 5 | WORKDIR /workdir 6 | 7 | RUN apk add --no-cache --virtual .build-deps \ 8 | git \ 9 | ; \ 10 | go get golang.org/x/tools/cmd/goimports && \ 11 | rm -rf /go/src/golang.org \ 12 | apk del .build-deps; 13 | 14 | ENTRYPOINT ["goimports"] 15 | CMD ["--help"] -------------------------------------------------------------------------------- /ocp-indent/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ocaml/opam 2 | 3 | SHELL ["/bin/bash", "-lc"] 4 | LABEL io.whalebrew.name 'ocp-indent' 5 | LABEL io.whalebrew.config.working_dir '/workdir' 6 | WORKDIR /workdir 7 | 8 | RUN opam install --yes ocp-indent 9 | RUN ocp-indent --help 10 | 11 | COPY docker-entrypoint.sh /docker-entrypoint.sh 12 | ENTRYPOINT ["/docker-entrypoint.sh"] 13 | CMD ["--help"] 14 | -------------------------------------------------------------------------------- /ocp-indent/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -l 2 | ocp-indent "$@" 3 | -------------------------------------------------------------------------------- /php-cs-fixer/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM php:7.3.9-alpine 2 | 3 | LABEL io.whalebrew.name 'php-cs-fixer' 4 | LABEL io.whalebrew.config.working_dir '/project' 5 | WORKDIR /project 6 | 7 | RUN wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.14.2/php-cs-fixer.phar -O php-cs-fixer \ 8 | && chmod a+x php-cs-fixer \ 9 | && mv php-cs-fixer /usr/local/bin/php-cs-fixer 10 | 11 | ENTRYPOINT ["php-cs-fixer"] 12 | CMD ["--help"] 13 | -------------------------------------------------------------------------------- /phpcbf/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM php:7.3-alpine 2 | 3 | LABEL io.whalebrew.name 'phpcbf' 4 | LABEL io.whalebrew.config.working_dir '/workdir' 5 | WORKDIR /workdir 6 | 7 | RUN pear install PHP_CodeSniffer 8 | 9 | ENTRYPOINT ["phpcbf"] 10 | CMD ["--help"] -------------------------------------------------------------------------------- /puppet-lint/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ruby:alpine 2 | 3 | LABEL io.whalebrew.name 'puppet-lint' 4 | LABEL io.whalebrew.config.working_dir '/workdir' 5 | WORKDIR /workdir 6 | 7 | RUN gem install puppet-lint 8 | 9 | ENTRYPOINT ["puppet-lint"] 10 | CMD ["--help"] -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [ 3 | "config:base" 4 | ], 5 | "devDependencies": { 6 | "automerge": true, 7 | "major": { 8 | "automerge": false 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /rscript/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM artemklevtsov/r-alpine 2 | 3 | LABEL io.whalebrew.name 'Rscript' 4 | LABEL io.whalebrew.config.working_dir '/workdir' 5 | WORKDIR /workdir 6 | 7 | ENTRYPOINT ["Rscript"] 8 | CMD ["--help"] 9 | -------------------------------------------------------------------------------- /rubocop/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ruby:alpine as builder 2 | 3 | RUN apk update \ 4 | && apk add --virtual build-dependencies \ 5 | build-base \ 6 | && true 7 | 8 | RUN gem install rubocop -v 0.64.0 9 | RUN gem install rubocop-rspec -v 1.32.0 10 | 11 | RUN rm -rf /usr/local/bundle/cache/*.gem \ 12 | && find /usr/local/bundle/gems/ -name "*.c" -delete \ 13 | && find /usr/local/bundle/gems/ -name "*.o" -delete 14 | 15 | FROM ruby:alpine 16 | 17 | LABEL io.whalebrew.name 'rubocop' 18 | LABEL io.whalebrew.config.working_dir '/workdir' 19 | WORKDIR /workdir 20 | 21 | COPY --from=builder /usr/local/ /usr/local/ 22 | 23 | ENTRYPOINT ["rubocop"] 24 | CMD ["--help"] 25 | -------------------------------------------------------------------------------- /ruby-beautify/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ruby:alpine 2 | 3 | LABEL io.whalebrew.name 'ruby-beautify' 4 | LABEL io.whalebrew.config.working_dir '/workdir' 5 | WORKDIR /workdir 6 | 7 | RUN gem install ruby-beautify 8 | 9 | ENTRYPOINT ["ruby-beautify"] 10 | CMD ["--help"] -------------------------------------------------------------------------------- /sass-convert/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ruby:alpine 2 | 3 | LABEL io.whalebrew.name 'sass-convert' 4 | LABEL io.whalebrew.config.working_dir '/workdir' 5 | WORKDIR /workdir 6 | 7 | RUN apk add --update build-base libffi-dev 8 | RUN gem install sass 9 | 10 | ENTRYPOINT ["sass-convert"] 11 | CMD ["--help"] -------------------------------------------------------------------------------- /sqlformat/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM python:alpine 2 | 3 | LABEL io.whalebrew.name 'sqlformat' 4 | LABEL io.whalebrew.config.working_dir '/workdir' 5 | WORKDIR /workdir 6 | 7 | RUN pip install --upgrade sqlparse 8 | 9 | ENTRYPOINT ["sqlformat"] 10 | CMD ["--help"] -------------------------------------------------------------------------------- /uncrustify/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine:latest 2 | 3 | LABEL io.whalebrew.name 'uncrustify' 4 | LABEL io.whalebrew.config.working_dir '/workdir' 5 | WORKDIR /workdir 6 | 7 | ENV UNCRUSTIFY_VERSION 0.66.1 8 | 9 | RUN apk upgrade --update 10 | 11 | RUN apk add --no-cache make bash curl tar build-base cmake python3 12 | 13 | RUN curl -fSL "https://github.com/uncrustify/uncrustify/archive/uncrustify-$UNCRUSTIFY_VERSION.tar.gz" -o uncrustify.tar.gz \ 14 | && readonly NPROC=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || echo 1) \ 15 | && echo "Using upto $NPROC threads" \ 16 | && mkdir -p /usr/src/uncrustify \ 17 | && tar -xf uncrustify.tar.gz -C /usr/src/uncrustify --strip-components=1 \ 18 | && rm uncrustify.tar.gz* \ 19 | && dir="$(mktemp -d)" \ 20 | && cd "$dir" \ 21 | && cmake /usr/src/uncrustify \ 22 | && make -j$NPROC \ 23 | && make install \ 24 | && rm -rf "$dir" \ 25 | && rm -rf /usr/src/uncrustify 26 | 27 | ENTRYPOINT ["uncrustify"] 28 | CMD ["--help"] --------------------------------------------------------------------------------