Commit graph

31 commits

Author SHA1 Message Date
Kaiwalya Joshi 47d335cf8c
feat: Send commands to weed shell from the docker image.
Add the ability to send commands to weed shell from the docker image.

Allows an operator to perform maintenance commands like so:
```
docker run \
  --rm \
  -e SHELL_FILER=localhost:8888 \
  -e SHELL_MASTER=localhost:9333 \
  chrislusf/seaweedfs:local \
  "shell" \
  "fs.configure -locationPrefix=/buckets/foo -volumeGrowthCount=3 -replication=002 -apply"
```
2022-06-01 15:47:10 -07:00
chrislu 22362f6495 avoid too many logs in tmp folder 2022-02-27 02:44:10 -08:00
chrislu 73e3e77904 deprecate all cronjob module related code
related to https://github.com/chrislusf/seaweedfs/issues/2483
2021-12-05 01:20:47 -08:00
Chris Lu bf5b795717 fix outdated cron job scripts
fix https://github.com/chrislusf/seaweedfs/issues/1881
2021-03-09 16:49:05 -08:00
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
user d116432775 POSIX shell compatibility 2020-10-08 19:40:18 +09:00
Chris Lu ab4c9ac221 allow optionally change volume max count 2020-05-22 10:37:04 -07:00
Chris Lu 1e64dbcb98 Revert "allow overwrite flags"
This reverts commit 232b0f0e
2020-05-22 10:30:46 -07:00
Chris Lu 232b0f0e6e allow overwrite flags 2020-05-21 22:19:09 -07:00
Chris Lu 5c5ddc740d docker: entrypoint skip ip address detection 2020-03-25 14:39:43 -07:00
Chris Lu 3775211962 optimize entrypoint for docker 2020-03-22 18:35:45 -07:00
Chris Lu 06ff984786 set master ip in docker compose yaml file
fix https://github.com/chrislusf/seaweedfs/issues/1118
2019-12-11 21:38:54 -08:00
Chris Lu 784141c5e6 adjust script parameter 2019-06-05 01:48:03 -07:00
Chris Lu dd4ef58d99 skip setting ip address for filer
related to https://github.com/chrislusf/seaweedfs/issues/960
2019-05-14 23:35:39 -07:00
Chris Lu 89f97777d9 docker adjust cronjob schedule, add volume.balance job 2019-05-05 21:42:41 -07:00
Zicklag 3895c86812 Add cronjob Mode For The Docker Container
fixes #907
2019-04-09 13:22:46 -05:00
Chris Lu 43e9dc3cf2 docker: add the /data/filerdb folder 2019-03-15 00:54:01 -07:00
Chris Lu 4b444d58ee create filerdb folder 2018-12-27 15:30:41 -08:00
Chris Lu 13715fb851 adjust docker builds 2018-12-27 15:15:33 -08:00
Chris Lu 68028ee876 clean up 2018-12-27 15:13:58 -08:00
Chris Lu f84eb801ff fix mkdir path 2018-12-27 14:41:00 -08:00
Chris Lu c4b15a98c6 ensure folder /data/filerdb 2018-12-27 14:35:41 -08:00
Chris Lu fe3805d1cb Revert "use /data for filer"
This reverts commit 469afddc80.
2018-12-27 14:29:34 -08:00
Chris Lu 469afddc80 use /data for filer 2018-12-27 14:28:28 -08:00
Chris Lu 3078cb96a9 docker filer default to /data/filerdb 2018-12-26 20:46:07 -08:00
Chris Lu a508d56021 docker entry point fix for s3 2018-12-25 14:27:48 -08:00
Chris Lu 39bf274a83 WIP 2018-12-16 22:39:39 -08:00
Chris Lu 3e899bfc68 add s3 for docker 2018-12-16 15:40:52 -08:00
jenkins.ow bc025d5305 add filer to docker-compose and entrypoint, build from local Dockerfile 2018-09-11 12:37:27 -07:00
Amin Cheloh 48a24559a3 Update entrypoint.sh
Running application becomes container's PID 1 allow to receives Unix signals
2016-10-12 16:47:56 +07:00
Jesper Zedlitz 1c36706306 Changed Dockerfile so it uses a special entrypoint script. All parameters are passed through to weed. Depending on the command the entrypoint.sh script adds parameters to link containers. 2016-09-08 09:19:06 +02:00