aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Osiniak <krzysztofosiniak37@gmail.com>2025-11-29 20:36:22 +0100
committerGitHub <noreply@github.com>2025-11-29 11:36:22 -0800
commit5461f85240c486a4f0e88ca016143e7392d2e552 (patch)
tree4deb533a9729f55dd1567b384a686dc8e3ca87fd
parentd48e1e16598fea8f774301a66024af3d5928124e (diff)
downloadseaweedfs-5461f85240c486a4f0e88ca016143e7392d2e552.tar.xz
seaweedfs-5461f85240c486a4f0e88ca016143e7392d2e552.zip
Update README and weed/Makefile (#7571)
* Add link to wiki installation page in README * Add building for docker in weed/Makefile Building without `CGO_ENABLED=0` and using the executable in docker can result in a docker container exiting with an error * Update README.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * Add GOOS=linux to build_docker target for cross-compilation --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Co-authored-by: Chris Lu <chris.lu@gmail.com>
-rw-r--r--README.md2
-rw-r--r--weed/Makefile3
2 files changed, 5 insertions, 0 deletions
diff --git a/README.md b/README.md
index 0f9028d1b..381abfff6 100644
--- a/README.md
+++ b/README.md
@@ -520,6 +520,8 @@ cd seaweedfs/weed && make install
Once this is done, you will find the executable "weed" in your `$GOPATH/bin` directory
+For more installation options, including how to run with Docker, see the [Getting Started guide](https://github.com/seaweedfs/seaweedfs/wiki/Getting-Started).
+
[Back to TOC](#table-of-contents)
## Disk Related Topics ##
diff --git a/weed/Makefile b/weed/Makefile
index ac25d008b..38c0d9317 100644
--- a/weed/Makefile
+++ b/weed/Makefile
@@ -9,6 +9,9 @@ all: install
install:
go install -ldflags="-s -w"
+build_docker:
+ CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w"
+
clean:
go clean $(SOURCE_DIR)
rm -f $(BINARY)