Rename containers/ to bootstrap/.

And run ./launcher bootstrap in travis ci
This commit is contained in:
Shuai Lin 2016-11-12 10:53:04 +08:00
parent 2ce0c35c1e
commit ede2fcdd58
7 changed files with 12 additions and 5 deletions

2
.gitignore vendored
View file

@ -4,5 +4,5 @@
.DS_Store
*.pyc
containers/
bootstrap/
shared/

View file

@ -10,3 +10,6 @@ install:
script:
- cd image && make base && make
- cd ..
- cp samples/server-sqlite3.conf bootstrap/bootstrap.conf
- ./launcher bootstrap

View file

@ -36,7 +36,7 @@ set_volumes() {
mounts=(
$sharedir:/shared
$topdir/containers:/containers:ro
$topdir/bootstrap:/bootstrap:ro
$topdir/scripts:/scripts:ro
$bash_history:/root/.bash_history
)
@ -49,7 +49,7 @@ set_volumes() {
bootstrap() {
set_volumes
docker run --rm -it -v SEAFILE_BOOTSRAP=1 $volumes $image /scripts/bootstrap.py
docker run --rm -it -e SEAFILE_BOOTSRAP=1 $volumes $image /scripts/bootstrap.py
}
start() {

View file

@ -0,0 +1,4 @@
[server]
server.hostname = seafile.example.com
admin.email = me@example.com
admin.password = asecret

View file

@ -24,7 +24,7 @@ def get_conf(key):
global _config
if _config is None:
_config = ConfigParser()
_config.read("/containers/bootstrap.conf")
_config.read("/bootstrap/bootstrap.conf")
return _config.get("server", key)
def main():

View file

@ -97,7 +97,7 @@ get_server_name
get_admin_email
get_admin_passwd
cat >containers/bootstrap.conf<<EOF
cat >bootstrap/bootstrap.conf<<EOF
[server]
server.hostname = $server_name
admin.email = $admin_email