seaweedfs/docker
suika e932262b07 Allow custom command arguments to override default values in docker
Depending on a setup, 1GB volume limit is not the preferable size.
As weed can process multiple arguements and the later argument is the one to be used,
it is relatively easy to override the arguments defined in the entrypoint.

The arguments passed to the script will be shifted and appended at the end of the command. Since the first argument will fall into specific case, the argument can be predefined and the whole argument array shifted. Allowing to do "volume/server/master/etc $ARGS $@"
2020-10-21 01:47:29 +02:00
..
Dockerfile Use alpine base image instead of glib image. 2020-06-30 23:27:10 +02:00
Dockerfile.go_build adjust 2020-10-18 21:27:07 -07:00
Dockerfile.go_build_large add build version 2020-10-18 21:28:19 -07:00
Dockerfile.local some typos 2020-05-13 19:16:03 +08:00
entrypoint.sh Allow custom command arguments to override default values in docker 2020-10-21 01:47:29 +02:00
filer.toml filer: default to leveldb2 2019-06-30 00:44:57 -07:00
local-cluster-compose.yml optimize entrypoint for docker 2020-03-22 18:35:45 -07:00
local-dev-compose.yml optimize entrypoint for docker 2020-03-22 18:35:45 -07:00
Makefile fix dockerhub build 2020-03-01 18:23:07 -08:00
README.md Update docker README with docker buildx instructions. 2020-06-30 23:38:00 +02:00
seaweedfs-compose.yml optimize entrypoint for docker 2020-03-22 18:35:45 -07:00
seaweedfs-dev-compose.yml optimize entrypoint for docker 2020-03-22 18:35:45 -07:00

Docker

Try it out


wget https://raw.githubusercontent.com/chrislusf/seaweedfs/master/docker/seaweedfs-compose.yml

docker-compose -f seaweedfs-compose.yml -p seaweedfs up

Try latest tip


wget https://raw.githubusercontent.com/chrislusf/seaweedfs/master/docker/seaweedfs-dev-compose.yml

docker-compose -f seaweedfs-dev-compose.yml -p seaweedfs up

Local Development

cd $GOPATH/src/github.com/chrislusf/seaweedfs/docker
make

Build and push a multiarch build

Make sure that docker buildx is supported (might be an experimental docker feature)

BUILDER=$(docker buildx create --driver docker-container --use)
docker buildx build --pull --push --platform linux/386,linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 . -t chrislusf/seaweedfs
docker buildx stop $BUILDER