Skip to content

Commit

Permalink
update deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
SkywalkerSpace committed Sep 18, 2020
1 parent ad8b608 commit 0f7a146
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 106 deletions.
40 changes: 0 additions & 40 deletions default

This file was deleted.

17 changes: 17 additions & 0 deletions docker/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# seatable-thumbnail-server-docker

## Deploy

1. mkdir -p /opt/seatable-thumbnail/shared/
2. vim /opt/seatable-thumbnail/docker-compose.yml
3. docker-compose up
4. vim /opt/seatable-thumbnail/shared/seatable-thumbnail/conf/*
5. vim /opt/seatable-thumbnail/shared/seatable-thumbnail/seafile-license.txt
6. docker exec -d seatable-thumbnail /scripts/seatable-thumbnail.sh

## Build

1. cp seatable_thumbnail docker/src/seatable-thumbnail-server/seatable_thumbnail
2. cp main.py docker/src/seatable-thumbnail-server/main.py
3. cp seafile docker/src/seafile (seafile folder was in seatable-pro-server_1.x.x.tar.gz)
4. docker build -t docker.seafile.top/seafile-dev/seatable-thumbnail-server:1.x.x ./
51 changes: 6 additions & 45 deletions docker/scripts/init_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,50 +12,8 @@
# seafile
seafile_config_path = '/opt/seatable-thumbnail/conf/seafile.conf'
seafile_config = """
[general]
cloud_mode = true
multi_tenancy = true
[memcached]
enabled = true
memcached_options = --SERVER=memcached --POOL-MIN=10 --POOL-MAX=100
[quota]
default = 5
org_default = 100
calc_share_usage = true
[httpserver]
[fileserver]
port=8082
max_upload_size=30000
max_download_dir_size=30000
[network]
port=12001
[block_backend]
name = name
key_id = key_id
key = key
bucket = bucket
endpoint = endpoint
memcached_options = --SERVER=memcached --POOL-MIN=10 --POOL-MAX=100
[commit_object_backend]
name = name
key_id = key_id
key = key
bucket = bucket
endpoint = endpoint
memcached_options = --SERVER=memcached --POOL-MIN=10 --POOL-MAX=100
[fs_object_backend]
name = name
key_id = key_id
key = key
bucket = bucket
endpoint = endpoint
memcached_options = --SERVER=memcached --POOL-MIN=10 --POOL-MAX=100
[database]
type = mysql
Expand Down Expand Up @@ -96,14 +54,12 @@
# seatable-thumbnail
seatable_thumbnail_config_path = '/opt/seatable-thumbnail/conf/seatable_thumbnail_settings.py'
seatable_thumbnail_config = """
# mysql
MYSQL_USER = 'user'
MYSQL_PASSWORD = 'password'
MYSQL_HOST = 'host'
MYSQL_PORT = '3306'
DATABASE_NAME = 'db_name'
"""

if not os.path.exists(seatable_thumbnail_config_path):
Expand Down Expand Up @@ -135,6 +91,11 @@
error_log /opt/nginx-logs/seatable-thumbnail.error.log;
}
# cloud.seatable.cn
# location /thumbnail/ {
# proxy_pass https://thumbnail.seatable.cn/thumbnail/;
# }
}
"""

Expand Down
2 changes: 1 addition & 1 deletion docker/scripts/seatable-thumbnail.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function start_server() {

/scripts/monitor.sh &>> /opt/seatable-thumbnail/logs/monitor.log &

echo "SeaTable-thumbnail started"
echo "SeaTable-thumbnail-server started"
echo

}
Expand Down
3 changes: 0 additions & 3 deletions restart.sh

This file was deleted.

17 changes: 0 additions & 17 deletions supervisor.ini

This file was deleted.

0 comments on commit 0f7a146

Please sign in to comment.