Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 894 Bytes

docker.md

File metadata and controls

25 lines (18 loc) · 894 Bytes

Docker Instructions

Thanks to @kaypee90 for the contribution

  1. Get the image. Run:
    docker pull protodb/protofire-solhint:latest

  2. Check if image is present (protodb/protofire-solhint:latest)
    docker images

  3. 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)