HUB
Sign inSign up
dirsrv logo

jeffersonlab/dirsrv

By jeffersonlab

•Updated over 2 years ago

Configurable 389 Directory Server Docker image

Image
0

7.0K

jeffersonlab/dirsrv repository overview

⁠dirsrv Docker

Configurable 389 Directory Server⁠ Docker image.



⁠Overview

This project provides a docker image which extends the production-oriented 389ds/dirsrv⁠ and adds features for development and testing of apps that depend on dirsrv. The Jefferson Lab image sets up a container healthcheck and container entrypoint, installs client tools , and adds some default configuration for the Jefferson Lab environment (memberOf plugin is enabled). The entrypoint integrates with the healthcheck such that the container is "healthy" only when dirsrv is both running and configured. Configuration is supported via environment variables and a conventional directory named /container-entrypoint-initdb.d of bash and ldif scripts that can be overwritten by mounting a volume.

⁠Quick Start with Compose

  1. Grab project
git clone https://github.com/JeffersonLab/dirsrv
cd dirsrv
  1. Launch Compose⁠
docker compose up
  1. Query for user jdoe
docker exec dirsrv ldapsearch -D "cn=Directory Manager" -w password -H ldap://localhost:3389 -x -b cn=users,cn=accounts,dc=example,dc=com uid=jdoe

Note: The quickstart uses default password password (see Configure⁠). However, root run container local ldapi is available, so with container local commands you can replace:

-D "cn=Directory Manager" -w password -H ldap://localhost:3389 -x

with:

-Y EXTERNAL -H ldapi://%2fdata%2frun%2fslapd-localhost.socket

⁠Configure

Mount a volume at /container-entrypoint-initdb.d containing bash and ldif scripts to run, ordered by name ascending. See example⁠.

Environment variables:

NameDescription
DS_DM_PASSWORDDirectory Manager password
DS_SUFFIX_NAMESUFFIX to use
DS_BACKEND_NAMEBACKEND (optional, used in example)

⁠Release

  1. Create a new release on the GitHub Releases page. The release should enumerate changes and link issues.
  2. The Publish to DockerHub⁠ GitHub Action should run automatically to create, tag, and publish a new demo Docker image, and bump the compose.override.yaml⁠ to use the new image.

Tag summary

Content type

Image

Digest

sha256:e61480cac…

Size

164.3 MB

Last updated

over 2 years ago

docker pull jeffersonlab/dirsrv