iron-fish / ironfish

A novel cryptocurrency focused on privacy and accessibility.
https://ironfish.network
Mozilla Public License 2.0
962 stars 576 forks source link

Include the git commit hash in Docker images #5112

Closed andiflabs closed 3 weeks ago

andiflabs commented 3 weeks ago

Summary

Send to the Docker build daemon the necessary files from the .git directory so that the build scripts can extract the hash of the HEAD commit.

Also fixed a style warning while at it.

Testing Plan

  1. Run ironfish-cli/scripts/build-docker.sh before this change
  2. Observe that docker run --rm ironfish:latest status reports git src
  3. Run ironfish-cli/scripts/build-docker.sh after this change
  4. Observe that docker run --rm ironfish:latest status reports something like git 2c1b2737

Documentation

N/A

Breaking Change

N/A