Skip to content

Commit

Permalink
feat: Add docker-build command to reproducible build
Browse files Browse the repository at this point in the history
  • Loading branch information
jjyr committed Mar 29, 2024
1 parent 52187b0 commit 7a2fa64
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,9 @@ CHECKSUM_FILE := build/checksums-$(MODE).txt
checksum: build
sha256sum build/$(MODE)/* > $(CHECKSUM_FILE)

.PHONY: build test check clippy fmt cargo clean prepare checksum
# Docker reproducible build
docker-build:
docker run --rm -v `pwd`:/code docker.io/xxuejie/rust-n-llvm@sha256:71e98a25eb0350c779cdea18c296d101c4ddc375b8fd96531b63f3105ca64ca2 bash -c "cd /code; make checksum MODE=release CHECKSUM_FILE=checksums.txt"
sha256sum -c checksums.txt

.PHONY: build test check clippy fmt cargo clean prepare checksum docker-build
2 changes: 2 additions & 0 deletions checksums.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
6bbea4820329050e1fc65f9c15cab5948b824c73aa3430d7d92b793c53ca66b6 build/release/can-update-without-ownership-lock
0294cac1087e4145bf407c4675c239cf3aac54f002b117f733aab1bebea8e64e build/release/ckb-bitcoin-spv-type-lock

0 comments on commit 7a2fa64

Please sign in to comment.