aboutsummaryrefslogtreecommitdiff
path: root/docker/Makefile
diff options
context:
space:
mode:
authorKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2022-05-14 18:40:32 +0500
committerKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2022-05-14 18:40:32 +0500
commit8f762a1a063cde46a626bc20843b0fd4f4af6aa2 (patch)
tree8454acc8fd8e70aeec9ab99ff1d2254d54615f9f /docker/Makefile
parentea4918394c75550d88ae9b6fb947fec84bd3117d (diff)
downloadseaweedfs-8f762a1a063cde46a626bc20843b0fd4f4af6aa2.tar.xz
seaweedfs-8f762a1a063cde46a626bc20843b0fd4f4af6aa2.zip
build release containers for all tags
Diffstat (limited to 'docker/Makefile')
-rw-r--r--docker/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/docker/Makefile b/docker/Makefile
index c8603309d..59648aa90 100644
--- a/docker/Makefile
+++ b/docker/Makefile
@@ -7,12 +7,18 @@ 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
+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_gorocksdb:
docker build --no-cache -t chrislusf/gorocksdb -f Dockerfile.go_rocksdb .