Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

add git version for local builds

Chris Lu53b300edd8cb
diff --git a/docker/Makefile b/docker/Makefile
index a933956b72..58d494b950 100644
--- a/docker/Makefile
+++ b/docker/Makefile
@@ -5,7 +5,9 @@ all: gen
gen: dev
binary:
- cd ../weed; CGO_ENABLED=0 GOOS=linux go build -ldflags "-extldflags -static"; mv weed ../docker/
+ export SWCOMMIT=$(shell git rev-parse --short HEAD)
+ export SWLDFLAGS="-X github.com/chrislusf/seaweedfs/weed/util.COMMIT=$(SWCOMMIT)"
+ cd ../weed; CGO_ENABLED=0 GOOS=linux go build -ldflags "-extldflags -static $(SWLDFLAGS)"; mv weed ../docker/
build: binary
docker build --no-cache -t chrislusf/seaweedfs:local -f Dockerfile.local .