diff options
| author | Chris Lu <chris.lu@gmail.com> | 2024-02-05 16:47:11 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2024-02-05 16:47:11 -0800 |
| commit | c471265837a9ad33edfa0cdd9fa43900c602b7c1 (patch) | |
| tree | c27891fdaf92dd474b7a65028ba5e1c393dc0ced /docker | |
| parent | 4dc6681833c5fd8094803cc2c01cf9664c982fc0 (diff) | |
| download | seaweedfs-c471265837a9ad33edfa0cdd9fa43900c602b7c1.tar.xz seaweedfs-c471265837a9ad33edfa0cdd9fa43900c602b7c1.zip | |
build with pub sub clients for testing
Diffstat (limited to 'docker')
| -rw-r--r-- | docker/Dockerfile.local | 2 | ||||
| -rw-r--r-- | docker/Makefile | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/docker/Dockerfile.local b/docker/Dockerfile.local index 53cfd9571..b87c0d8e9 100644 --- a/docker/Dockerfile.local +++ b/docker/Dockerfile.local @@ -1,6 +1,8 @@ FROM alpine AS final LABEL author="Chris Lu" COPY ./weed /usr/bin/ +COPY ./weed_pub /usr/bin/ +COPY ./weed_sub /usr/bin/ RUN mkdir -p /etc/seaweedfs COPY ./filer.toml /etc/seaweedfs/filer.toml COPY ./entrypoint.sh /entrypoint.sh diff --git a/docker/Makefile b/docker/Makefile index 08cd8775e..5f43fb95c 100644 --- a/docker/Makefile +++ b/docker/Makefile @@ -9,6 +9,8 @@ binary: export SWCOMMIT=$(shell git rev-parse --short HEAD) export SWLDFLAGS="-X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=$(SWCOMMIT)" cd ../weed && CGO_ENABLED=$(cgo) GOOS=linux go build $(options) -tags "$(tags)" -ldflags "-s -w -extldflags -static $(SWLDFLAGS)" && mv weed ../docker/ + cd ../weed/mq/client/cmd/weed_pub && CGO_ENABLED=$(cgo) GOOS=linux go build && mv weed_pub ../../../../../docker/ + cd ../weed/mq/client/cmd/weed_sub && CGO_ENABLED=$(cgo) GOOS=linux go build && mv weed_sub ../../../../../docker/ binary_race: options = -race binary_race: cgo = 1 |
