-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CONTRIBUTING.md and associated docker-ldap.sh script
- Loading branch information
1 parent
d824640
commit f8a035c
Showing
2 changed files
with
41 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
#!/usr/bin/env bash | ||
# source this file to setup LDAP | ||
# for local testing (as similar as possible to docker) | ||
|
||
set -e | ||
|
||
NAME="hub-test-ldap" | ||
DOCKER_RUN="docker run -d --name $NAME" | ||
RUN_ARGS="-p 389:10389 -p 636:10636 rroemhild/test-openldap" | ||
|
||
docker rm -f "$NAME" 2>/dev/null || true | ||
|
||
$DOCKER_RUN $RUN_ARGS | ||
# This file (re-)starts an openldap server to test against within a docker | ||
# container based on the image rroemhild/test-openldap. | ||
# | ||
# ref: https://github.com/rroemhild/docker-test-openldap | ||
# ref: https://hub.docker.com/r/rroemhild/test-openldap/ | ||
# | ||
# Stop any existing test-openldap container | ||
docker rm --force test-openldap 2>/dev/null || true | ||
# Start a container, and expose some ports, where 389 and 636 are the local | ||
# system's ports that are redirected to the started container. | ||
# | ||
# - 389:10389 (ldap) | ||
# - 636:10636 (ldaps) | ||
# | ||
docker run --detach --name=test-openldap -p 389:10389 -p 636:10636 rroemhild/test-openldap:2.1 |