https://github.com/unibeautify/docker-beautifiers
Docker images for code beautifiers/formatters
https://github.com/unibeautify/docker-beautifiers
beautifier docker formatter unibeautify
Last synced: 6 months ago
JSON representation
Docker images for code beautifiers/formatters
- Host: GitHub
- URL: https://github.com/unibeautify/docker-beautifiers
- Owner: Unibeautify
- License: mit
- Created: 2017-05-27T22:39:13.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-11-21T19:36:00.000Z (about 1 year ago)
- Last Synced: 2024-11-21T20:29:18.764Z (about 1 year ago)
- Topics: beautifier, docker, formatter, unibeautify
- Language: Dockerfile
- Size: 67.4 KB
- Stars: 23
- Watchers: 4
- Forks: 12
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker Beautifiers [](https://travis-ci.com/Unibeautify/docker-beautifiers)
> Docker images for code beautifiers/formatters.
## Docker Images
See list of beautifier Docker images at https://hub.docker.com/u/unibeautify/
| Name | Build Status | Pulls | Stars | Size |
| --- | --- | --- | --- | -- |
| [autopep8](https://github.com/hhatto/autopep8) | [](https://hub.docker.com/r/unibeautify/autopep8/) | [](https://hub.docker.com/r/unibeautify/autopep8/) | [](https://hub.docker.com/r/unibeautify/autopep8/) | [](https://microbadger.com/images/unibeautify/autopep8) |
| [beautysh](https://github.com/bemeurer/beautysh) | [](https://hub.docker.com/r/unibeautify/beautysh/) | [](https://hub.docker.com/r/unibeautify/beautysh/) | [](https://hub.docker.com/r/unibeautify/beautysh/) | [](https://microbadger.com/images/unibeautify/beautysh) |
| [black](https://github.com/ambv/black) | [](https://hub.docker.com/r/unibeautify/black/) | [](https://hub.docker.com/r/unibeautify/black/) | [](https://hub.docker.com/r/unibeautify/black/) | [](https://microbadger.com/images/unibeautify/black) |
| [brittany](https://github.com/lspitzner/brittany) | [](https://hub.docker.com/r/unibeautify/brittany/) | [](https://hub.docker.com/r/unibeautify/brittany/) | [](https://hub.docker.com/r/unibeautify/brittany/) | [](https://microbadger.com/images/unibeautify/brittany) |
| [ClangFormat](https://clang.llvm.org/docs/ClangFormat.html) | [](https://hub.docker.com/r/unibeautify/clang-format/) | [](https://hub.docker.com/r/unibeautify/clang-format/) | [](https://hub.docker.com/r/unibeautify/clang-format/) | [](https://microbadger.com/images/unibeautify/clang-format) |
| [Crystal](https://crystal-lang.org/) | [](https://hub.docker.com/r/unibeautify/crystal/) | [](https://hub.docker.com/r/unibeautify/crystal/) | [](https://hub.docker.com/r/unibeautify/crystal/) | [](https://microbadger.com/images/unibeautify/crystal) |
| [elm-format](https://github.com/avh4/elm-format) | [](https://hub.docker.com/r/unibeautify/elm-format/) | [](https://hub.docker.com/r/unibeautify/elm-format/) | [](https://hub.docker.com/r/unibeautify/elm-format/) | [](https://microbadger.com/images/unibeautify/elm-format) |
| [goimports](https://godoc.org/golang.org/x/tools/cmd/goimports) | [](https://hub.docker.com/r/unibeautify/goimports/) | [](https://hub.docker.com/r/unibeautify/goimports/) | [](https://hub.docker.com/r/unibeautify/goimports/) | [](https://microbadger.com/images/unibeautify/goimports) |
| [ocp-indent](https://github.com/OCamlPro/ocp-indent) | [](https://hub.docker.com/r/unibeautify/ocp-indent/) | [](https://hub.docker.com/r/unibeautify/ocp-indent/) | [](https://hub.docker.com/r/unibeautify/ocp-indent/) | [](https://microbadger.com/images/unibeautify/ocp-indent) |
| [php-cs-fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer) | [](https://hub.docker.com/r/unibeautify/php-cs-fixer/) | [](https://hub.docker.com/r/unibeautify/php-cs-fixer/) | [](https://hub.docker.com/r/unibeautify/php-cs-fixer/) | [](https://microbadger.com/images/unibeautify/php-cs-fixer) |
| [phpcbf](https://github.com/squizlabs/PHP_CodeSniffer) | [](https://hub.docker.com/r/unibeautify/phpcbf/) | [](https://hub.docker.com/r/unibeautify/phpcbf/) | [](https://hub.docker.com/r/unibeautify/phpcbf/) | [](https://microbadger.com/images/unibeautify/phpcbf) |
| [puppet-lint](http://puppet-lint.com/) | [](https://hub.docker.com/r/unibeautify/puppet-lint/) | [](https://hub.docker.com/r/unibeautify/puppet-lint/) | [](https://hub.docker.com/r/unibeautify/puppet-lint/) | [](https://microbadger.com/images/unibeautify/puppet-lint) |
| [Rscript](https://stat.ethz.ch/R-manual/R-devel/library/utils/html/Rscript.html) | [](https://hub.docker.com/r/unibeautify/rscript/) | [](https://hub.docker.com/r/unibeautify/rscript/) | [](https://hub.docker.com/r/unibeautify/rscript/) | [](https://microbadger.com/images/unibeautify/rscript) |
| [rubocop](https://github.com/bbatsov/rubocop) | [](https://hub.docker.com/r/unibeautify/rubocop/) | [](https://hub.docker.com/r/unibeautify/rubocop/) | [](https://hub.docker.com/r/unibeautify/rubocop/) | [](https://microbadger.com/images/unibeautify/rubocop) |
| [ruby-beautify](https://github.com/erniebrodeur/ruby-beautify) | [](https://hub.docker.com/r/unibeautify/ruby-beautify/) | [](https://hub.docker.com/r/unibeautify/ruby-beautify/) | [](https://hub.docker.com/r/unibeautify/ruby-beautify/) | [](https://microbadger.com/images/unibeautify/ruby-beautify) |
| [sass-convert](http://sass-lang.com/documentation/) | [](https://hub.docker.com/r/unibeautify/sass-convert/) | [](https://hub.docker.com/r/unibeautify/sass-convert/) | [](https://hub.docker.com/r/unibeautify/sass-convert/) | [](https://microbadger.com/images/unibeautify/sass-convert) |
| [sqlformat](https://github.com/andialbrecht/sqlparse) | [](https://hub.docker.com/r/unibeautify/sqlformat/) | [](https://hub.docker.com/r/unibeautify/sqlformat/) | [](https://hub.docker.com/r/unibeautify/sqlformat/) | [](https://microbadger.com/images/unibeautify/sqlformat) |
| [uncrustify](http://uncrustify.sourceforge.net/) | [](https://hub.docker.com/r/unibeautify/uncrustify/) | [](https://hub.docker.com/r/unibeautify/uncrustify/) | [](https://hub.docker.com/r/unibeautify/uncrustify/) | [](https://microbadger.com/images/unibeautify/uncrustify) |
## Installation
[Docker](https://docs.docker.com/engine/installation/) is required.
### Using Whalebrew
1. Install [Whalebrew](https://github.com/bfirsh/whalebrew)
2. `whalebrew install unibeautify/BEAUTIFIER`
e.g. `whalebrew install unibeautify/php-cs-fixer`
3. Profit! You can now run the installed beautifier command.
e.g. `php-cs-fixer --version`
### Manually
1. Pull the Docker image: `docker pull unibeautify/BEAUTIFIER`
e.g. `docker pull unibeautify/php-cs-fixer`
2. Run the Docker image: `docker run -it -v "$(pwd)":/workdir -w /workdir unibeautify/BEAUTIFIER "--version"`
e.g. `docker run -it -v "$(pwd)":/workdir -w /workdir unibeautify/php-cs-fixer "--version"`
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.