Start the ldap server from the entrypoint

This commit is contained in:
felixboehm
2020-10-07 16:07:31 +02:00
committed by Michael Barz
parent ee7ad9f383
commit 042411ab10
3 changed files with 6 additions and 7 deletions

View File

@@ -53,13 +53,7 @@ docker-compose exec ocis ./bin/ocis list
docker-compose up -d
```
2. Start the ldap authentication
```
docker-compose exec -d ocis /start-ldap
```
3. Configure to use eos storage driver instead of default storage driver
2. Configure to use eos storage driver instead of default storage driver
- kill the home storage and data providers. we need to switch them to the eoshome driver:

View File

@@ -1,4 +1,6 @@
#!/bin/sh
make build
/start-ldap &
exec bin/ocis server

View File

@@ -1,5 +1,8 @@
#!/bin/sh
LDAP_BINDDN=${LDAP_BINDDN:-cn=reva,ou=sysusers,dc=example,dc=org}
LDAP_BINDPW=${LDAP_BINDPW:-reva}
echo "Waiting for EOS MGM"
echo "until nc -z -w 3 $EOS_MGM_ALIAS 1094; do sleep 2; done;" > /wait-for-mgm
chmod +x /wait-for-mgm