mirror of
https://github.com/rclone/rclone.git
synced 2024-11-23 00:43:49 +01:00
24ef00a258
Test servers are implemented by docker containers and run real servers for rclone to test against.
32 lines
794 B
Bash
Executable File
32 lines
794 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
NAME=owncloud
|
|
USER=rclone
|
|
PASS=HarperGrayerFewest5
|
|
|
|
. $(dirname "$0")/docker.bash
|
|
|
|
start() {
|
|
docker run --rm -d --name $NAME \
|
|
-e "OWNCLOUD_DOMAIN=${OWNCLOUD_DOMAIN}" \
|
|
-e "OWNCLOUD_DB_TYPE=sqlite" \
|
|
-e "OWNCLOUD_DB_NAME=oowncloud.db" \
|
|
-e "OWNCLOUD_ADMIN_USERNAME=$USER" \
|
|
-e "OWNCLOUD_ADMIN_PASSWORD=$PASS" \
|
|
-e "OWNCLOUD_MYSQL_UTF8MB4=true" \
|
|
-e "OWNCLOUD_REDIS_ENABLED=false" \
|
|
-e "OWNCLOUD_TRUSTED_DOMAINS=*.*.*.*" \
|
|
owncloud/server
|
|
|
|
echo type=webdav
|
|
echo url=http://$(docker_ip):8080/remote.php/webdav/
|
|
echo user=$USER
|
|
echo pass=$(rclone obscure $PASS)
|
|
echo vendor=owncloud
|
|
echo _connect=$(docker_ip):8080
|
|
}
|
|
|
|
. $(dirname "$0")/run.bash
|