This project provides a Docker image with Hyperledger Fabric tools including:
- fabric-ca-client and fabric-ca-server (with PKCS11 support)
- tokengen
- fxconfig (with PKCS11 support)
- cryptogen
- configtxgen
- configtxlator
- cryptogen
The Docker image is automatically built and published to GitHub Container Registry (GHCR) when a version tag is pushed.
docker pull ghcr.io/built-by-sign/fabric-x-tool:latestlatest- Latest released version1.0.0- Specific version (e.g., v1.0.0)
- linux/amd64
- linux/arm64
To publish a new version, create and push a git tag with the version number:
# Create a new version tag (e.g., v1.0.0)
git tag v1.0.0
# Push the tag to GitHub
git push origin v1.0.0This will automatically trigger the GitHub Actions workflow to build and publish the Docker image to GHCR with the corresponding version tags.
You can also manually trigger a build from the GitHub Actions UI:
- Go to the repository on GitHub
- Click on the "Actions" tab
- Select "Publish to GHCR" workflow from the left sidebar
- Click "Run workflow" button on the right
- Select the branch and click "Run workflow"
Note: Manual builds will use the branch name as the tag (not a version number), so it's recommended to use version tags for releases.
# Build the image
make build
# Build images for ghcr
make build-ghcr VERSION=v0.0.5
# Need docker login first, please use GitHub Personal Access Token(PAT)
docker push ghcr.io/built-by-sign/fabric-x-tool:v0.0.5
docker push ghcr.io/built-by-sign/fabric-x-tool:latestThe project uses GitHub Actions to automatically build and publish Docker images to GHCR. The workflow is triggered on:
- Version tags (v*) - Automatically builds and publishes when you push a version tag
- Manual workflow dispatch - Can be triggered manually from GitHub Actions UI
No additional configuration is required - the workflow uses the built-in GITHUB_TOKEN for authentication.