Commit graph

107 commits

Author SHA1 Message Date
libeanim 702f5da610 Add garbage collector command to launcher (#20)
* Add garbage collector command to launcher

The seafile garbage collector can be started via the 'gc' command option of the launcher.
This will stop the seafile-server inside the container, then run the 'seaf-gc.sh' script and redirect its output to '/var/log/gc.log'.
Afterwards the whole container will be restarted.

* Move garbage collector execution logic to scripts/gc.sh

The file gc.sh stops the seafile server, starts the garbage collector and restarts the seafile server when the cleanup is finished.
The output of the 'seaf-gc.sh' script is piped to the file '/var/log/gc.log' in append mode.

* Add 'scripts/gc.sh' to watch_controller function in 'scripts/start.py'

The 'start.py' script monitors the seafile-server in a 'watch_controller' function and terminates the container when the server crashed.
However, during a garbage collector cleanup the server needs to be shut down and therefore it is necessary that the 'watch_controller' function only terminates the container if the server is offline and no cleanup is in progress.

* Add the gc command info to README

* Preseve the exit code of seaf-gc.sh

* Fix the perm of scripts/gc.sh
2017-06-06 05:23:12 -05:00
Shuai Lin 5f89412d04 Updated to seafile server 6.0.9 2017-05-13 13:38:16 +08:00
Shuai Lin f54fbbb2fa Added .snapshot to the dockerignore file.
Close #7
2017-01-25 22:00:11 +08:00
Shuai Lin bbbc803583 Fixed base image name. 2017-01-03 15:08:34 +08:00
Shuai Lin 73792319d1 Updated the docker hub repo name (seafileorg -> seafileltd). 2017-01-03 10:34:32 +08:00
Shuai Lin e0d4231838 Fixed encrypted docker creds. 2016-12-21 16:54:38 +08:00
Shuai Lin 129ff13955 Updated MAINT.md 2016-12-21 16:25:54 +08:00
Shuai Lin 04756d020f Fixed the name of the publish script. 2016-12-21 16:24:56 +08:00
Shuai Lin 448c30299f Skip building the base image to speed up travis ci. 2016-12-21 16:18:00 +08:00
Shuai Lin 61901a1257 Added a maintaince README. 2016-12-21 16:14:37 +08:00
Shuai Lin 34161680a8 Fixed travis ci yaml. 2016-12-21 16:02:49 +08:00
Shuai Lin b76657f807 Added creds. 2016-12-21 16:00:10 +08:00
Shuai Lin 02411d5f7b Update the version to 6.0.7 2016-12-21 15:53:07 +08:00
Shuai Lin 916076409d Fixed checking LASTEXITCODE. 2016-12-17 00:31:34 +08:00
Shuai Lin 6b5575bfe3 win: really fixed rebuild. 2016-12-15 17:08:03 +08:00
Shuai Lin b3e5b31053 Fixed windows getting started doc. 2016-12-15 16:48:02 +08:00
Shuai Lin 531d5e477a win: fixed rebuild. 2016-12-15 16:45:36 +08:00
Shuai Lin 94f91ccd4d win: fixed checking prerequsitives. 2016-12-15 15:18:20 +08:00
Shuai Lin f0e5708b1b windows: check the version match before starting container. 2016-12-14 15:56:26 +08:00
Shuai Lin e48a8bf3cb Fixed typo again. 2016-12-14 12:33:34 +08:00
Shuai Lin 56ca002a47 Fixed a typo. 2016-12-14 12:13:03 +08:00
Shuai Lin 6a748a936f win: added stop/restart/destroy/logs/enter commands. 2016-12-08 17:47:57 +08:00
Shuai Lin b4da59b93a win: Fixed do_if_not function. 2016-12-08 16:11:37 +08:00
Shuai Lin 3dde0dd076 windows: support upgrade 2016-12-08 13:23:25 +08:00
Shuai Lin 51239b078c Fixed a typo. 2016-12-08 00:04:23 +08:00
Shuai Lin fb1ce0a6a8 Fixed the ccnet socket problem on windows. 2016-12-07 15:39:52 +08:00
Shuai Lin 0c609f6b5a Support windows. 2016-12-07 14:52:01 +08:00
Shuai Lin ec673e1df0 Fixed bootstrap script. 2016-11-30 15:22:56 +08:00
Shuai Lin 145b0cc131 Merge pull request #2 from haiwen/support-upgrade
Support upgrade
2016-11-29 09:22:59 +00:00
Shuai Lin 01d1035433 Improve python scripts docstring. 2016-11-29 17:13:06 +08:00
Shuai Lin ea4f3762f7 Fixed support manual major upgrade. 2016-11-29 17:09:11 +08:00
Shuai Lin ccedb31221 More tests in travis builds. 2016-11-29 15:32:21 +08:00
Shuai Lin e2557cd45a Updated README. 2016-11-29 15:29:36 +08:00
Shuai Lin cc77e95d9f Make debug logs and info logs more clear. 2016-11-29 15:26:33 +08:00
Shuai Lin 12412e733d Suppport verbose mode: "./launcher -v <cmd>" 2016-11-29 15:09:16 +08:00
Shuai Lin e6a0840cf0 Support manual major upgrade.
* By default all major upgrades would be fully automatic. But the
user can opt for manual upgrade by "./launcher rebuild --manual-upgrade"
2016-11-29 14:44:26 +08:00
Shuai Lin 06179255f1 Fixed a typo. 2016-11-28 17:07:13 +08:00
Shuai Lin a64c9b83e4 Add a version stamp file seafile-data/current_version. 2016-11-28 17:06:28 +08:00
Shuai Lin 42c7be4c05 Minor-upgrade: support media/custom dir. 2016-11-28 15:11:17 +08:00
Shuai Lin 65a328d14e No need to specify "autoindex off" since it's the default value. 2016-11-27 22:44:53 +08:00
Shuai Lin a8e1de7ec1 Update README: use "./launcher restart" instead of stop then start. 2016-11-27 22:35:41 +08:00
Shuai Lin 1bce6b8ca4 Improve docker-squash: keep the phusion base image. 2016-11-27 22:34:38 +08:00
Daniel Pan f882ffac13 Update README.md 2016-11-26 19:52:07 +08:00
Daniel Pan 4c66237b03 Use 80:80 as the default map setting 2016-11-26 19:41:22 +08:00
Shuai Lin 97cb2cfeb8 Update README. 2016-11-25 17:16:38 +08:00
Shuai Lin 6541989763 Update README. 2016-11-25 17:15:37 +08:00
Shuai Lin 7361f353ff Remove a unused file. 2016-11-25 17:11:34 +08:00
Shuai Lin 741bcee82f Added upgrading section in README. 2016-11-25 17:09:56 +08:00
Shuai Lin 86eeb5c2a9 Fixed typo. 2016-11-25 17:02:23 +08:00
Shuai Lin fae1b01dea Fixed typo. 2016-11-25 16:42:29 +08:00