Start the ldap server from the entrypoint

This commit is contained in:
felixboehm
2020-10-14 12:08:14 +02:00
committed by Michael Barz
parent ee7ad9f383
commit 042411ab10
3 changed files with 6 additions and 7 deletions
+1 -7
View File
@@ -53,13 +53,7 @@ docker-compose exec ocis ./bin/ocis list
docker-compose up -d docker-compose up -d
``` ```
2. Start the ldap authentication 2. Configure to use eos storage driver instead of default storage driver
```
docker-compose exec -d ocis /start-ldap
```
3. 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: - kill the home storage and data providers. we need to switch them to the eoshome driver:
+2
View File
@@ -1,4 +1,6 @@
#!/bin/sh #!/bin/sh
make build make build
/start-ldap &
exec bin/ocis server exec bin/ocis server
+3
View File
@@ -1,5 +1,8 @@
#!/bin/sh #!/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 "Waiting for EOS MGM"
echo "until nc -z -w 3 $EOS_MGM_ALIAS 1094; do sleep 2; done;" > /wait-for-mgm echo "until nc -z -w 3 $EOS_MGM_ALIAS 1094; do sleep 2; done;" > /wait-for-mgm
chmod +x /wait-for-mgm chmod +x /wait-for-mgm