Thanks to @kaypee90 for the contribution
-
Get the image. Run:
docker pull protodb/protofire-solhint:latest
-
Check if image is present (protodb/protofire-solhint:latest)
docker images
-
Solhint use:
- Execute solhint with default config file
docker run -v ./:/app -w /app -it protodb/protofire-solhint solhint './contracts/*.sol'
This command:
-
Maps current folder to app/ inside container
-
Executes solhint in './contracts/*.sol'
-
Navigate inside container sharing current folder into app/ container folder
docker run -v ./:/app -w /app -it protodb/protofire-solhint /bin/sh
This command:
- Maps current folder to app/ container folder
- Can run solhint inside the container by typing
solhint ./contracts/*.sol
(use your correct path, type exit to finish)