8efe4ec194
- created server configuration - implemented downloading files from nextcloud to a local directory - build of the docker image added to the GutHub workflow - Twake client added - Creating user in Twake Drive from ldap - Ldap client with ldapsearch(TODO make it work with ldapjs) - Jest debug tests
802 B
802 B
About
This is a service for migrating date from Nextcloud to Twake Drive
Development
-
To build image locally
docker build -t twakedrive/tdrive-nextcloud-migration -f docker/tdrive-nextcloud-migration/Dockerfile . -
Run it with Docker
docker run -p 4001:4001 \ -e SERVER_PORT=4001 \ -e LDAP_BASE=dc=example,dc=com \ -e LDAP_URL=ldap://ldap.twake.app:389 \ -e TMP_DIR=/tmp \ -e NEXTCLOUD_URL=https://nextcloud.fr \ -e TWAKE_DRIVE_URL=https://tdrive.qa.lin-saas.com/ \ -e TWAKE_DRIVE_APP_ID=<MY_APPLICATION_ID> \ -e TWAKE_DRIVE_SECRET=<MY_SECRET> \ twakedrive/tdrive-nextcloud-migration -
Request example
curl -X POST --data "username=luke&password=iamyourfather" http://localhost:4001/