image: nextcloudci/integration-php7.0:integration-php7.0-3
commands:
- ./occ maintenance:install --admin-pass=admin
+ - ./occ config:system:set redis host --value=cache
+ - ./occ config:system:set redis port --value=6379 --type=integer
+ - ./occ config:system:set redis timeout --value=0 --type=integer
- ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.local
- ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.distributed
- ./occ app:enable testing
fi
mysql -u "$DATABASEUSER" -powncloud -e "DROP DATABASE IF EXISTS $DATABASENAME" -h $DATABASEHOST || true
else
- DATABASEHOST=127.0.0.1
+ DATABASEHOST=mysql
fi
fi
echo "Waiting for MySQL initialisation ..."
fi
mysql -u "$DATABASEUSER" -powncloud -e "DROP DATABASE IF EXISTS $DATABASENAME" -h $DATABASEHOST || true
else
- DATABASEHOST=127.0.0.1
+ DATABASEHOST=mysqlmb4
fi
fi
echo "Postgres is up."
else
+ if [ ! -z "$DRONE" ] ; then
+ DATABASEHOST=postgres
+ fi
echo "Waiting for Postgres to be available ..."
if ! apps/files_external/tests/env/wait-for-connection $DATABASEHOST 5432 60; then
echo "[ERROR] Waited 60 seconds, no response" >&2
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis.cluster' => [
'seeds' => [ // provide some/all of the cluster servers to bootstrap discovery, port required
- 'localhost:7000',
- 'localhost:7001',
- 'localhost:7002',
- 'localhost:7003',
- 'localhost:7004',
- 'localhost:7005'
+ 'cache-cluster:7000',
+ 'cache-cluster:7001',
+ 'cache-cluster:7002',
+ 'cache-cluster:7003',
+ 'cache-cluster:7004',
+ 'cache-cluster:7005'
],
'timeout' => 0.0,
'read_timeout' => 0.0,
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' => [
- 'host' => 'localhost',
+ 'host' => 'cache',
'port' => 6379,
'timeout' => 0,
],