Integrate the s3ng storage driver

This commit is contained in:
André Duffeck
2021-05-12 09:23:05 +02:00
parent b06843b707
commit 87ec7a5125
12 changed files with 187 additions and 2 deletions
+17
View File
@@ -0,0 +1,17 @@
services:
start_ceph:
image: dadarek/wait-for-dependencies
depends_on:
- ceph
command: ceph:5000
ceph:
image: ceph/daemon
command: demo
environment:
MON_IP: 127.0.0.1
CEPH_PUBLIC_NETWORK: 0.0.0.0/0
CEPH_DEMO_UID: test-user
CEPH_DEMO_ACCESS_KEY: test
CEPH_DEMO_SECRET_KEY: test
CEPH_DEMO_BUCKET: test
RGW_NAME: ceph
@@ -22,6 +22,12 @@ services:
IDP_ISS: https://ocis-server:9200
IDP_TLS: "true"
ACCOUNTS_HASH_DIFFICULTY: 4
# s3ng specific settings
STORAGE_DRIVER_S3NG_ENDPOINT: http://ceph:8080
STORAGE_DRIVER_S3NG_REGION: default
STORAGE_DRIVER_S3NG_ACCESS_KEY: test
STORAGE_DRIVER_S3NG_SECRET_KEY: test
STORAGE_DRIVER_S3NG_BUCKET: test
volumes:
- ../../../config:/drone/src/ocis/tests/config
- oCISownCloud10testsuite:/srv
+6
View File
@@ -62,6 +62,12 @@ then
export DELETE_USER_DATA_CMD='rm -rf /srv/app/tmp/ocis/storage/users/nodes/root/* /srv/app/tmp/ocis/storage/users/nodes/*-*-*-*'
export OCIS_REVA_DATA_ROOT=''
export OCIS_SKELETON_STRATEGY='upload'
elif [ "$STORAGE" = "s3ng" ]
then
export BEHAT_FILTER_TAGS='~@skipOnOcis-S3NG-Storage'
export DELETE_USER_DATA_CMD='rm -rf /srv/app/tmp/ocis/storage/users/nodes/root/* /srv/app/tmp/ocis/storage/users/nodes/*-*-*-*'
export OCIS_REVA_DATA_ROOT=''
export OCIS_SKELETON_STRATEGY='upload'
else
echo "non existing storage selected"
exit 1