Rework to use docker-compose

Signed-off-by: Martin Heide <martin.heide@faro.com>
This commit is contained in:
Martin Heide
2020-07-15 09:37:54 +00:00
parent b4d22bf1b2
commit 705cf8bb6a
5 changed files with 22 additions and 60 deletions

View File

@@ -13,16 +13,17 @@ The connector executes two primary queries:
The dex repo contains a basic LDAP setup using [OpenLDAP][openldap].
First start the LDAP server using the example script. This will run the OpenLDAP daemon in a Docker container, and seed it with an initial set of users.
First start the LDAP server using docker-compose. This will run the OpenLDAP daemon in a Docker container, and seed it with an initial set of users.
```
./scripts/slapd.sh
cd examples/ldap
docker-compose up
```
This script sets the LDAP daemon to debug mode, and is expected to print several error messages which are normal. Once the server is up, run dex.
This container is expected to print several warning messages which are normal. Once the server is up, run dex in another terminal.
```
./bin/dex serve examples/config-ldap.yaml
./bin/dex serve examples/ldap/config-ldap.yaml
```
Then run the OAuth client in another terminal.