mirror of
https://github.com/ggogel/seafile-containerized.git
synced 2024-11-16 09:01:38 +00:00
Rename containers/ to bootstrap/.
And run ./launcher bootstrap in travis ci
This commit is contained in:
parent
2ce0c35c1e
commit
ede2fcdd58
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -4,5 +4,5 @@
|
|||
.DS_Store
|
||||
*.pyc
|
||||
|
||||
containers/
|
||||
bootstrap/
|
||||
shared/
|
||||
|
|
|
@ -10,3 +10,6 @@ install:
|
|||
|
||||
script:
|
||||
- cd image && make base && make
|
||||
- cd ..
|
||||
- cp samples/server-sqlite3.conf bootstrap/bootstrap.conf
|
||||
- ./launcher bootstrap
|
||||
|
|
4
launcher
4
launcher
|
@ -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() {
|
||||
|
|
4
samples/server-sqlite3.conf
Normal file
4
samples/server-sqlite3.conf
Normal file
|
@ -0,0 +1,4 @@
|
|||
[server]
|
||||
server.hostname = seafile.example.com
|
||||
admin.email = me@example.com
|
||||
admin.password = asecret
|
|
@ -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():
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue