aboutsummaryrefslogtreecommitdiff
path: root/docker/Makefile
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-05-15 00:43:39 -0700
committerchrislu <chris.lu@gmail.com>2022-05-15 00:43:39 -0700
commit4076d748132d5954a44587a6f9cac4ffd209ca8c (patch)
tree4b7639caec2e421528f914a65b6fa631f122cdb1 /docker/Makefile
parent29198720f22ddb4cf3c594d53564ae7e4e6c3253 (diff)
parent05f16ba4d2dc08931a618feee11c8d41396664a1 (diff)
downloadseaweedfs-4076d748132d5954a44587a6f9cac4ffd209ca8c.tar.xz
seaweedfs-4076d748132d5954a44587a6f9cac4ffd209ca8c.zip
Merge branch 'master' of https://github.com/chrislusf/seaweedfs
Diffstat (limited to 'docker/Makefile')
-rw-r--r--docker/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/docker/Makefile b/docker/Makefile
index c8603309d..c023fc1ae 100644
--- a/docker/Makefile
+++ b/docker/Makefile
@@ -7,14 +7,17 @@ gen: dev
binary:
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 --tags "$(tags)" -ldflags "-extldflags -static $(SWLDFLAGS)"; mv weed ../docker/
+ cd ../weed; CGO_ENABLED=0 GOOS=linux go build -tags "$(tags)" -ldflags "-extldflags -static $(SWLDFLAGS)"; mv weed ../docker/
build: binary
docker build --no-cache -t chrislusf/seaweedfs:local -f Dockerfile.local .
rm ./weed
-build_gorocksdb:
- docker build --no-cache -t chrislusf/gorocksdb -f Dockerfile.go_rocksdb .
+go_build: # make go_build tags=elastic,ydb,gocdk,hdfs,rocksdb,5BytesOffset
+ docker build --build-arg TAGS=$(tags) --no-cache -t chrislusf/seaweedfs:go_build -f Dockerfile.go_build .
+
+go_build_large_disk:
+ docker build --build-arg TAGS=large_disk --no-cache -t chrislusf/seaweedfs:large_disk -f Dockerfile.go_build .
build_rocksdb:
docker build --no-cache -t chrislusf/seaweedfs:rocksdb -f Dockerfile.rocksdb_large .