Commit graph

42 commits

Author SHA1 Message Date
Steve Divskinsy 194e6b4922
Update launcher
Print working directory correctly (running ./launcher in /opt/dockerdata/seafile for example would spit out /opt/dockerdata/shared as the volume location). No such image seafileltd/server, so update to reflect seafileltd/seafile location.
2018-05-02 15:49:04 +09:30
zMingGit 9c3fdcae32 Support native docker run instead of using the launcher script (#47)
* didn't use launcher

* travis

* link error & update readme

* del launcher.ps1, del bootstrap func under launcher file

* [readme] password/plan b, add a new admin

* review
2018-04-12 17:12:43 +08:00
Shuai Lin 53940f640b update to 6.2.3 2018-01-13 21:33:46 +08:00
Shuai Lin db8844ef29 Update to 6.2.2 release 2017-11-07 10:29:48 +08:00
Shuai Lin d8a4fe7a25 Update to server 6.1.1 2017-08-08 14:10:11 +08:00
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 73792319d1 Updated the docker hub repo name (seafileorg -> seafileltd). 2017-01-03 10:34:32 +08:00
Shuai Lin 02411d5f7b Update the version to 6.0.7 2016-12-21 15:53:07 +08:00
Shuai Lin ea4f3762f7 Fixed support manual major upgrade. 2016-11-29 17:09:11 +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 6541989763 Update README. 2016-11-25 17:15:37 +08:00
Shuai Lin e551b10c5d Make nginx able to load avatars. 2016-11-25 16:38:54 +08:00
Shuai Lin f826ea3d0f Set proper FILE_SERVER_ROOT in bootstrapping. 2016-11-25 16:10:29 +08:00
Shuai Lin b09cc739b3 Added "./launcher logs" command. 2016-11-25 15:28:20 +08:00
Shuai Lin 6e84e376a6 Updated shared/ and bootstrap/ folder permissions to 0700 2016-11-25 15:23:47 +08:00
Shuai Lin 71390ad11f Make sure nginx is ready when bootstrapping with letsencrypt. 2016-11-25 14:23:48 +08:00
Shuai Lin 5061545995 Pull base image at the beginning. 2016-11-25 14:18:43 +08:00
Shuai Lin b2e7e7f499 Fixed bootstrap for non-https case. 2016-11-25 14:14:30 +08:00
Shuai Lin 63dd4b5c19 Added launcher rebuild command. 2016-11-25 12:33:10 +08:00
Shuai Lin 7af42922d2 Updated README. 2016-11-25 12:04:37 +08:00
Shuai Lin c2d58f299b Set container hostname to "seafile". 2016-11-21 13:34:46 +08:00
Shuai Lin 53bc05d2ef Fixed travis build. 2016-11-21 13:26:41 +08:00
Shuai Lin e7871f5ede launcher: support serveral command line flags. 2016-11-21 13:07:09 +08:00
Shuai Lin 4a04b0cb5d Added stop/restart/enter commands. 2016-11-21 12:56:33 +08:00
Shuai Lin ec8d6e638d Handle docker ports mapping. 2016-11-16 09:46:08 +08:00
Shuai Lin 1832ad5acb Re-organize the build/start phases.
- ./launcher bootstrap => init seafile server data & letsencrypt, then
build a local image based on seafileorg/server:<version>
- ./launcher start => start a container using the local image
2016-11-15 16:59:02 +08:00
Shuai Lin 2c5dace56e Support https with letsencrypt.
TODO: add a cron job to renew the certs
2016-11-15 12:11:58 +08:00
Shuai Lin 99d2c8456b Support mysql.
At this moment, we only support running mysql server inside the
container. Support for running mysql(and memcached) in a separate
container would be added later.
2016-11-14 14:47:40 +08:00
Shuai Lin 2dc6f8d5bc Make the start.py script run forever in foreground. 2016-11-14 08:31:39 +08:00
Shuai Lin 29bfc5385e Install latest version of pypi. 2016-11-12 15:50:20 +08:00
Shuai Lin be3bb8d41e Added nginx for serving http. 2016-11-12 15:15:26 +08:00
Shuai Lin c64dbb972d Restructure "shared" folder.
shared/seafile => contains ccnet/seafile-data/conf etc.
shared/db      => contains mysql data
shared/ssl     => letsencrypt certs
shared/logs/seafile => ccnet/seafile/seahub logs
shared/logs/var-log => mounted as /var/log in the container
2016-11-12 14:03:52 +08:00
Shuai Lin ad97dd85c1 Mount shared/logs/var-log to /var/log 2016-11-12 13:27:24 +08:00
Shuai Lin 10eb0b82dc Fixed "launcher start". 2016-11-12 11:34:03 +08:00
Shuai Lin c0cf376ba3 Create admin user without user interaction. 2016-11-12 11:28:49 +08:00
Shuai Lin ede2fcdd58 Rename containers/ to bootstrap/.
And run ./launcher bootstrap in travis ci
2016-11-12 10:53:04 +08:00
Shuai Lin 2ce0c35c1e Do not create symlinks when bootstraping. 2016-11-11 12:56:47 +08:00
Shuai Lin 7814d43b12 Initial work on running seafile with docker. 2016-11-11 12:54:53 +08:00