Skip to content

Docker-Container with collection of tools to run file checks, based on alpine linux.

Notifications You must be signed in to change notification settings

deeagle/filecheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Container 4 file checks

Build status Release status Alpine Docker

I need a container for CI/CD testing of incoming changes from non linux environments. Installed tools are:

  • find
  • file
  • git
  • isutf8

Usage

You can check your files for:

  • LineFeed

    • find files with non unix style linefeed (\n)

      (! find . -maxdepth 1 -name "*.*" -not -type d -exec file "{}" ";" | grep "CRLF\|CR")
      (! find src tests -name "*.*" -not -type d -exec file "{}" ";" | grep "CRLF\|CR")
  • UTF8

    • Find files that are not utf8
      (find . -maxdepth 1 -name "*.*" -not -type d -exec isutf8 "{}" "+")
      (find app bin scripts src tests web -name "*.*" -not -type d -not -name "*.png" -not -name "*.gif" -not -name "favicon.ico"  -exec isutf8 "{}" "+")

Weblinks

About

Docker-Container with collection of tools to run file checks, based on alpine linux.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published